Hey, I'd like to write an application (in java, ofc) that would be able to connect to an LDAP server, with authentication, using sessions. Are there any libraries I could use to do so out there? Open source ones would be best, and the rule KISS is a priority ^.-

Recommended Answers

All 5 Replies

Try to take a look at jLDAP

Oh. Thanks, somehow I missed it. So all I actually need is to use:

LdapConnection lc = newe LdapConnection();
lc.Connect( "www.LDAPServer.com", portNumber );
lc.Bind( login, password );

to have an established session? Cool.

There is still one thing I can't fix - connection timeouts - how do I set those? The point would be to end the session after some time of inactivity of the applications user. Now, an admin tells me it's done on the client's side, the web tells me it's done by the ldap server. How is it done?

bump, anyone?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.