<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ldap on René Moser</title><link>https://www.renemoser.net/tags/ldap/</link><description>Recent content in Ldap on René Moser</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 15 Jan 2008 00:00:00 +0000</lastBuildDate><atom:link href="https://www.renemoser.net/tags/ldap/index.xml" rel="self" type="application/rss+xml"/><item><title>LDAP Authentication using Java</title><link>https://www.renemoser.net/blog/2008/01/15/ldap-authentication-using-java/</link><pubDate>Tue, 15 Jan 2008 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2008/01/15/ldap-authentication-using-java/</guid><description>Authenticating a user against an LDAP directory does not require a framework. A plain JNDI context is enough: bind to the directory as the user with the password they supplied and let the directory server decide whether the credentials are valid.
This post was written in 2008. The JNDI API shown here is still part of the JDK and still works, but the original example connected over an unencrypted ldap:// URL, which sends the password over the network in clear text.</description></item></channel></rss>