Bonjour à tous,

J'ai besoin d'importer des champs en plus de mon ldap afin de les utiliser 
dans jahia.

Que dois-je faire dans les fichiers de conf pour voir les valeurs ?

Voilà comment je les récupère : 
        String country = 
((JahiaLDAPUser)(theUser2)).getUserProperty("country").getValue();
        session.setAttribute("country",country);
        String language = 
((JahiaLDAPUser)(theUser2)).getUserProperty("language").getValue(); 
        session.setAttribute("language",language);

Et comment je les affiche : 
        <%
        String country = (String)       session.getAttribute( "thecountry" 
);
        String language = (String)      session.getAttribute( 
"thelanguage" );
        %>
        <%=country%> | <%=language%>

Les variables sont nulles quand j'essaye de les afficher à l'écran.

J'ai aussi modifié le fichier de conf users.ldap.properties

users.ldap.search.wildcards.attributes    = ou, cn, o, c, mail, uid, 
uniqueIdentifier, givenName, sn, dn, preferredlanguage, homecountry

users.ldap.username.attribute.map = uid
users.ldap.firstname.attribute.map        = givenName
users.ldap.lastname.attribute.map         = sn
users.ldap.email.attribute.map            = mail
users.ldap.organization.attribute.map     = ou
users.ldap.country.attribute.map = homecountry
users.ldap.language.attribute.map = preferredlanguage

Ai-je oublié quelque chose ?

Je vous remercie d'avance pour votre aide.
Marie



Marie Burietz
Pimkie International
Chef de Projet Intranet
[EMAIL PROTECTED]
Phone : 00 33 328 32 32 32

--------------------------------------------
This message and any attachments (the "message") are confidential and intended 
solely for the addresses. Any unauthorised use or dissemination is prohibited.
If you are not receiver of this message, please cancel it immediately and 
inform the sender.
This note ensures that our antivirus checked that this message did not include 
any virus know to date, nevertheless any e-mail is suitable for deterioration.
We shall not be liable for the message if altered, changed or falsified.
--------------------------------------------

Attachment: jpgaEHaaw1Lgp.jpg
Description: JPEG image

Répondre à