cancel
Showing results for 
Search instead for 
Did you mean: 

to search all users in ldap server

stc_mis
Champ in-the-making
Champ in-the-making
after fininhing installation,
i logon with admin account , create one space , and want to invite some users to be the readers for that space , but only users who have ever logon are in the search list , not all ldap users , why ?
should i check something in ldap-authentication-context.xml
4 REPLIES 4

simon
Champ in-the-making
Champ in-the-making
Yes, you need to configure your LDAP syncing first in the file you mention. Alfresco will import all users and groups form the LDAP at a specific interval. As long as you didn't sync you will not see any users that didn't logon.

stc_mis
Champ in-the-making
Champ in-the-making
hi, Simon,
do you mean i should configure what in the
"Ldap Syncronisation support"  section in the
ldap-authentication-context.xml  file ?
that is all what i should do ?

simon
Champ in-the-making
Champ in-the-making
This is how our user account syncing part in the ldap-authentication-context.xml looks like. This is indeed the only thing you need to do IF your LDAP configuration is done and working (you seem to login via LDAP so I'll asume that's working correctly).

    <bean id="ldapPeopleTrigger" class="org.alfresco.util.CronTriggerBean">
        <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>
        <property name="scheduler">
            <ref bean="schedulerFactory" />
        </property>
        <property name="cronExpression">
            <value>0 30 10 * * ?</value>
        </property>
    </bean>
The cronExpression defines a fixed time, it's also possible to run it every x minutes but we choose this approach. You probably need the same part for the group syncing…

stc_mis
Champ in-the-making
Champ in-the-making
Thanks a lot ,
particularly what about the cron , that is very helpful!