summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-10-10 12:57:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-10-10 12:57:44 +0000
commitdfd6bef580525cf719988c3a6eaaf47c46542de5 (patch)
tree0bebc6f4c3b4936224b177549fd1526d515361a7 /source/passdb
parent533847c95d475921b0421ae113f52c44979939d2 (diff)
downloadsamba-dfd6bef580525cf719988c3a6eaaf47c46542de5.tar.gz
samba-dfd6bef580525cf719988c3a6eaaf47c46542de5.tar.xz
samba-dfd6bef580525cf719988c3a6eaaf47c46542de5.zip
Match Samba 2.2, and make ACB_NORMAL the default ACB value.
(Samba 2.2 did this in the LDAP code, but it fits better as a generic thing) Andrew Bartlett
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/passdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c
index 0afa130a67f..9d8f600eeac 100644
--- a/source/passdb/passdb.c
+++ b/source/passdb/passdb.c
@@ -104,6 +104,13 @@ void pdb_fill_default_sam(SAM_ACCOUNT *user)
user->private.plaintext_pw = NULL;
+ /*
+ Unless we know otherwise have a Account Control Bit
+ value of 'normal user'. This helps User Manager, which
+ asks for a filtered list of users.
+ */
+
+ user->private.acct_ctrl = ACB_NORMAL;
}
static void destroy_pdb_talloc(SAM_ACCOUNT **user)