1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Match Win2k and return 'invalid parameter' for creating of a new account with

account flags of 0.

Andrew Bartlett
(This used to be commit 601120f335)
This commit is contained in:
Andrew Bartlett 2003-12-02 12:48:15 +00:00
parent 0064a113f2
commit 89ebcb185d

View File

@ -2134,6 +2134,12 @@ NTSTATUS _samr_create_user(pipes_struct *p, SAMR_Q_CREATE_USER *q_u, SAMR_R_CREA
return nt_status; 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. /* find the account: tell the caller if it exists.
lkclXXXX i have *no* idea if this is a problem or not lkclXXXX i have *no* idea if this is a problem or not
or even if you are supposed to construct a different or even if you are supposed to construct a different