[prev in list] [next in list] [prev in thread] [next in thread]
List: ldap
Subject: [ldap] RESOLVED (Netscape SDK 4.1 Question)
From: "Joshua M. Goldfarb" <jmg34 () cornell ! edu>
Date: 2002-10-17 15:03:13
[Download RAW message or body]
Hi,
Referring to my previous issue, I have resolved my question. FYI,
if you're interested, it turns out that the search method in LDAPConnection
that takes an LDAPUrl object as an argument instantiates a new connection
to the directory server, whereas some of the other search methods in the
LDAPConnection object do not (which is what I needed).
Thanks,
Josh
Original Message:
-------------------------------------------------------------------------------------- \
-----------------------------------------------------------------------------------------------------------------
Hi,
I'm using the Netscape SDK 4.1 for Java. I want to perform a
bound search, so that I can get all of the attributes for a given dn (not
just the anonymous ones).
Here's pseudo-code for what I tried:
1) instantiate new LDAPConnection object (LDAPConnection conn = new
LDAPConnection();)
2) connect to the directory server (conn.connect("theServer", 389);)
3) bind to the directory server
(conn.authenticate("theAdministratorDNGoesHere",
"theAdministratorPWGoesHere");)
4) search the directory server (conn.search(someLDAPUrlObject);)
5) disconnect from the directory server (conn.disconnect();)
Sounds simple and intuitive, right? Well, it is, except that
behind the scenes, the Netscape SDK opens up a second connection to the
directory server at step 4 (I verified this by looking in the directory
server's logs). The new connection is anonymous, and, as a result, I get
only the anonymous attributes back.
Does anybody know a way to get the Netscape SDK to send a
non-anonymous search?
Thanks,
Josh
-------------------------------------------------------------------------------------- \
-----------------------------------------------------------------------------------------------------------------
--
Joshua M. Goldfarb
Directory Services Programmer
CIT - I&D - Data Management
Cornell University
136 120 Maple Ave.
Tel: 607.255.1916
Fax: 607.255.1297
E-mail: jmg34@cornell.edu
---
You are currently subscribed to ldap@umich.edu as: [ldap@progressive-comp.com]
To unsubscribe send email to ldap-request@umich.edu with the word UNSUBSCRIBE as the \
SUBJECT of the message.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic