mirror of
https://github.com/samba-team/samba.git
synced 2025-03-29 02:50:28 +03:00
put a check around become_user(). doesn't authenticate the user, but doesn't
quit the whole pipe, either... (This used to be commit 14f0c2ddb05a690e671efad8c47da9ff1e39c8ce)
This commit is contained in:
parent
106410a376
commit
c87abfc565
@ -271,7 +271,11 @@ static BOOL update_dcinfo(int cnum, uint16 vuid,
|
||||
|
||||
unbecome_user();
|
||||
smb_pass = get_smbpwnam(mach_acct);
|
||||
become_user(cnum, vuid);
|
||||
if (!become_user(cnum, vuid))
|
||||
{
|
||||
DEBUG(0,("update_dcinfo: become_user failed\n"));
|
||||
return False;
|
||||
}
|
||||
|
||||
if (smb_pass != NULL)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user