summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-10-10 14:24:19 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-10-10 14:24:19 +0000
commit6cd6f508aa12468950d68567000db33651192a22 (patch)
tree6bfeb3e935d89648b88ff859f66fcc12c048676b /source3
parentbeb664306840f2c5ef1e9de9ebd57153037c0349 (diff)
downloadsamba-6cd6f508aa12468950d68567000db33651192a22.tar.gz
samba-6cd6f508aa12468950d68567000db33651192a22.tar.bz2
samba-6cd6f508aa12468950d68567000db33651192a22.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 (This used to be commit 36ccf922a34127f2eb6b7da590e426544539ab25)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/passdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 0afa130a67..9d8f600eea 100644
--- a/source3/passdb/passdb.c
+++ b/source3/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)