git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
533847c
)
Match Samba 2.2, and make ACB_NORMAL the default ACB value.
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 10 Oct 2003 12:57:44 +0000
(12:57 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 10 Oct 2003 12:57:44 +0000
(12:57 +0000)
(Samba 2.2 did this in the LDAP code, but it fits better as a generic thing)
Andrew Bartlett
source/passdb/passdb.c
patch
|
blob
|
history
diff --git
a/source/passdb/passdb.c
b/source/passdb/passdb.c
index 0afa130a67fd041f8663643ce6281f66741960ee..9d8f600eeac9a81703528a40ee5d72d22338977e 100644
(file)
--- 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)