Results 1 to 4 of 4

Thread: LDAP Search Query Error

  1. #1
    Join Date
    Jan 2004
    Posts
    44

    LDAP Search Query Error

    I need some help on LDAP. I am getting a error in search query. I am using a Windows 2003 server here. Now through LDAP I am able to pass the authentication but somehow when I try to query GAL I am getting a error. I though this would be some issue in start. But the error is constant. I had provided the error code below. Can anyone help me to find out a solution for the same.

    LDAP: error code 10 - 0000202B: RefErr: DSID-03100698, data 0, 1 access points ref 1: 'mydomain.com'

  2. #2
    Join Date
    Sep 2004
    Posts
    59

    Re: LDAP Search Query Error

    The toll you selected for doing it it correct. So i guess you might be making some mistake using it. Can you tell me how are you querying the GC? I mean, what method are you using?

  3. #3
    Join Date
    Jan 2004
    Posts
    44

    Re: LDAP Search Query Error

    Thank you for replying Henri. Let me first tell you that i am new for LDAP as well as AD. SO i agree i might have made some mistake. Anyway, here is my source:it is created by Java

    "CN=Users,DC=mydomain,DC=com";
    filter:(objectClass=person)

    search

    and I use method:

    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    NamingEnumeration results = context.search(dn,filter,constraints);

    My context setting are:
    PROVIDER_URL:LDAP://host:389
    REFERAL:follow

    Is there any problem? If yes, please correct me.

  4. #4
    Join Date
    Sep 2004
    Posts
    76

    Re: LDAP Search Query Error

    That sounds pretty good and frankness. However I'm too not a programmer and have never attempted LDAP/ ADSI, etc in Java. But according to what i know i can tell you 2 things depending on this situation.

    First: Use (objectCategory=person) as objectCategory is indexed and objectClass isn't by default.

    Second: Use GC://host:3268 to connect to the GC (the GAL is just a query of the GC).

    If you face any problem with this you can also try the ADSI group and/ or any Java groups.

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
    By Palaksi in forum Active Directory
    Replies: 3
    Last Post: 11-12-2008, 02:09 AM
  4. LDAP query can it be done ?
    By zscw1 in forum Active Directory
    Replies: 3
    Last Post: 13-11-2008, 10:08 AM
  5. LDAP Search Query Syntax
    By etienne in forum Active Directory
    Replies: 1
    Last Post: 06-08-2008, 07:47 PM

Tags for this Thread

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,718,025,226.29586 seconds with 16 queries