I ran into a problem attempting to create new remote users on a Win2k server via the SAMBA net command. The users are being created, but the accounts are disabled. After a few packet traces, I noticed that SAMBA is sending 0xe005000b as the access mask. I successfully created a remote account using a VBS script from Windows and noticed it used the mask 0xe00500b0 (last two hex digits switched). Based on the comments in the below code, I'm wondering if this was typo'd. ;) Unfortantely, fixing the mask isn't enough to fix the problem. I'm at a loss as to what else is wrong. Maybe has something to do with the account password not actually being set??? Doesn't look like the code is there to do that yet... Joe python/py_samr.c: uint32 unknown = 0xe005000b; /* Access mask? */ rpcclient/cmd_samr.c: unknown = 0xe005000b; /* No idea what this is - a permission mask? */ utils/net_rpc.c: unknown = 0xe005000b; /* No idea what this is - a permission mask? */
Could not be reproduced (using a win2k sp4 dc). The new account has no password though and needs to give himself a password on first logon. Newly created accounts were not disabled at least. Please reopen, if you feel this is not correct.
arg. Too fast, "net ads user" is fine, "net rpc user" is *not*. Reopening.
still a bug ? (original report against 3.0.8pre1)
*** This bug has been marked as a duplicate of 4098 ***