Solved

Python-ldap, ADSI Edit - Find department attribute

Posted on 2010-08-13
4
1,351 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
4 Comments
 
LVL 26

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

828 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