directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucasthei...@apache.org
Subject svn commit: r1694728 - /directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Date Fri, 07 Aug 2015 18:49:18 GMT
Author: lucastheisen
Date: Fri Aug  7 18:49:18 2015
New Revision: 1694728

URL: http://svn.apache.org/r1694728
Log:
Resolved:

* DIRSERVER-2087: Not all policy state attributes get added to PWD_POLICY_STATE_ATTRIBUTE_TYPES

Modified:
    directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java

Modified: directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1694728&r1=1694727&r2=1694728&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
(original)
+++ directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Fri Aug  7 18:49:18 2015
@@ -30,6 +30,8 @@ import static org.apache.directory.api.l
 import static org.apache.directory.api.ldap.model.constants.PasswordPolicySchemaConstants.PWD_LAST_SUCCESS_AT;
 import static org.apache.directory.api.ldap.model.constants.PasswordPolicySchemaConstants.PWD_POLICY_SUBENTRY_AT;
 import static org.apache.directory.api.ldap.model.constants.PasswordPolicySchemaConstants.PWD_RESET_AT;
+import static org.apache.directory.api.ldap.model.constants.PasswordPolicySchemaConstants.PWD_START_TIME_AT;
+import static org.apache.directory.api.ldap.model.constants.PasswordPolicySchemaConstants.PWD_END_TIME_AT;
 import static org.apache.directory.api.ldap.model.entry.ModificationOperation.ADD_ATTRIBUTE;
 import static org.apache.directory.api.ldap.model.entry.ModificationOperation.REMOVE_ATTRIBUTE;
 import static org.apache.directory.api.ldap.model.entry.ModificationOperation.REPLACE_ATTRIBUTE;
@@ -143,6 +145,12 @@ public class AuthenticationInterceptor e
 
     private AttributeType AT_CREATE_TIMESTAMP;
 
+    private AttributeType AT_PWD_POLICY_SUBENTRY;
+
+    private AttributeType AT_PWD_START_TIME;
+
+    private AttributeType AT_PWD_END_TIME;
+
     /** a container to hold all the ppolicies */
     private PpolicyConfigContainer pwdPolicyContainer;
 
@@ -1385,7 +1393,14 @@ public class AuthenticationInterceptor e
         AT_PWD_GRACE_USE_TIME = schemaManager.lookupAttributeTypeRegistry( PWD_GRACE_USE_TIME_AT
);
         PWD_POLICY_STATE_ATTRIBUTE_TYPES.add( AT_PWD_GRACE_USE_TIME );
 
-        PWD_POLICY_STATE_ATTRIBUTE_TYPES.add( schemaManager.lookupAttributeTypeRegistry(
PWD_POLICY_SUBENTRY_AT ) );
+        AT_PWD_POLICY_SUBENTRY = schemaManager.lookupAttributeTypeRegistry( PWD_POLICY_SUBENTRY_AT
);
+        PWD_POLICY_STATE_ATTRIBUTE_TYPES.add( AT_PWD_POLICY_SUBENTRY );
+
+        AT_PWD_START_TIME = schemaManager.lookupAttributeTypeRegistry( PWD_START_TIME_AT
);
+        PWD_POLICY_STATE_ATTRIBUTE_TYPES.add( AT_PWD_START_TIME );
+
+        AT_PWD_END_TIME = schemaManager.lookupAttributeTypeRegistry( PWD_END_TIME_AT );
+        PWD_POLICY_STATE_ATTRIBUTE_TYPES.add( AT_PWD_END_TIME );
     }
 
 



Mime
View raw message