summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-10-20 02:12:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:01:56 -0500
commit7afe85725f5581d7a74d7ec519bc45be549610ea (patch)
tree87c9e26ee76708eb4437c4deb64cb0d4d1c9ca8d /source4
parentb261082333435ce37088f37e7417e1cd5688f60b (diff)
downloadsamba-7afe85725f5581d7a74d7ec519bc45be549610ea.tar.gz
samba-7afe85725f5581d7a74d7ec519bc45be549610ea.tar.bz2
samba-7afe85725f5581d7a74d7ec519bc45be549610ea.zip
r3077: Add initial handling of Account Flags in SAMR user info level 21 and 25.
Andrew Bartlett (This used to be commit 51774a9bcad97686e5259ac8d753b3df58072622)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 6891a1ea46..8b72d0dc52 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -1676,12 +1676,17 @@ static NTSTATUS samr_SetUserInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX
SET_STRING(msg, info21.workstations.name, "userWorkstations");
IFSET(SAMR_FIELD_LOGON_HOURS)
SET_LHOURS(msg, info21.logon_hours, "logonHours");
+ IFSET(SAMR_FIELD_ACCT_FLAGS)
+ SET_AFLAGS(msg, info21.acct_flags, "userAccountControl");
IFSET(SAMR_FIELD_CALLBACK)
SET_STRING(msg, info21.callback.name, "userParameters");
IFSET(SAMR_FIELD_COUNTRY_CODE)
SET_UINT (msg, info21.country_code, "countryCode");
IFSET(SAMR_FIELD_CODE_PAGE)
SET_UINT (msg, info21.code_page, "codePage");
+
+
+ /* Any reason the rest of these can't be set? */
#undef IFSET
break;
@@ -1701,6 +1706,8 @@ static NTSTATUS samr_SetUserInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX
SET_STRING(msg, info23.info.workstations.name, "userWorkstations");
IFSET(SAMR_FIELD_LOGON_HOURS)
SET_LHOURS(msg, info23.info.logon_hours, "logonHours");
+ IFSET(SAMR_FIELD_ACCT_FLAGS)
+ SET_AFLAGS(msg, info23.info.acct_flags, "userAccountControl");
IFSET(SAMR_FIELD_CALLBACK)
SET_STRING(msg, info23.info.callback.name, "userParameters");
IFSET(SAMR_FIELD_COUNTRY_CODE)
@@ -1744,6 +1751,8 @@ static NTSTATUS samr_SetUserInfo(struct dcesrv_call_state *dce_call, TALLOC_CTX
SET_STRING(msg, info25.info.workstations.name, "userWorkstations");
IFSET(SAMR_FIELD_LOGON_HOURS)
SET_LHOURS(msg, info25.info.logon_hours, "logonHours");
+ IFSET(SAMR_FIELD_ACCT_FLAGS)
+ SET_AFLAGS(msg, info25.info.acct_flags, "userAccountControl");
IFSET(SAMR_FIELD_CALLBACK)
SET_STRING(msg, info25.info.callback.name, "userParameters");
IFSET(SAMR_FIELD_COUNTRY_CODE)