summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
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)