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

sin
01.47.2009 c09bad28b062835489bf418b6c99a2b8291a9d26
issue 2624: ldapsearch: wrong return code when no password provided
1 files modified
2 ■■■ changed files
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendBindOperation.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendBindOperation.java
@@ -715,7 +715,7 @@
    if (DirectoryServer.bindWithDNRequiresPassword() &&
        ((bindDN != null) && (! bindDN.isNullDN())))
    {
      throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM,
      throw new DirectoryException(ResultCode.INAPPROPRIATE_AUTHENTICATION,
                                   ERR_BIND_DN_BUT_NO_PASSWORD.get());
    }