directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1468444 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ppolicy/PasswordPolicyIT.java
Date Tue, 16 Apr 2013 14:48:51 GMT
Author: elecharny
Date: Tue Apr 16 14:48:51 2013
New Revision: 1468444

URL: http://svn.apache.org/r1468444
Log:
Fixed some failures due to the duplication of entries

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ppolicy/PasswordPolicyIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ppolicy/PasswordPolicyIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ppolicy/PasswordPolicyIT.java?rev=1468444&r1=1468443&r2=1468444&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ppolicy/PasswordPolicyIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/ppolicy/PasswordPolicyIT.java
Tue Apr 16 14:48:51 2013
@@ -555,10 +555,10 @@ public class PasswordPolicyIT extends Ab
 
         LdapConnection adminConnection = getAdminNetworkConnection( getLdapServer() );
 
-        Dn userDn = new Dn( "cn=userMaxAge,ou=system" );
+        Dn userDn = new Dn( "cn=userMaxAgeNoGraceAuthNLimit,ou=system" );
         String password = "12345";
 
-        addUser( adminConnection, "userMaxAge", password );
+        addUser( adminConnection, "userMaxAgeNoGraceAuthNLimit", password );
 
         BindRequest bindReq = new BindRequestImpl();
         bindReq.setDn( userDn );
@@ -601,10 +601,10 @@ public class PasswordPolicyIT extends Ab
 
         LdapConnection adminConnection = getAdminNetworkConnection( getLdapServer() );
 
-        Dn userDn = new Dn( "cn=userMaxAge,ou=system" );
+        Dn userDn = new Dn( "cn=userMaxAgeWithGraceAuthNLimit,ou=system" );
         String password = "12345";
 
-        addUser( adminConnection, "userMaxAge", password );
+        addUser( adminConnection, "userMaxAgeWithGraceAuthNLimit", password );
 
         BindRequest bindReq = new BindRequestImpl();
         bindReq.setDn( userDn );
@@ -658,13 +658,14 @@ public class PasswordPolicyIT extends Ab
     {
         policyConfig.setPwdMaxAge( 5 );
         policyConfig.setPwdGraceExpire( 2 );
+        policyConfig.setPwdGraceAuthNLimit( 2 );
 
         LdapConnection adminConnection = getAdminNetworkConnection( getLdapServer() );
 
-        Dn userDn = new Dn( "cn=userMaxAge,ou=system" );
+        Dn userDn = new Dn( "cn=userMaxAgeWithGraceExpire,ou=system" );
         String password = "12345";
 
-        addUser( adminConnection, "userMaxAge", password );
+        addUser( adminConnection, "userMaxAgeWithGraceExpire", password );
 
         BindRequest bindReq = new BindRequestImpl();
         bindReq.setDn( userDn );
@@ -723,10 +724,10 @@ public class PasswordPolicyIT extends Ab
 
         LdapConnection adminConnection = getAdminNetworkConnection( getLdapServer() );
 
-        Dn userDn = new Dn( "cn=userMaxAge,ou=system" );
+        Dn userDn = new Dn( "cn=userMaxAgeAndGraceAuth,ou=system" );
         String password = "12345";
 
-        addUser( adminConnection, "userMaxAge", password );
+        addUser( adminConnection, "userMaxAgeAndGraceAuth", password );
 
         BindRequest bindReq = new BindRequestImpl();
         bindReq.setDn( userDn );
@@ -882,9 +883,9 @@ public class PasswordPolicyIT extends Ab
 
         LdapConnection adminConnection = getAdminNetworkConnection( getLdapServer() );
 
-        Dn userDn = new Dn( "cn=userLockout4,ou=system" );
+        Dn userDn = new Dn( "cn=userLockoutWithDuration,ou=system" );
 
-        addUser( adminConnection, "userLockout4", "12345" );
+        addUser( adminConnection, "userLockoutWithDuration", "12345" );
 
         BindRequest bindReq = new BindRequestImpl();
         bindReq.setDn( userDn );



Mime
View raw message