aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes How can I access the LDAP with Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "How can I access the LDAP with Java?" Watch "How can I access the LDAP with Java?" New topic
Author

How can I access the LDAP with Java?

Tom Hut
Greenhorn

Joined: Jul 27, 2004
Posts: 9
Hello there!
I'm looking for a simple example for connecting to a LDAP server with Java / JNDI. For searching some datarecords e.g names and addresses.

I�don't unstand the api verry well, so I decided to ask in this Forum.

I hope some could give me a little help, cause it's important for me and my job...


thx a lot!
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
hi

sun has a tutorial on JNDI:
JNDI tutorial (there are )examples in this tutorial.
and of course
google knows more.

i think as soon as you have a more concrete question you will find lots of help here.

cheers

pascal
Tom Hut
Greenhorn

Joined: Jul 27, 2004
Posts: 9
Hi Pascal,

thanks for your reply!

Now, I 'll try the tutorial and see if it's working.

May you have a little Code sample for me? like in the tutorial, but just a complete and runnig code? which i could paste into eclipse and try on it?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Tom!

LDAP and JNDI is a bit beyond the beginner topics discussed in this forum.

I'm moving this to the EJB and Other J2EE Technologies forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Tom Hut
Greenhorn

Joined: Jul 27, 2004
Posts: 9
Hi Dirk, thanks for the welcome greet!

I made some tutorials and tried some code and
now Eclipse gives me some Errors, which I couldn'T turn off.

Here's the Code:

got it from: Java Developers Almanac

ctx..... and process(attr).. create Error messages.
Maybe some import is missing ? or a declaration?

please help. thx
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How can I access the LDAP with Java?
 
Similar Threads
Saving password field in LDAP Server
Authentication mechanism and code procedure from web app to an LDAP server
Use of Active Directory with WAS 3.5
LDAP
LDAP Integration with JNDI