tags:

views:

67

answers:

1

I need an efficient way to read all users from LDAP. I have a super/root password in Java

All I need is just to list the names.

All ideas are appreciated.

+3  A: 

You can find a nice code sample here.

It uses the LDAP Naming Service Provider for the Java Naming and Directory Interface JNDI, and should do what you want with small adaptations (e.g. put the name of you server, at least). The documentation for the ldap provider is quite good, and will help you extend it to your needs.

tonio
Thank you @tonio
Adnan