Hi!
I think I have found the problem, just need to ckeck one thing first.
IN the original code that works with Active Directory, they use the following code on th resultset fopr the ldap query:
My idea is that this new unix-directory doesn't return an attribute called "distinguishedName". Can you guys that worked a lot with active directory confirm that there is indeed a standard attribute called "distinguishedname"?Code:SearchResult result = (SearchResult)ne.next(); Attributes attributes = result.getAttributes(); Attribute distinguishedNameAttribute = attributes.get("distinguishedName"); String distinguishedName = (String)distinguishedNameAttribute.get();
We have replaced the samaccountsname to just uid and that part seems to work fine.
kind regards
Henrik




Reply With Quote