summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-12-02 12:48:15 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-12-02 12:48:15 +0000
commit89ebcb185d493051394a381f0195baa2a53abc01 (patch)
treefaf112112b5573d735094aa3268b664f634f239a
parent0064a113f266b2da724c1b03b28474da9291422f (diff)
downloadsamba-89ebcb185d493051394a381f0195baa2a53abc01.tar.gz
samba-89ebcb185d493051394a381f0195baa2a53abc01.tar.bz2
samba-89ebcb185d493051394a381f0195baa2a53abc01.zip
Match Win2k and return 'invalid parameter' for creating of a new account with
account flags of 0. Andrew Bartlett (This used to be commit 601120f335b69e5b8a003038dfac00f3f234a5c1)
-rw-r--r--source3/rpc_server/srv_samr_nt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index d3da830991..de12a7d5c8 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -2134,6 +2134,12 @@ NTSTATUS _samr_create_user(pipes_struct *p, SAMR_Q_CREATE_USER *q_u, SAMR_R_CREA
return nt_status;
}
+ if (!acb_info) {
+ /* Match Win2k, and return NT_STATUS_INVALID_PARAMETER if
+ this parameter is zero (ie, no user type specified) */
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
/* find the account: tell the caller if it exists.
lkclXXXX i have *no* idea if this is a problem or not
or even if you are supposed to construct a different