mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
r25256: Fix missing field set in libnet_ModifyUser routine.
Submitted by Matthias Dieter Wallnoefer <mwallnoefer@yahoo.de> rafal
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
87559febdf
commit
4fe47e4f97
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
|
||||
Copyright (C) Rafal Szczesniak <mimir@samba.org> 2005
|
||||
Copyright (C) Rafal Szczesniak 2005
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -533,6 +533,9 @@ static NTSTATUS set_user_changes(TALLOC_CTX *mem_ctx, struct usermod_change *mod
|
||||
/* account expiry change */
|
||||
SET_FIELD_NTTIME(r->in, user, mod, acct_expiry, USERMOD_FIELD_ACCT_EXPIRY);
|
||||
|
||||
/* account flags change */
|
||||
SET_FIELD_UINT32(r->in, user, mod, acct_flags, USERMOD_FIELD_ACCT_FLAGS);
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,12 @@ struct libnet_ModifyUser {
|
||||
} \
|
||||
}
|
||||
|
||||
#define SET_FIELD_UINT32(new, current, mod, field, flag) \
|
||||
if (current->field != new.field) { \
|
||||
mod->field = new.field; \
|
||||
mod->fields |= flag; \
|
||||
}
|
||||
|
||||
|
||||
struct libnet_UserInfo {
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user