summaryrefslogtreecommitdiff
path: root/source4/libnet/composite.h
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-08-01 20:47:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:16 -0500
commitaff62e9ee2f15d92e5331afe9ff942e449a25d8e (patch)
tree8d8f0ab5187236c9afb29dcb02f61653d3ec3ea0 /source4/libnet/composite.h
parent67de5725bc28129fa942c7d014c9722d0e906dea (diff)
downloadsamba-aff62e9ee2f15d92e5331afe9ff942e449a25d8e.tar.gz
samba-aff62e9ee2f15d92e5331afe9ff942e449a25d8e.tar.bz2
samba-aff62e9ee2f15d92e5331afe9ff942e449a25d8e.zip
r8896: Handle more complex case where field being changed doesn't appear
alone in any of userinfo levels. What's needed is extra query step to fill the userinfo structure and then modify a single field. The other way to do it is userinfo level 21 with bitmap flags set, but first all field flags need to be found. rafal (This used to be commit 59769977e8ebc54be7fa80f19638b634f52df515)
Diffstat (limited to 'source4/libnet/composite.h')
-rw-r--r--source4/libnet/composite.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libnet/composite.h b/source4/libnet/composite.h
index 256590bc5b..169b65f215 100644
--- a/source4/libnet/composite.h
+++ b/source4/libnet/composite.h
@@ -62,9 +62,12 @@ struct libnet_rpc_userdel {
#define USERMOD_FIELD_ACCOUNT_NAME ( 0x00000001 )
#define USERMOD_FIELD_FULL_NAME ( 0x00000002 )
#define USERMOD_FIELD_DESCRIPTION ( 0x00000010 )
+#define USERMOD_FIELD_COMMENT ( 0x00000020 )
#define USERMOD_FIELD_LOGON_SCRIPT ( 0x00000100 )
#define USERMOD_FIELD_PROFILE_PATH ( 0x00000200 )
#define USERMOD_FIELD_ACCT_EXPIRY ( 0x00004000 )
+#define USERMOD_FIELD_ALLOW_PASS_CHG ( 0x00008000 )
+#define USERMOD_FIELD_ACCT_FLAGS ( 0x00100000 )
struct libnet_rpc_usermod {
struct {
@@ -77,9 +80,11 @@ struct libnet_rpc_usermod {
const char *account_name;
const char *full_name;
const char *description;
+ const char *comment;
const char *logon_script;
const char *profile_path;
struct timeval *acct_expiry;
+ struct timeval *allow_password_change;
} change;
} in;
};