AnsweredAssumed Answered

[SOLVED] LDAP configuration in 2.1 Problem!

Question asked by jey on Jul 4, 2007
Latest reply on Jul 4, 2007 by jey
Hi everyone!

I have migrated my Alfresco installation from 2.0 to 2.1R1 and I have the following problem:

The LDAP import doesn't work anymore!
The authentication still work fine, but their is no more import performed!

I have look a the new wiki page https://gva-alfresco/alfresco/faces/jsp/browse/browse.jsp and it seems that the configuration has change. In particular the scheduler bean.
Now it seems that it should be done this way:

<bean id="ldapGroupTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
       <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>
       <property name="startDelay">
           <value>60000</value>
       </property>
       <property name="repeatInterval">
           <value>3600000</value>
       </property>
   </bean>

<bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
       <property name="triggers">
           <list>
               <ref bean="tempFileCleanerTrigger" />
               <ref bean="ftsIndexerTrigger" />
               <ref bean="indexRecoveryTrigger" />
               <ref bean="indexBackupTrigger" />
               <ref bean="ldapGroupTrigger" />
           </list>
       </property>
       <property name="waitForJobsToCompleteOnShutdown">
           <value>true</value>
       </property>
       <property name="configLocation">
           <value>classpath:alfresco/domain/quartz.properties</value>
       </property>
   </bean>

But the sample file given with 2.1 is still using the old syntax
<bean id="ldapPeopleTrigger" class="org.alfresco.util.TriggerBean">
        <property name="jobDetail">
            <bean id="ldapPeopleJobDetail" 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="ldapPeopleImport"/>
                        </entry>
                    </map>
                </property>
            </bean>
        </property>
        <!– Start after 5 minutes of starting the repository –>
        <property name="startDelay">
            <value>300000</value>
        </property>
        <!– Repeat every hour –>
        <property name="repeatInterval">
            <value>3600000</value>
        </property>
        <!– Commented out to disable
        <property name="scheduler">
            <ref bean="schedulerFactory" />
        </property>
        –>
    </bean>

Does anyone knows how I could fix this???

Thanks,
jey.

Outcomes