mirror of
https://github.com/samba-team/samba.git
synced 2025-11-29 16:23:52 +03:00
r13541: we have to wrap pen_enum_group_memberships() in become/unbecome_root()
blocks. This fixes the problem I had with missing groups in the net_samlogon() reply from a Samba PDC.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a2fb436fc5
commit
06b83fe350
@@ -328,7 +328,11 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
|
||||
return nt_status;
|
||||
}
|
||||
|
||||
if (!NT_STATUS_IS_OK(nt_status = make_server_info_sam(server_info, sampass))) {
|
||||
become_root();
|
||||
nt_status = make_server_info_sam(server_info, sampass);
|
||||
unbecome_root();
|
||||
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
DEBUG(0,("check_sam_security: make_server_info_sam() failed with '%s'\n", nt_errstr(nt_status)));
|
||||
pdb_free_sam(&sampass);
|
||||
data_blob_free(&user_sess_key);
|
||||
|
||||
Reference in New Issue
Block a user