1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r17673: volker's patch for re-adding Getpwnam() lookups to smbpasswd backend (I hate username level)

This commit is contained in:
Gerald Carter 2006-08-21 21:53:02 +00:00 committed by Gerald (Jerry) Carter
parent 7b51e27d02
commit 0939b6e20c

View File

@ -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;