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

lutoff
25.07.2009 948a9f4e1b188880ab88ab614f8053925fd99c54
refs
author lutoff <lutoff@localhost>
Wednesday, February 25, 2009 11:07 +0100
committer lutoff <lutoff@localhost>
Wednesday, February 25, 2009 11:07 +0100
commit948a9f4e1b188880ab88ab614f8053925fd99c54
tree 7256459324a941a53c053b6eca17d10be707a87e tree | zip | gz
parent b79f9bbf6524dac4a9c845363cdf3c6bc4fb1622 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
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java 4 ●●●● diff | view | raw | blame | history