Solved

Python-ldap, ADSI Edit - Find department attribute

Posted on 2010-08-13
4
1,355 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
A hard and fast method for reducing Active Directory Administrators members.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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