Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Problem with LdapLoginModule on Jetty

Hi

I am trying to setup a Ldap authentification with jetty LdapLoginModule and
i've found some difficulties. Hope you can give me some clue.

I have login module configured

jettyLogin {
   org.eclipse.jetty.plus.jaas.spi.LdapLoginModule required
   	debug="true"
   	contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
   	hostname="localhost"
   	port="1389"
	bindDn="uid=admin,ou=People,o=acme,dc=example,dc=com"
	bindPassword="admin"
   	authenticationMethod="simple"
   	forceBindingLogin="false"
	userBaseDn="ou=People,o=acme,dc=example,dc=com"
   	userRdnAttribute="uid"
   	userIdAttribute="uid"
   	userPasswordAttribute="userPassword"
   	userObjectClass="inetOrgPerson"
	roleBaseDn="ou=Roles,o=acme,dc=example,dc=com"
   	roleNameAttribute="cn"
   	roleMemberAttribute="member"
   	roleObjectClass="groupOfNames";
   };

where my LDAP entry is

dn: uid=jduke4,ou=People,o=acme,dc=example,dc=com
objectclass: top
objectclass: inetOrgPerson
objectclass: person
uid: jduke4
cn: Java 4
sn: Duke4
userPassword: theduke
mail: jduke4@xxxxxxxxxxxxxxxx


What i see is that the call to the module works and it find the user by
username in the getUserCredentials(String username) method but it does not
retrieve any _userPasswordAttribute so when it checks it is null.

Have you seen this before? ... any idea of whats happenning?

Thanks in advance,





--
View this message in context: http://jetty.4.x6.nabble.com/Problem-with-LdapLoginModule-on-Jetty-tp4961912.html
Sent from the Jetty User mailing list archive at Nabble.com.


Back to the top