| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | return; |
| | | } |
| | | |
| | | long highestFailureTime = -1; |
| | | for (Long l : authFailureTimes) |
| | | { |
| | | highestFailureTime = Math.max(l, highestFailureTime); |
| | | } |
| | | |
| | | AttributeType type = |
| | | DirectoryServer.getAttributeType(OP_ATTR_PWPOLICY_FAILURE_TIME_LC, |
| | | true); |
| | | this.authFailureTimes = authFailureTimes; |
| | | |
| | | AttributeBuilder builder = new AttributeBuilder(type); |
| | | long highestFailureTime = -1; |
| | | |
| | | for (Long l : authFailureTimes) |
| | | { |
| | | highestFailureTime = Math.max(l, highestFailureTime); |
| | | builder |
| | | .add(AttributeValues.create(type, GeneralizedTimeSyntax.format(l))); |
| | | } |
| | |
| | | |
| | | if (getRequiredChangeTime() != requiredChangeTime) |
| | | { |
| | | this.requiredChangeTime = requiredChangeTime; |
| | | |
| | | AttributeType type = DirectoryServer.getAttributeType( |
| | | OP_ATTR_PWPOLICY_CHANGED_BY_REQUIRED_TIME, true); |
| | | |
| | |
| | | userDNString); |
| | | } |
| | | |
| | | this.requiredChangeTime = Long.MIN_VALUE; |
| | | |
| | | AttributeType type = DirectoryServer.getAttributeType( |
| | | OP_ATTR_PWPOLICY_CHANGED_BY_REQUIRED_TIME, true); |
| | | if (updateEntry) |
| | |
| | | userDNString); |
| | | } |
| | | |
| | | this.graceLoginTimes = graceLoginTimes; |
| | | |
| | | AttributeType type = |
| | | DirectoryServer.getAttributeType(OP_ATTR_PWPOLICY_GRACE_LOGIN_TIME_LC, |
| | | true); |