summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-08-21 21:53:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:46 -0500
commit4a6a574eb4d938a168b987188734cf7082c3187b (patch)
tree5997c84d0a1ca08704e004965fec94f233b5b0b2
parent232569c1f1a93bf0291c6e02569857a7a001c3dd (diff)
downloadsamba-4a6a574eb4d938a168b987188734cf7082c3187b.tar.gz
samba-4a6a574eb4d938a168b987188734cf7082c3187b.tar.bz2
samba-4a6a574eb4d938a168b987188734cf7082c3187b.zip
r17673: volker's patch for re-adding Getpwnam() lookups to smbpasswd backend (I hate username level)
(This used to be commit 0939b6e20c6aef7a203c92fb0afa207c9fa779dd)
-rw-r--r--source3/passdb/pdb_smbpasswd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c
index d4652ca044..905cf8f2a2 100644
--- a/source3/passdb/pdb_smbpasswd.c
+++ b/source3/passdb/pdb_smbpasswd.c
@@ -1238,7 +1238,6 @@ static BOOL build_sam_account(struct smbpasswd_privates *smbpasswd_state,
struct samu *sam_pass, const struct smb_passwd *pw_buf)
{
struct passwd *pwfile;
- fstring unix_username;
if ( !sam_pass ) {
DEBUG(5,("build_sam_account: struct samu is NULL\n"));
@@ -1247,10 +1246,7 @@ static BOOL build_sam_account(struct smbpasswd_privates *smbpasswd_state,
/* verify the user account exists */
- fstrcpy( unix_username, pw_buf->smb_name );
- strlower_m( unix_username );
-
- if ( !(pwfile = getpwnam_alloc(NULL, unix_username )) ) {
+ if ( !(pwfile = Get_Pwnam_alloc(NULL, pw_buf->smb_name )) ) {
DEBUG(0,("build_sam_account: smbpasswd database is corrupt! username %s with uid "
"%u is not in unix passwd database!\n", pw_buf->smb_name, pw_buf->smb_userid));
return False;