| | |
| | | |
| | | |
| | | import java.util.Iterator; |
| | | import java.util.LinkedHashSet; |
| | | import java.util.List; |
| | | import java.util.concurrent.locks.Lock; |
| | | |
| | |
| | | // The bind DN provided by the client. |
| | | private DN bindDN; |
| | | |
| | | // The entry of the user that successfully authenticated during processing for |
| | | // this bind operation. |
| | | private Entry authenticatedUserEntry; |
| | | |
| | | // The lookthrough limit that should be enforced for the user. |
| | | private int lookthroughLimit; |
| | | |
| | |
| | | mustChangePassword = false; |
| | | pwPolicyWarningType = null; |
| | | pwPolicyWarningValue = -1 ; |
| | | authenticatedUserEntry = null; |
| | | pluginConfigManager = DirectoryServer.getPluginConfigManager(); |
| | | |
| | | |
| | |
| | | AuthenticationInfo authInfo = getAuthenticationInfo(); |
| | | if ((getResultCode() == ResultCode.SUCCESS) && (authInfo != null)) |
| | | { |
| | | authenticatedUserEntry = authInfo.getAuthenticationEntry(); |
| | | clientConnection.setAuthenticationInfo(authInfo); |
| | | clientConnection.setSizeLimit(sizeLimit); |
| | | clientConnection.setTimeLimit(timeLimit); |
| | |
| | | { |
| | | // Get the appropriate authentication handler for this request based |
| | | // on the SASL mechanism. If there is none, then fail. |
| | | SASLMechanismHandler saslHandler = |
| | | SASLMechanismHandler<?> saslHandler = |
| | | DirectoryServer.getSASLMechanismHandler(saslMechanism); |
| | | if (saslHandler == null) |
| | | { |
| | |
| | | * to fail. |
| | | */ |
| | | private void checkPasswordPolicyState(Entry userEntry, |
| | | SASLMechanismHandler saslHandler) |
| | | SASLMechanismHandler<?> saslHandler) |
| | | throws DirectoryException |
| | | { |
| | | boolean isSASLBind = (saslHandler != null); |
| | |
| | | if ((attrList != null) && (attrList.size() == 1)) |
| | | { |
| | | Attribute a = attrList.get(0); |
| | | LinkedHashSet<AttributeValue> values = a.getValues(); |
| | | Iterator<AttributeValue> iterator = values.iterator(); |
| | | Iterator<AttributeValue> iterator = a.iterator(); |
| | | if (iterator.hasNext()) |
| | | { |
| | | AttributeValue v = iterator.next(); |
| | |
| | | if ((attrList != null) && (attrList.size() == 1)) |
| | | { |
| | | Attribute a = attrList.get(0); |
| | | LinkedHashSet<AttributeValue> values = a.getValues(); |
| | | Iterator<AttributeValue> iterator = values.iterator(); |
| | | Iterator<AttributeValue> iterator = a.iterator(); |
| | | if (iterator.hasNext()) |
| | | { |
| | | AttributeValue v = iterator.next(); |
| | |
| | | if ((attrList != null) && (attrList.size() == 1)) |
| | | { |
| | | Attribute a = attrList.get(0); |
| | | LinkedHashSet<AttributeValue> values = a.getValues(); |
| | | Iterator<AttributeValue> iterator = values.iterator(); |
| | | Iterator<AttributeValue> iterator = a.iterator(); |
| | | if (iterator.hasNext()) |
| | | { |
| | | AttributeValue v = iterator.next(); |
| | |
| | | if ((attrList != null) && (attrList.size() == 1)) |
| | | { |
| | | Attribute a = attrList.get(0); |
| | | LinkedHashSet<AttributeValue> values = a.getValues(); |
| | | Iterator<AttributeValue> iterator = values.iterator(); |
| | | Iterator<AttributeValue> iterator = a.iterator(); |
| | | if (iterator.hasNext()) |
| | | { |
| | | AttributeValue v = iterator.next(); |