summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-19 11:47:29 +0100
committerVolker Lendecke <vl@samba.org>2009-01-19 11:49:18 +0100
commite58a8c169cd075ca900a2a144d7b5387460bbf05 (patch)
tree4efd39ab5d58903386357d6a90b28ab892445eb2 /source3
parentb0c92548d8a0ec628e61364da04ea239cf297fc7 (diff)
downloadsamba-e58a8c169cd075ca900a2a144d7b5387460bbf05.tar.gz
samba-e58a8c169cd075ca900a2a144d7b5387460bbf05.tar.bz2
samba-e58a8c169cd075ca900a2a144d7b5387460bbf05.zip
Fix the same bug as 8b618d0 fixes, this time in winbindd_passdb.c
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_passdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_passdb.c b/source3/winbindd/winbindd_passdb.c
index d754373216..d704ca0fd3 100644
--- a/source3/winbindd/winbindd_passdb.c
+++ b/source3/winbindd/winbindd_passdb.c
@@ -333,14 +333,16 @@ static NTSTATUS password_policy(struct winbindd_domain *domain,
}
if (!pdb_get_account_policy(AP_MIN_PASSWORD_LEN,
- (uint32_t *)&p->min_password_length)) {
+ &account_policy_temp)) {
return NT_STATUS_ACCESS_DENIED;
}
+ p->min_password_length = account_policy_temp;
if (!pdb_get_account_policy(AP_PASSWORD_HISTORY,
- (uint32_t *)&p->password_history_length)) {
+ &account_policy_temp)) {
return NT_STATUS_ACCESS_DENIED;
}
+ p->password_history_length = account_policy_temp;
if (!pdb_get_account_policy(AP_USER_MUST_LOGON_TO_CHG_PASS,
&p->password_properties)) {