Hi,

There is a bug in my version (4.0 beta3) of Jahia in the class JahiaLDAPUser. 
Maybe you have already corrected it in the newer releases, I'll submit the 
patch however:

public class JahiaLDAPUser implements JahiaUser
{
    //static final public String USERKEY_LDAP_PREFIX = "{ldap}";//this is bad
    static final public String USERKEY_LDAP_PREFIX = "";  //this is good

In fact this bug doesn't allow the retrieval of db properties of the LDAP user 
after reboot.
lookupUser() removes the prefix, but the JahiaLDAPUser constructor ads it, so 
the setProperty() prepends {ldap} to the property name, but getProperty(), 
done in the construction of JahiaLDAPUSer object (mapDPToJahia()) doesn't use 
it . As properties are fetched from the db only on initial construction of 
the user object, they are not fetched..

I have tested the patch, and it works.

Regards
Predrag

Reply via email to