summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-02 10:16:28 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-02 10:16:28 +0000
commit2ef9be9a99cbd4b3c5076433153d675aa0cd4ca2 (patch)
tree2cd36969e8d97fbf8f18bd8f0593bc2298bc163e /source3/include
parentf4f43fc9401a5c681ec7cd18564dbad3a1d8cd08 (diff)
downloadsamba-2ef9be9a99cbd4b3c5076433153d675aa0cd4ca2.tar.gz
samba-2ef9be9a99cbd4b3c5076433153d675aa0cd4ca2.tar.bz2
samba-2ef9be9a99cbd4b3c5076433153d675aa0cd4ca2.zip
This patch merges my private LDAP tree into HEAD.
The main change here is to move ldap into the new pluggable passdb subsystem and to take the LDAP location as a 'location' paramter on the 'passdb backend' line in the smb.conf. This is an LDAP URL, parsed by OpenLDAP where supported, and by hand where it isn't. It also adds the ldap user suffix and ldap machine suffix smb.conf options, so that machines added to the LDAP dir don't get mixed in with people. Non-unix account support is also added. This means that machines don't need to be in /etc/passwd or in nss_ldap's scope. This code has stood up well under my production environment, so it relitivly well tested. I'm commiting this now becouse others have shown interest in using it, and there is no point 'hording' the code :-). Andrew Bartlett (This used to be commit cd5234d7dd7309d88944b83d807c1f1c2ca0460a)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 1ae250f9c6..8ec092e623 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -576,8 +576,14 @@ typedef struct {
#define FLAG_SAM_GID 0x00000002
#define FLAG_SAM_SMBHOME 0x00000004
#define FLAG_SAM_PROFILE 0x00000008
-#define FLAG_SAM_LOGONSCRIPT 0x00000010
-#define FLAG_SAM_DRIVE 0x00000020
+#define FLAG_SAM_DRIVE 0x00000010
+#define FLAG_SAM_LOGONSCRIPT 0x00000020
+#define FLAG_SAM_LOGONTIME 0x00000040
+#define FLAG_SAM_LOGOFFTIME 0x00000080
+#define FLAG_SAM_KICKOFFTIME 0x00000100
+#define FLAG_SAM_CANCHANGETIME 0x00000200
+#define FLAG_SAM_MUSTCHANGETIME 0x00000400
+
#define IS_SAM_UNIX_USER(x) \
((pdb_get_init_flag(x) & FLAG_SAM_UID) \