summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-10-03 13:07:02 +0000
committerAndrew Tridgell <tridge@samba.org>2001-10-03 13:07:02 +0000
commitc388e744c4aee2f18d769cf3bedecf86a8b83126 (patch)
treef84ac8fc6c869ecd9e5f2fde0b8f16d27c6bc5d6
parent5640bb595321552f52956517db4f13200685e3d8 (diff)
downloadsamba-c388e744c4aee2f18d769cf3bedecf86a8b83126.tar.gz
samba-c388e744c4aee2f18d769cf3bedecf86a8b83126.tar.bz2
samba-c388e744c4aee2f18d769cf3bedecf86a8b83126.zip
set ACB_PWNOEXP by default on new accounts.
(This used to be commit ead3d41f1a8293bcd2062af918b58022f4d9b10e)
-rw-r--r--source3/passdb/passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 96c11de73a..86ee97d281 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -878,8 +878,8 @@ account without a valid local system user.\n", user_name);
return False;
}
- /* set account flags */
- if (!pdb_set_acct_ctrl(sam_pass,((local_flags & LOCAL_TRUST_ACCOUNT) ? ACB_WSTRUST : ACB_NORMAL) )) {
+ /* set account flags. Note that the default is non-expiring accounts */
+ if (!pdb_set_acct_ctrl(sam_pass,((local_flags & LOCAL_TRUST_ACCOUNT) ? ACB_WSTRUST : ACB_NORMAL|ACB_PWNOEXP) )) {
slprintf(err_str, err_str_len-1, "Failed to set 'trust account' flags for user %s.\n", user_name);
pdb_free_sam(&sam_pass);
return False;