summaryrefslogtreecommitdiffstats
path: root/source/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-01-22 03:37:09 +0000
committerGünther Deschner <gd@samba.org>2005-01-22 03:37:09 +0000
commit1f2e39014e1be1f45fba411bab5598446020c012 (patch)
tree96dbb77b3d4bbd22becc12132feb997517f21aef /source/smbd/chgpasswd.c
parenta76937fa16a3472b0b539d1d87e7df940dd09955 (diff)
downloadsamba-1f2e39014e1be1f45fba411bab5598446020c012.tar.gz
samba-1f2e39014e1be1f45fba411bab5598446020c012.tar.xz
samba-1f2e39014e1be1f45fba411bab5598446020c012.zip
r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).
Does automated migration from account_policy.tdb v1 and v2 and offers a pdbedit-Migration interface. Jerry, please feel free to revert that if you have other plans. Guenther
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r--source/smbd/chgpasswd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index 540acfc2250..3765b7d38f1 100644
--- a/source/smbd/chgpasswd.c
+++ b/source/smbd/chgpasswd.c
@@ -945,7 +945,7 @@ static BOOL check_passwd_history(SAM_ACCOUNT *sampass, const char *plaintext)
BOOL found = False;
int i, pwHisLen, curr_pwHisLen;
- account_policy_get(AP_PASSWORD_HISTORY, &pwHisLen);
+ pdb_get_account_policy(AP_PASSWORD_HISTORY, &pwHisLen);
if (pwHisLen == 0) {
return False;
}
@@ -1017,7 +1017,7 @@ NTSTATUS change_oem_password(SAM_ACCOUNT *hnd, char *old_passwd, char *new_passw
}
/* FIXME: AP_MIN_PASSWORD_LEN and lp_min_passwd_length() need to be merged - gd */
- if (account_policy_get(AP_MIN_PASSWORD_LEN, &min_len) && (str_charnum(new_passwd) < min_len)) {
+ if (pdb_get_account_policy(AP_MIN_PASSWORD_LEN, &min_len) && (str_charnum(new_passwd) < min_len)) {
DEBUG(1, ("user %s cannot change password - password too short\n",
username));
DEBUGADD(1, (" account policy min password len = %d\n", min_len));