wood burning stoves 2.0*
The moose likes Security and the fly likes Need a simple Java LDAP client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Need a simple Java LDAP client" Watch "Need a simple Java LDAP client" New topic
Author

Need a simple Java LDAP client

Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
Hello, I need a simple java class that can search and return values from an LDAP directory. Does anyone know of any available code? TIA.
Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
Hi, I have found a program that reads as follows:


I need some additional code to do simple name/password authentication. TIA.
Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
I was able to find another program that does exactly what I need including authentication.

Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
Hello all, I have been told that my connection to the ldap server will need to go through a proxy server. I will not be able to simply pass the url plus port. Has anyone worked with implementing sockets to connect to an ldap server?
Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
I am researching the sockets issue and wondering if it is possible to pass anything 'secure' through a proxy I have no control over?
Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
Hi All, I am stuck, I need to utilize a proxy server to get out of my network to get to an LDAP server. The admins refuse to make an exception. Is there any way to code into existing classes to utilize a proxy server? Any ideas are most welcome! TIA.
Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
Hello All, i am looking at using http tunneling to make an ldap connection through the proxy server on port 8080. The problem is that I keep getting errors about the protocol not being recognized. I have the following code:



Any ideas are greatly appreciated!
 
wood burning stoves
 
subject: Need a simple Java LDAP client
 
Similar Threads
caching ldap ?!
JNDI Delete entire LDAP subtree
Need an example on LDAP with EJB Stateless Session beans
LDAP java codes
LDAP Authentication using Java