LDAP Query to retrieve users for certain groups

Discussion in 'Active Directory' started by svajhala, Oct 27, 2011.

  1. svajhala

    svajhala

    Joined:
    Oct 27, 2011
    Messages:
    1
    Likes Received:
    0
    Hi,

    I am trying to write a query to find the users who belong to certain groups starting with the group names like 'INFA_LDAP_'. I was able to retrieve the groups using a wildcard entry. But I am not able to retrieve users with in the groups starting with 'INFA_LDAP_'. Below is the example for searching for Groups using a wildcard entry:

    Code:
    (&(objectCategory=group)(sAMAccountName=INFA_LDAP_*))
    I read in some forums that wild card entries are not allowed in a member or memberOf function to retrieve the users. Please let me know if there is any alternative to do this.

    I am struggling a bit to retrieve the members of groups based on a pattern matching criteria in the query.

    Any help would be highly appreciated.

    Thanks,
    Srikanth
     
    Last edited: Oct 27, 2011
    svajhala, Oct 27, 2011
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.