AnsweredAssumed Answered

Issues with the LDAP's Integration

Question asked by ejml on Nov 15, 2006
Latest reply on Nov 16, 2006 by carlos.m
Hi Folks:

I would need to make the next things with my Active Directory and Alfresco:

1) Import only the users from Active Directory (Without groups)

2) To use the authentication that offer Alfresco, when I have already imported the users.

3) Import the users with the attributes:

Username.
Name.
LastName.
Email.

As regards the first question, I only have could import groups. Here there is other question, when the system imports the groups and users, the users aren't visible until somebody goes inside of one group, then suddenly appear the users. I have commented out the lines below on the file ldap-authentication-context.xml to import only users, but it doesn't work fine yet:





<bean id="ldapGroupTrigger" class="org.alfresco.util.TriggerBean">
        <property name="jobDetail">
            <bean id="ldapGroupJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
                <property name="jobClass">
                    <value>org.alfresco.repo.importer.ImporterJob</value>
                </property>
                <property name="jobDataAsMap">
                    <map>
                        <entry key="bean">
                            <ref bean="ldapGroupImport"/>
                        </entry>
                    </map>
                </property>
            </bean>
        </property>
        <!– Start after 120 segundos of starting the repository –>
        <property name="startDelay">
            <value>120000</value>
        </property>
        <!– Repeat every hour –>
        <property name="repeatInterval">
            <value>3600000</value>
        </property>
        <!– Commented out to disable –>
        <!– <property name="scheduler">
            <ref bean="schedulerFactory" />
        </property> –>
    </bean>

As regard the second question, I tried commented out the part of xml file refered to LDAP authentication configuration, but it doesn't work.

Finally, the users imported haven't the attributes before, the part where it is mapped in the code:


<property name="attributeMapping">
            <map>
                <entry key="cm:userName">
                    <!– Must match the same attribute as userIdAttributeName –>
                    <!–
                    <value>uid</value>
                    –>
                    <value>sAMAccountName</value>
                </entry>
                <entry key="cm:firstName">
                    <!– OpenLDAP: "givenName" –>
                    <!– Active Directory: "givenName" –>
                    <value>givenName</value>
                </entry>
                <entry key="cm:lastName">
                    <!– OpenLDAP: "sn" –>
                    <!– Active Directory: "sn" –>
                    <value>sn</value>
                </entry>
                <entry key="cm:email">
                    <!– OpenLDAP: "mail" –>
                    <!– Active Directory: "???" –>
                    <value>mail</value>
                </entry>
                <!– <entry key="cm:organizationId"> –>
                    <!– OpenLDAP: "o" –>
                    <!– Active Directory: "???" –>
                <!–  <value>o</value> –>
                <!– </entry> –>
                <!– Always use the default –>
                <entry key="cm:homeFolderProvider">
                    <null/>
                </entry>
            </map>
        </property>

The only field that I can see is userName.

Thanks in advance!!

Outcomes