| | |
| | | import org.opends.server.core.BindOperation; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.PasswordPolicyState; |
| | | import org.opends.server.protocols.asn1.ASN1OctetString; |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | | import org.opends.server.types.AuthenticationInfo; |
| | | import org.opends.server.types.ByteString; |
| | |
| | | return; |
| | | } |
| | | |
| | | String credString = saslCredentials.stringValue(); |
| | | String credString = saslCredentials.toString(); |
| | | int length = credString.length(); |
| | | int nullPos1 = credString.indexOf('\u0000'); |
| | | if (nullPos1 < 0) |
| | |
| | | { |
| | | PasswordPolicyState pwPolicyState = |
| | | new PasswordPolicyState(userEntry, false); |
| | | if (! pwPolicyState.passwordMatches(new ASN1OctetString(password))) |
| | | if (! pwPolicyState.passwordMatches(ByteString.valueOf(password))) |
| | | { |
| | | bindOperation.setResultCode(ResultCode.INVALID_CREDENTIALS); |
| | | |