Bonjour,
Je viens d'installer la nouvelle version de geosource (v2.11), j'arrive à me connecter à ma base postgres.
Le seul problème qu'il me reste à régler est le problème d'authentification au LDAP, je me connecte bien avec le compte admin admin par défaut, mais pas avec un compte LDAP.
J'ai bien suivi la configuration suivante : http://geonetwork-opensource.org/manuals/trunk/fra/users/admin/authentication/index.html#id1 ,
mais impossible de me connecter au LDAP, je n'ai aucun message dans les logs m'indiquant le problème, pourtant j'ai bien ajouter les 4 paramètres pour avoir plus d'informations :
log4j.logger.geonetwork.ldap = DEBUG
log4j.logger.org.springframework = DEBUG, console, jeeves
log4j.logger.org.springframework.* = DEBUG
log4j.logger.org.springframework.security.ldap = DEBUG
Voici ma configuration concernant le fichier config-security.properties :
# LDAP Connection Settings
ldap.base.provider.url=ldap://localhost:10389
ldap.base.dn=ou=system
ldap.security.principal=uid=admin,ou=system
ldap.security.credentials=secret
ldap.base.search.base=ou=users,ou=system
ldap.base.dn.pattern=uid={0},${ldap.base.search.base}
#ldap.base.dn.pattern=mail={0},${ldap.base.search.base}
# Define if groups and profile information are imported from LDAP. If not, local database is used.
# When a new user connect first, the default profile is assigned. A user administrator can update
# privilege information.
ldap.privilege.import=false
ldap.privilege.create.nonexisting.groups=false
# Define the way to extract profiles and privileges from the LDAP
# 1. Define one attribute for the profile and one for groups in config-security-overrides.properties
# 2. Define one attribute for the privilege and define a custom pattern (use LDAPUserDetailsContextMapperWithPattern in config-security.xml).
ldap.privilege.pattern=
#ldap.privilege.pattern=CAT_(.*)_(.*)
ldap.privilege.pattern.idx.group=1
ldap.privilege.pattern.idx.profil=2
---------------------------------------------------------
La configuration concernant le fichier config-security-overrides.properties :
# Map user information to LDAP attributes and default values
ldapUserContextMapper.mapping[name]=cn,
ldapUserContextMapper.mapping[surname]=sn,
ldapUserContextMapper.mapping[mail]=mail,data@anonymised.com
ldapUserContextMapper.mapping[organisation]=,
ldapUserContextMapper.mapping[kind]=,
ldapUserContextMapper.mapping[address]=,
ldapUserContextMapper.mapping[zip]=,
ldapUserContextMapper.mapping[state]=,
ldapUserContextMapper.mapping[city]=,
ldapUserContextMapper.mapping[country]=,
ldapUserContextMapper.mapping[privilege]=groups,sample
# If not set, the default profile is RegisteredUser
# Valid profiles are http://geonetwork-opensource.org/manuals/trunk/eng/developer/apidocs/geonetwork/org/fao/geonet/constants/Geonet.Profile.html
ldapUserContextMapper.mapping[profile]=profile,RegisteredUser
--------------------------
J'ai bien activé le LDAP dans le fichier config-security.xml.
Donc je ne sais pas d'où vient le problème.
Est-ce que vous pouvez m'aider pour résoudre ce problème ?
Merci par avance.
Cordialement,
Rachid