Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Searching an LDAP directory through JAVA

Reply
Thread Tools

Searching an LDAP directory through JAVA

 
 
FET
Guest
Posts: n/a
 
      08-25-2003
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.
 
Reply With Quote
 
 
 
 
mathewhai mathewhai is offline
Junior Member
Join Date: Mar 2008
Posts: 1
 
      03-04-2008
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-ldap/win32 or python/ldap/win32 rcmn Python 1 11-06-2006 11:47 PM
Need to wrtie LDAP class to *answer* LDAP queries. junk1@davidbevan.co.uk Java 1 02-21-2006 09:59 PM
[ANN] Ruby/LDAP 0.9.1: LDAP API (RFC1823) library. Ian Macdonald Ruby 0 03-15-2005 11:23 PM
using LDAP Controls in ruby-ldap Jason Wold Ruby 5 11-07-2004 03:35 AM
How to get structure of Active Directory through LDAP Ronen Diment Java 1 12-09-2003 09:47 PM



Advertisments