summaryrefslogtreecommitdiff
path: root/source/include
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-12-03 17:14:23 +0000
committerJean-François Micouleau <jfm@samba.org>2001-12-03 17:14:23 +0000
commitbc28a8eebd9245ce3004ae4b1a359db51f77bf21 (patch)
treee2807c26af2c387f9bf00d1694a27fe5ad8c6bf4 /source/include
parent80010d80f93cfb32c53a1720c7564fb080846f35 (diff)
downloadsamba-bc28a8eebd9245ce3004ae4b1a359db51f77bf21.tar.gz
added a tdb to store the account policy informations.
You can change them with either usermanager->policies->account or from a command prompt on NT/W2K: net accounts /domain we can add a rpc accounts to the net command. As the net_rpc.c is still empty, I did not start. How should I add command to it ? Should I take the rpcclient/cmd_xxx functions and call them from there ? alse changed the SAM_UNK_INFO_3 parser, it's an NTTIME. This one is more for jeremy ;-) J.F.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/rpc_samr.h5
-rw-r--r--source/include/smb.h14
2 files changed, 15 insertions, 4 deletions
diff --git a/source/include/rpc_samr.h b/source/include/rpc_samr.h
index b3b46c6f0c6..0d0dd7237c1 100644
--- a/source/include/rpc_samr.h
+++ b/source/include/rpc_samr.h
@@ -481,14 +481,11 @@ typedef struct q_samr_query_domain_info
typedef struct sam_unknown_info_3_info
{
- uint32 unknown_0; /* 0x0000 0000 */
- uint32 unknown_1;
-
+ NTTIME logout;
/* 0x8000 0000 */ /* DON'T forcibly disconnect remote users from server when logon hours expire*/
/* 0x0000 0000 */ /* forcibly disconnect remote users from server when logon hours expire*/
-
} SAM_UNK_INFO_3;
typedef struct sam_unknown_info_6_info
diff --git a/source/include/smb.h b/source/include/smb.h
index 13fe6abffa6..0ac2118b94c 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -631,6 +631,20 @@ typedef struct sam_passwd
} SAM_ACCOUNT;
/*
+ * Flags for account policy.
+ */
+#define AP_MIN_PASSWORD_LEN 1
+#define AP_PASSWORD_HISTORY 2
+#define AP_USER_MUST_LOGON_TO_CHG_PASS 3
+#define AP_MAX_PASSWORD_AGE 4
+#define AP_MIN_PASSWORD_AGE 5
+#define AP_LOCK_ACCOUNT_DURATION 6
+#define AP_RESET_COUNT_TIME 7
+#define AP_BAD_ATTEMPT_LOCKOUT 8
+#define AP_TIME_TO_LOGOUT 9
+
+
+/*
* Flags for local user manipulation.
*/