summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
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)