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
posted Jul 27, 2004 03:59:00
0
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
subject: How can I access the LDAP with Java?