Searching an LDAP directory through JAVA

F

FET

Hi all,
I am trying to search a Microsoft Active Directory server on Windows
2003 using Netscape LDAP API. I have the entire DIT in place as:
ou=product,o=cos,dc=myweb,dc=com

Under this tree, I successfully added a cn=user1 and some attributes.
But I am unable to search the directory using this api. The exact
error is as follows:

netscape.ldap.LDAPException: error result (32); 0000208D: NameErr:
DSID-03151E4D, problem 2001 (NO_OBJECT), data 0, best match of:
'DC=myweb,DC=com'
; matchedDN = DC=myweb,DC=com; No such object

LDAPUrl is ldap://<server>:389/CN=user1,OU=product,O=cos,C=IN,DC=myweb,DC=com
I simply construct an LDAPUrl as above and perform a search on it
thus:
LDAPSearchResults results = new LDAPConnection().search(lurl);

I get the exception at the line where I call the
LDAPConnection().search.

Please help me.
Thank you in advance.
Regards.
 
Joined
Mar 4, 2008
Messages
1
Reaction score
0
This can happen because the user cn=user1 does not have permission to acces the ou=product,o=cos,dc=myweb,dc=com. Perhaps you can modify the access Control lists for this OU and can work around this issue.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top