Re: authentificating with ldap javax.security.auth.login.LoginException on org.apache.catalina.realm.JAASRealm authenticate

[email protected]
Newsgroups gmane.comp.jakarta.jetspeed.user
Message-ID <OFF8D9A3B5.E1AEE2B0-ONC1257920.00324C94-C1257920.0032A4F8@LocalDomain>


Last problem: the solution

The password is crypted in SHA-1 (it could be changed easily in
configuration).

In the security-ldap.xml file, the default algorythm for
org.apache.jetspeed.security.spi.impl.LdapCredentialPasswordEncoder is
CRYPT.
I changed it to SHA, to be consistent with the other part of configuration,
and it works fine, users created with jetspeed can connect.

Here si the chunck of spring file configuration:

  <bean
id="org.apache.jetspeed.security.spi.impl.LdapCredentialPasswordEncoder"

class="org.apache.jetspeed.security.spi.impl.LdapCredentialPasswordEncoder">
    <meta key="j2:cat" value="default or security" />
    <constructor-arg index="0">
      <value>SHA</value>
    </constructor-arg>
  </bean>

Regards,
Jérôme


Exposition  Vogue : l'aventure d'une maison de disque  - jusqu'au13 novembre 2011 - BnF - François-Mitterrand / Allée Julien Cain Avant d'imprimer, pensez à l'environnement.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.