diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-05 23:45:14 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-05 23:45:14 +0000 |
commit | ed8e23c3875c87dd867dd21e06242fad57b881d0 (patch) | |
tree | 470eff37d92922848136fdec995c5de58a807a62 | |
parent | 3eb6b2a6c3f36cbc03c458d50586a6cf5e518002 (diff) | |
download | samba-ed8e23c3875c87dd867dd21e06242fad57b881d0.tar.gz samba-ed8e23c3875c87dd867dd21e06242fad57b881d0.tar.bz2 samba-ed8e23c3875c87dd867dd21e06242fad57b881d0.zip |
(merge from 3.0)
Match Win2k, and return NT_STATUS_INVALID_PARAMETER
if this parameter is not an account type
Andrew Bartlett
(This used to be commit 43ee2e0b6a6f95ce2864befeb08b5de2ace41c7c)
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index be5f197198..bd26ce6849 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -2135,9 +2135,9 @@ NTSTATUS _samr_create_user(pipes_struct *p, SAMR_Q_CREATE_USER *q_u, SAMR_R_CREA return nt_status; } - if (!acb_info) { + if (!(acb_info == ACB_NORMAL || acb_info == ACB_DOMTRUST || acb_info == ACB_WSTRUST || acb_info == ACB_SVRTRUST)) { /* Match Win2k, and return NT_STATUS_INVALID_PARAMETER if - this parameter is zero (ie, no user type specified) */ + this parameter is not an account type */ return NT_STATUS_INVALID_PARAMETER; } |