memset( pp, 0, sizeof(PassPolicy) );
+ /* Users can change their own password by default */
+ pp->pwdAllowUserChange = 1;
+
if ((a = attr_find( e->e_attrs, ad_pwdPolicySubentry )) == NULL) {
/*
* entry has no password policy assigned - use default
}
}
- if (delmod && (pa = attr_find( e->e_attrs, pp.ad )) != NULL) {
+ /* pa is used in password history check below, be sure it's set */
+ if ((pa = attr_find( e->e_attrs, pp.ad )) != NULL && delmod) {
/*
* we have a password to check
*/