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

lutoff
25.07.2009 ba2858890becc2ec90e48ca74fbefb6c1ad1cb6a
refs
author lutoff <lutoff@localhost>
Wednesday, February 25, 2009 11:07 +0100
committer lutoff <lutoff@localhost>
Wednesday, February 25, 2009 11:07 +0100
commitba2858890becc2ec90e48ca74fbefb6c1ad1cb6a
tree 6a5e6a8d3dc5a81d6db898a5b5da4af7640431d9 tree | zip | gz
parent 5ad4cfcbae12c9461f5da603b9890648a4cdb169 view | diff
Fix for issue #3826 (ldapsearch doesn't prompt bind password when the option -w is not provided)
The behavior modification was introduced in rev #4956 in the following method:
org.opends.server.tools.LDAPConnection.connectToHost()

In the old version (rev #3847 line #291) , the bindPW was set to null.
In the new version (rev #4956 line #307), the bindPW is set to an empty ByteString

The actual bind, handled by LDAPAuthenticationHandler.doSimpleBind() method,
switches in interactive mode when bindPW is null, which is not the case with the
new version.

We now also check to the bind password in an empty ByteString.

1 files modified
4 ■■■■ changed files
opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java 4 ●●●● diff | view | raw | blame | history