mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 23:55:52 +00:00
[FIXED JENKINS-8152]
Formatting error in the rootDN inference code. It shouldn't include attribute name.
This commit is contained in:
1 parent
d7659971dc
commit
c99fc315dd
2 files changed
+5
-2
No files matched your search
@@ -325,8 +325,8 @@ public class LDAPSecurityRealm extends AbstractPasswordBasedSecurityRealm {
|
||||
DirContext ctx = new InitialDirContext(props);
|
||||
Attributes atts = ctx.getAttributes("");
|
||||
Attribute a = atts.get("defaultNamingContext");
|
||||
if(a!=null) // this entry is available on Active Directory. See http://msdn2.microsoft.com/en-us/library/ms684291(VS.85).aspx
|
||||
return a.toString();
|
||||
if(a!=null && a.get()!=null) // this entry is available on Active Directory. See http://msdn2.microsoft.com/en-us/library/ms684291(VS.85).aspx
|
||||
return a.get().toString();
|
||||
|
||||
a = atts.get("namingcontexts");
|
||||
if(a==null) {
|
||||
|
||||
Reference in new issue
Block a user