Link to home
Start Free TrialLog in
Avatar of eduliu
eduliu

asked on

Python-ldap, ADSI Edit - Find department attribute

I'm using python-ldap trying to find department of users based on the uid. However, I was not able to get any results with a filter like: '(&(objectClass=user)(anr="<user_id>"))'. I was able to pull department attribute using .net with the above syntax. I tried using ADSI Edit but could not find any department attributes either. Am I searching the wrong Naming Context? The available Naming Context in ADSI Edit were: Configuration, RootDSE, and Schema. None seemed to show department attributes.

Thanks!
Avatar of DrDave242
DrDave242
Flag of United States of America image

Look in the default naming context (it's called "Domain" on my DC, but I think I actually named it that).  That's where I found it in ADSI Edit.
ASKER CERTIFIED SOLUTION
Avatar of eduliu
eduliu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.