如何重新同步所有Active Directory与Alfresco共享

时间:2015-04-13 09:40:40

标签: active-directory ldap alfresco alfresco-share

我的alfresco LDAP同步已经完成,但缺少一些条目 然后我为alfresco的LDAP同步添加了新属性, 但只有当某人更改了Active Directory中的内容时才会进行更改

我希望为alfresco中的所有用户应用同步而不更改AD中的内容。

这是我的alfresco-global.properties文件:

    ###############################
    ## Common Alfresco Properties #
    ###############################

    dir.root=C:/Alfresco/alf_data

    alfresco.context=alfresco
    alfresco.host=127.0.0.1
    alfresco.port=8080
    alfresco.protocol=http

    share.context=share
    share.host=127.0.0.1
    share.port=8080
    share.protocol=http

    ### database connection properties ###
    db.driver=org.postgresql.Driver
    db.username=alfresco
    db.password=admin
    db.name=alfresco
    db.url=jdbc:postgresql://localhost:5432/${db.name}

    #--------------------------------------------->  debut modif 


    ### E-mail site invitation setting ###
    notification.email.siteinvite=true
    mail.host=test2015.test.be
    mail.port=25
    ###mail.encoding=UTF-8
    mail.from.default=alfresco@test.be
    mail.from.enabled=true
    ###mail.protocol=smtp
    mail.username=alfresco@test.be
    mail.password=testone
    ###activities.feed.notifier.enabled=false

    authentication.chain==ldap-ad1:ldap-ad,alfrescoNtlm1:alfrescoNtlm

    ### LDAP Integration ###
    synchronization.import.cron=0 0/10 9-18 ? * MON-FRI
    synchronization.allowDeletions=true
    synchronization.syncOnStartup=true
    synchronization.synchronizeChangesOnly=false
    synchronization.syncWhenMissingPeopleLogIn=true
    synchronization.authCreatePeopleOnLogin=true
    ldap.synchronization.active=true
    ldap.authentication.java.naming.provider.url=ldap://C2SRVDC1.test.be:389
    ldap.synchronization.java.naming.security.principal=alfresco@test.be
    ldap.synchronization.java.naming.security.credentials=Henry
    ldap.synchronization.groupSearchBase=ou\=Institut erasme,dc\=erasme,dc=be
    ldap.synchronization.userSearchBase=ou\=Institut erasme,dc=\erasme,dc=be


    ldap.authentication.active=true
    ldap.authentication.userNameFormat=%s@erasme.be
    ldap.authentication.java.naming.security.authentication=simple

    ################# ATTRIBUTE MAPPING #############
    #### mapping to unique username in username attribute### 
    #ldap.synchronization.userLastNameAttributeName=cn
    #ldap.synchronization.userEmailAttributeName=mail
    #ldap.synchronization.userFirstNameAttributeName=givenName
    ldap.synchronization.groupIdAttributeName=cn
    #ldap.synchronization.groupType=
    #ldap.synchronization.personType=
    ldap.synchronization.groupMemberAttributeName=member
    #ldap.synchronization.userOrganizationalIdAttributeName=company

    ##-------------------------FIN DE LA MODIFICATION

    ### FTP Server Configuration ###
    ftp.enabled=true
    ftp.port=21

    ### RMI service ports ###
    alfresco.rmi.services.port=50500
    avm.rmi.service.port=0
    avmsync.rmi.service.port=0
    attribute.rmi.service.port=0
    authentication.rmi.service.port=0
    repo.rmi.service.port=0
    action.rmi.service.port=0
    deployment.rmi.service.port=0

    ### External executable locations ###
    ooo.exe=C:/Alfresco/libreoffice/App/libreoffice/program/soffice.exe
    ooo.enabled=true
    ooo.port=8100
    img.root=C:\\Alfresco\\imagemagick
    img.coders=${img.root}\\modules\\coders
    img.config=${img.root}\\config
    img.gslib=${img.root}\\lib
    img.exe=${img.root}\\convert.exe
    swf.exe=C:/Alfresco/swftools/pdf2swf.exe
    swf.languagedir=C:/Alfresco/swftools/japanese

    jodconverter.enabled=false
    jodconverter.officeHome=C:/Alfresco/libreoffice/App/libreoffice
    jodconverter.portNumbers=8100

    ### Initial admin password ###
    alfresco_user_store.adminpassword=209c6174da490caeb422f3fa5a7ae634

    ### E-mail site invitation setting ###
    notification.email.siteinvite=false

    ### License location ###
    dir.license.external=C:/Alfresco

    ### Solr indexing ###
    index.subsystem.name=solr
    dir.keystore=${dir.root}/keystore
    solr.port.ssl=8443

    ### BPM Engine ###
    system.workflow.engine.jbpm.enabled=false

2 个答案:

答案 0 :(得分:2)

根据Alfresco docs on Triggering a full ldap sync,要在服务器启动时强制执行完全重新同步,请添加到您的露天全局属性

synchronization.synchronizeChangesOnly=false

答案 1 :(得分:0)

您的配置没问题,但您必须考虑到在社区版中完全同步从未在启动时发生,只有增量同步在启动时发生。完全同步只能通过预定的同步作业完成。

请参阅Alfresco forums: How to force a Full Sync