Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Python-ldap, ADSI Edit - Find department attribute

Posted on 2010-08-13
4
Medium Priority
?
1,366 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

721 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