Bonjour à tous,

 

Je suis nouveau dans l’utilisation de jahia et j’ai certaines difficultés à configurer une connexion à un LDAP. Je m’explique :

 

1-       Je suis allé enlever les commentaires (provider et criteria) dans les fichiers router-config.xml et group-router-config.xml  se trouvant à TOMCAT_HOME/webapps/jahia/WEB-INF/etc/services/usermanager/ comme cela est expliqué dans la FAQ : http://www.jahia.net/jahia/589#3

 

Y’a-t-il une autre modification à apporter à ces fichiers ?

 

 

2-       Je suis allé configurer les fichiers users.ldap.properties et groups.ldap.properties se trouvant à TOMCAT_HOME/webapps/jahia/WEB-INF/etc/ldap/ malheureusement je crois que je me trompe à ce niveau de la configuration voici comment je l’ai configuré :

 

# Configuration file for standard ldap server

users.ldap.context.factory                = com.sun.jndi.ldap.LdapCtxFactory

users.ldap.url                            = ldap://localhost:389/

users.ldap.authentification.mode          = simple

users.ldap.public.bind.dn                 = dc=essai,dc=fr

 

# if you need to login to do public browsing of the directory, uncomment the following line and enter the password.

users.ldap.public.bind.password           = secret

 

# the following value will be used as the user key, if it's not found the user will not be used !

users.ldap.uid.search.attribute           = cn=olivier,dc=essai,dc=fr

# base dn search

users.ldap.uid.search.name                = dc=essai,dc=fr

users.ldap.search.countlimit              = 100

users.ldap.search.objectclass             = person

 

# the following defines the attributes to use for wildcard search such as *=*test*

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

 

# Map attribute, that indicate which LDAP attribute to map to Jahia standard properties

# Make sure you comment out the ones you are not using, especially if the LDAP

# repository contains same names attributes. If you don't searching users will

# most probably not work correctly.

users.ldap.defined.username.attribute.map = cn

users.ldap.firstname.attribute.map        = givenName

users.ldap.lastname.attribute.map         = sn

users.ldap.email.attribute.map            = mail

users.ldap.organization.attribute.map     = ou

 

 

 

 

Je me connecte normalement sur mon LDAP avec les paramètres suivant :

Base DN : dc=essai,dc=fr

Utilisateur DN : cn=olivier,dc=secret,dc=fr

Mot de passe : secret

Protocole : Ldap v3

Hote : localhost

Port : 389

 

Lorsque je me connecte à Jahia en administrateur et que je souhaite, dans la partie « Manage user », effectuer une recherche je ne trouve pas dans la partie Fournisseur d’accès mon ldap.

 

Si vous pouviez m’éclairer sur le sujet.

 

Merci

 

Cordialement

 

Olivier MARCUCCI

 

 

 

 

Répondre à