Authentication with Ldap not working

Cantor, Scott cantor.2 at osu.edu
Thu Mar 12 10:23:07 EDT 2015


On 3/12/15, 9:30 AM, "Kevin Flückiger" <kevin.flueckiger at inovitas.ch> wrote:

>am struggling. I see the following exception in the idp-process.log:
> 
>javax.security.auth.login.LoginException: No LoginModules configured for ShibUserPassAuth
> 
>Eventhough I have enabled the UsernamePassword LoginHandler in the handler.xml. The following is the configuration in my login.config file:
>ShibUserPassAuth {
> 
>   edu.vt.middleware.ldap.jaas.LdapLoginModule required
>      ldapUrl="ldap://localhost:10389"
>      baseDn="ou=services,ou=user,dc=example,dc=com"
>      bindDn="cn=admin,ou=administrative,ou=user,dc=example,dc=com"
>      bindCredential="password";
>};
> 
>To me it looks as if the login.config never gets loaded. I can put in there whatever I want, the exception stays the same. These are the lines in my handler.xml:
><ph:LoginHandler xsi:type="ph:UsernamePassword" jaasConfigurationLocation="file:///opt/shibboleth-idp/conf/login.config">

As you deduced, it's clearly not loading that file. Either you haven't restarted the container between changes, or there's something funny happening, like you changing a different file than you think you are.

-- Scott



More information about the users mailing list