mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
09.26.2006 00a9e13920081bfc4138e72d24bd06cd55955417
Update the CRAM-MD5 SASL mechanism handler to properly set a valid result code
for the case in which an authentication attempt fails because the client
sent a request with a digest having the correct length but that did not contain
only hexadecimal characters.

OpenDS Issue Number: 976
1 files modified
2 ■■■■■ changed files
opends/src/server/org/opends/server/extensions/CRAMMD5SASLMechanismHandler.java 2 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/extensions/CRAMMD5SASLMechanismHandler.java
@@ -372,6 +372,8 @@
    {
      assert debugException(CLASS_NAME, "processSASLBind", pe);
      bindOperation.setResultCode(ResultCode.INVALID_CREDENTIALS);
      int    msgID   = MSGID_SASLCRAMMD5_INVALID_DIGEST_CONTENT;
      String message = getMessage(msgID, pe.getMessage());
      bindOperation.setAuthFailureReason(msgID, message);