mirror of
https://github.com/samba-team/samba.git
synced 2025-02-07 01:58:28 +03:00
r5943: remove unneccessary se_priv_copy()
(This used to be commit 2db04a90c4197a3950bbc322948468cb306b3557)
This commit is contained in:
parent
ebb9ba6ddc
commit
43f4930ed3
@ -3821,7 +3821,6 @@ NTSTATUS _samr_delete_dom_user(pipes_struct *p, SAMR_Q_DELETE_DOM_USER *q_u, SAM
|
|||||||
DOM_SID user_sid;
|
DOM_SID user_sid;
|
||||||
SAM_ACCOUNT *sam_pass=NULL;
|
SAM_ACCOUNT *sam_pass=NULL;
|
||||||
uint32 acc_granted;
|
uint32 acc_granted;
|
||||||
SE_PRIV se_rights;
|
|
||||||
BOOL can_add_accounts;
|
BOOL can_add_accounts;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
@ -3847,8 +3846,7 @@ NTSTATUS _samr_delete_dom_user(pipes_struct *p, SAMR_Q_DELETE_DOM_USER *q_u, SAM
|
|||||||
return NT_STATUS_NO_SUCH_USER;
|
return NT_STATUS_NO_SUCH_USER;
|
||||||
}
|
}
|
||||||
|
|
||||||
se_priv_copy( &se_rights, &se_add_users );
|
can_add_accounts = user_has_privileges( p->pipe_user.nt_user_token, &se_add_users );
|
||||||
can_add_accounts = user_has_privileges( p->pipe_user.nt_user_token, &se_rights );
|
|
||||||
|
|
||||||
/******** BEGIN SeAddUsers BLOCK *********/
|
/******** BEGIN SeAddUsers BLOCK *********/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user