cancel
Showing results for 
Search instead for 
Did you mean: 

Connexion Ldap Alfresco 3.1

damienda
Champ in-the-making
Champ in-the-making
Bonjour, nous travaillons sur la migration d'un Alfresco 3.1.0 de Jboss 4.3.2 vers un Tomcat 6.
Cependant depuis une semaine, Nous éprouvons des difficultés lors de la connexion au LDAP.
La fenètre de Login affiche le message suivant

<strong>Impossible de se connecter - nom d'utilisateur/mot de passe inconnu.</strong>

Nous avons configuré le LDAP dans le fichier shared/classes/alfresco/extension/jaas-authentication-context.xml de Tomcat comme ci-dessous :


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
    <!– The authentication component.                                      –>

    <!– Jass authentication - most of the config goes somewhere else       –>

    <bean id="authenticationComponent"
          class="org.alfresco.repo.security.authentication.jaas.JAASAuthenticationComponent"
          parent="authenticationComponentBase">
        <property name="realm">
            <value>DEFAULT.REALM</value>
        </property>
        <property name="nodeService">
            <ref bean="nodeService" />
        </property>
        <property name="personService">
            <ref bean="personService" />
        </property>
        <property name="transactionService">
            <ref bean="transactionService" />
        </property>
    </bean>

    <!– DAO that rejects changes - JAAS is read only at the moment.      –>
    <!– It does allow users to be deleted with out warnings from the UI. –>
    <!– The user is still present in JAAS, only the personal information is removed from alfresco. –>

    <bean id="authenticationDao" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao" >
        <property name="allowSetEnabled" value="true" />
        <property name="allowGetEnabled" value="true" />
        <property name="allowDeleteUser" value="true" />
        <property name="allowCreateUser" value="true" />
    </bean>

</beans>


Nous avons configuré l'authentification dans tomcat dans le fichier conf/server.xml comme ci-dessous

<Realm className="org.apache.catalina.realm.JNDIRealm"
               connectionURL="ldap://XXXX.XXXX.XXX:389/"
               userPattern="uid={0},ou=People,dc=XXXX,dc=fr"
               roleName="cn"
               roleBase="ou=Applications,dc=XXXX,dc=fr"
               roleSearch="(uniqueMember={1})"
               userSubtree="true"
               roleSubtree="true"
        />


les tests avec un  outil type Ldapbrowser fonctionne très bien!!!

Help me please
10 REPLIES 10

cleseach
Star Contributor
Star Contributor
Bonjour,

J'arrive peut-être un peu tard pour un besoin "très très urgent", mais avez vous lu : http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems ?
Ca c'est pour le fond.

Pour la forme, vous êtes sur un forum communautaire et les exigences "merci de décrire étape par étape" et "très très urgent" peuvent être à la fois difficiles à comprendre et impossible à suivre 😉

Cordialement,
Charles Le Seac'h