mirror of
https://github.com/samba-team/samba.git
synced 2025-09-13 17:44:21 +03:00
r18684: pdb_get_group_sid() has to use the Get_Pwnam_alloc() call
to ensure it finds the Unix user.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
ffec64730b
commit
4cea9bfca1
@@ -157,7 +157,7 @@ const DOM_SID *pdb_get_group_sid(struct samu *sampass)
|
|||||||
if ( sampass->unix_pw ) {
|
if ( sampass->unix_pw ) {
|
||||||
pwd = sampass->unix_pw;
|
pwd = sampass->unix_pw;
|
||||||
} else {
|
} else {
|
||||||
pwd = getpwnam_alloc( sampass, pdb_get_username(sampass) );
|
pwd = Get_Pwnam_alloc( sampass, pdb_get_username(sampass) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !pwd ) {
|
if ( !pwd ) {
|
||||||
|
Reference in New Issue
Block a user