Browse Source

Ticket #48967 - passwordMinAge attribute doesn't limit the minimum age of the password

Description: There was a logic error in check_pw_minage.  Password-
MinAge was ignored by the error.  This patch fixes the logic error.

https://fedorahosted.org/389/ticket/48967

Reviewed and tested by [email protected] and [email protected].
(Thank you, William and Simon!)
Noriko Hosoi 9 years ago
parent
commit
790e723e4f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/slapd/pw.c

+ 1 - 1
ldap/servers/slapd/pw.c

@@ -729,7 +729,7 @@ check_pw_minage ( Slapi_PBlock *pb, const Slapi_DN *sdn, struct berval **vals)
 	pwpolicy = new_passwdPolicy(pb, dn);
 	slapi_pblock_get ( pb, SLAPI_PWPOLICY, &pwresponse_req );
 
-	if (!pb->pb_op->o_isroot && !pwpolicy->pw_minage) {
+	if (!pb->pb_op->o_isroot && pwpolicy->pw_minage) {
 
 		Slapi_Entry     *e;
 		char *passwordAllowChangeTime;