mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r14062: Forgot those in the uint16/32 acb_info switch.
Guenther
(This used to be commit 0167b6cca8
)
This commit is contained in:
parent
fc5a7fe064
commit
aeea749548
@ -338,10 +338,10 @@ static int set_user_info (struct pdb_methods *in, const char *username,
|
||||
pdb_set_domain(sam_pwent, user_domain, PDB_CHANGED);
|
||||
|
||||
if (account_control) {
|
||||
uint16 not_settable = ~(ACB_DISABLED|ACB_HOMDIRREQ|ACB_PWNOTREQ|
|
||||
uint32 not_settable = ~(ACB_DISABLED|ACB_HOMDIRREQ|ACB_PWNOTREQ|
|
||||
ACB_PWNOEXP|ACB_AUTOLOCK);
|
||||
|
||||
uint16 newflag = pdb_decode_acct_ctrl(account_control);
|
||||
uint32 newflag = pdb_decode_acct_ctrl(account_control);
|
||||
|
||||
if (newflag & not_settable) {
|
||||
fprintf(stderr, "Can only set [NDHLX] flags\n");
|
||||
|
Loading…
Reference in New Issue
Block a user