diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 23:41:54 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 23:41:54 +0200 |
| commit | 56afac46ce0912eb496b5b22af0d28070218e7be (patch) | |
| tree | a1f6232d3e347765ac92e5df16bd150f002ec71b /src | |
| parent | 4e9dd271596ce778aef5fd76e835d0a260b4460e (diff) | |
Remove old top DN settings for compatibility with latest jldap lib
(maybe)
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/com/c2kernel/lookup/LDAPLookupUtils.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/c2kernel/lookup/LDAPLookupUtils.java b/src/main/java/com/c2kernel/lookup/LDAPLookupUtils.java index 8df365b..d8a4394 100644 --- a/src/main/java/com/c2kernel/lookup/LDAPLookupUtils.java +++ b/src/main/java/com/c2kernel/lookup/LDAPLookupUtils.java @@ -274,7 +274,8 @@ final public class LDAPLookupUtils {
String name = LDAPDN.explodeDN(dn,true)[0];
LDAPAttributeSet attrs = new LDAPAttributeSet();
- attrs.add(new LDAPAttribute("objectclass","top"));
+ //No idea why this worked, or why it suddenly stopped working when we moved to maven
+ //attrs.add(new LDAPAttribute("objectclass","top"));
attrs.add(new LDAPAttribute("objectclass","organization"));
attrs.add(new LDAPAttribute("o",name));
LDAPLookupUtils.addEntry(ld,new LDAPEntry(dn,attrs));
|
