Results 1 to 2 of 2

Thread: LDAP Query to show all users within multiple OUs

  1. #1
    Join Date
    Dec 2005
    Posts
    102

    LDAP Query to show all users within multiple OUs

    I am trying to write the below LDAP query against the 2003 Active Directory that I am using. Below is the components that I would like to list, so that I can do an export of this information:

    From the users general tab:
    1. Name
    2. Office
    4. Phone Number
    5. Email

    From the users Address tab:
    All of the fields

    From the users Telephones tab:
    All of the fields

    From the Organization tab:
    All of the fields

    From Profile
    All of the fields

    Can anyone please help me out? Thanks.

  2. #2
    Join Date
    Oct 2005
    Posts
    792
    You can try to grab a list of arbitrary set of attributes for user objects in the domain, although it seems like thats what you want, using adfind that you can get at joeware.net website or dsquery:

    adfind
    dsquery * domainroot -filter
    "(&(objectCategory=Person)(objectclass=User))" -attr attribute1 attribute2
    etc...
    adfind -b dc=yourdomain,dc=com -f
    "(&(objectCategory=Person)(objectclass=User))" attribute1 attribute2

Similar Threads

  1. LDAP query to speficied LDAP server on TCP port 389 failed
    By Shash in forum Windows Server Help
    Replies: 2
    Last Post: 02-05-2012, 05:01 PM
  2. LDAP Query AD
    By shivinder in forum Active Directory
    Replies: 4
    Last Post: 03-06-2010, 11:23 AM
  3. ldap query with guid
    By kyosang in forum Active Directory
    Replies: 2
    Last Post: 17-06-2009, 07:34 PM
  4. LDAP query
    By Palaksi in forum Active Directory
    Replies: 3
    Last Post: 11-12-2008, 02:09 AM
  5. LDAP query can it be done ?
    By zscw1 in forum Active Directory
    Replies: 3
    Last Post: 13-11-2008, 10:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,490,368.53143 seconds with 18 queries