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:


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">
                <property name="jobDataAsMap">
                        <entry key="bean">
                            <ref bean="ldapGroupImport"/>
        <!– Start after 120 segundos of starting the repository –>
        <property name="startDelay">
        <!– Repeat every hour –>
        <property name="repeatInterval">
        <!– Commented out to disable –>
        <!– <property name="scheduler">
            <ref bean="schedulerFactory" />
        </property> –>

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">
                <entry key="cm:userName">
                    <!– Must match the same attribute as userIdAttributeName –>
                <entry key="cm:firstName">
                    <!– OpenLDAP: "givenName" –>
                    <!– Active Directory: "givenName" –>
                <entry key="cm:lastName">
                    <!– OpenLDAP: "sn" –>
                    <!– Active Directory: "sn" –>
                <entry key="cm:email">
                    <!– OpenLDAP: "mail" –>
                    <!– Active Directory: "???" –>
                <!– <entry key="cm:organizationId"> –>
                    <!– OpenLDAP: "o" –>
                    <!– Active Directory: "???" –>
                <!–  <value>o</value> –>
                <!– </entry> –>
                <!– Always use the default –>
                <entry key="cm:homeFolderProvider">

The only field that I can see is userName.

Thanks in advance!!