Skip to Content
author's profile photo Former Member
Former Member

Traveling down AD OUs, with xMII LDAP Query

Hi,

Now I can get into AD when I run the user list test query:

select sAMAccountName name from cn=Users where objectCategory=user

I get into the basic top level users OU.

I need to get into the OU ProdUsers, as that is where our users are.

OU=ProdUsers,OU=Monterrey,OU=Food,OU=AM,OU=PKG,OU=PROD,DC=Company,DC=biz.

I modified the query tol look like this:

select sAMAccountName name from cn=users, ou=ProdUsers, ou=monterrey, ou=food, ou=am, ou=pkg, ou=Prod where objectCategory=user.

But I am not getting a list of users,

Query test returned the following number of records: 0

and the error is:

javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'OU=ProdUsers,OU=Monterrey,OU=Food,OU=AM,OU=PKG,OU=PROD,DC=Company,DC=biz' ]; remaining name 'cn=users, ou=ProdUsers, ou=monterrey, ou=food, ou=am, ou=pkg, ou=Prod,DC=Company,DC=biz'

From what I found out that this is a groups settings error.

Any idea what that groups setting should look like?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 09:48 PM

    Hi, Disregard that post found the problem.

    Query does not need a cn=, so it looks like this now and it works

    select sAMAccountName name from ou=ProdUsers, ou=monterrey, ou=food, ou=am, ou=pkg, ou=Prod where objectCategory=user

    Thanks for looking.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.