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

lutoff
25.23.2009 e59528243f3f148db4684925ddefa8b42f75c820
refs
author lutoff <lutoff@localhost>
Wednesday, February 25, 2009 17:23 +0100
committer lutoff <lutoff@localhost>
Wednesday, February 25, 2009 17:23 +0100
commite59528243f3f148db4684925ddefa8b42f75c820
tree 9a2a47e7be468dfc94a8769ea0d6c47e0fdf01b6 tree | zip | gz
parent de60f2d5eff40932d6bc832837e906210869528d 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.

Previous fix was not good: The user cannot specify anymore -D "" -w ""
If the password is not the command line, We now set it to null.

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