Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
openldap
JLDAP
Commits
fd4226d7
Commit
fd4226d7
authored
Jul 06, 2009
by
Nachiappan Palaniappan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
To make the connection as anonymous bind in case of null-bind dn or null-pasword.
parent
08e6fe79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
com/novell/ldap/LDAPConnection.java
com/novell/ldap/LDAPConnection.java
+5
-2
No files found.
com/novell/ldap/LDAPConnection.java
View file @
fd4226d7
...
...
@@ -1496,8 +1496,11 @@ public class LDAPConnection implements Cloneable
if
(
cons
==
null
)
cons
=
defSearchCons
;
if
(
dn
==
null
)
{
boolean
anonymous
=
false
;
if
(
dn
==
null
||
dn
.
length
()==
0
)
{
dn
=
""
;
anonymous
=
true
;
// anonymous, passwd length zero with simple bind
passwd
=
null
;
}
else
{
dn
=
dn
.
trim
();
}
...
...
@@ -1505,7 +1508,7 @@ public class LDAPConnection implements Cloneable
if
(
passwd
==
null
)
passwd
=
new
byte
[]
{};
boolean
anonymous
=
false
;
if
(
passwd
.
length
==
0
)
{
anonymous
=
true
;
// anonymous, passwd length zero with simple bind
dn
=
""
;
// set to null if anonymous
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment