diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-10-10 12:57:44 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-10-10 12:57:44 +0000 |
commit | 6f83e9c0cd74457d94c2f8221fc72bb646ba728f (patch) | |
tree | 01dfb78bfe1348cd213f5fd866cffbc47081eba4 /source3/passdb | |
parent | 6af214dbb0bf9505483fd225b097ad695eed9361 (diff) | |
download | samba-6f83e9c0cd74457d94c2f8221fc72bb646ba728f.tar.gz samba-6f83e9c0cd74457d94c2f8221fc72bb646ba728f.tar.bz2 samba-6f83e9c0cd74457d94c2f8221fc72bb646ba728f.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 dfd6bef580525cf719988c3a6eaaf47c46542de5)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 7 |
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) |