Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Python-ldap, ADSI Edit - Find department attribute

Posted on 2010-08-13
4
Medium Priority
?
1,369 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:eduliu
3 Comments
 
LVL 27

Expert Comment

by:DrDave242
ID: 33449900
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.
0
 

Accepted Solution

by:
eduliu earned 0 total points
ID: 33454718
I believe the problem was the Python-ldap module. I ended up using CSVDE to get the department property.
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 34424418
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.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question