diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-02 23:55:44 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-02 23:55:44 +0000 |
commit | 8c1d0fb955611896f149b3c46521159a5537ab8e (patch) | |
tree | 92d4a6ad9ca27997f0b254603c961234639aa7a3 | |
parent | fd346ce0c9b2deccc8164bec99dbd60cff8101be (diff) | |
download | samba-8c1d0fb955611896f149b3c46521159a5537ab8e.tar.gz samba-8c1d0fb955611896f149b3c46521159a5537ab8e.tar.bz2 samba-8c1d0fb955611896f149b3c46521159a5537ab8e.zip |
Match Win2k, and return NT_STATUS_INVALID_PARAMETER
if this parameter is not an account type
Andrew Bartlett
(This used to be commit faddf5d8f9821176f4367caaf61844980df9f79c)
-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; } |