Alfresco/alfresco-docker-installer

Link alfresco to existing LDAP

sketubz opened this issue · 2 comments

Hello,

First, thank you for this awesome script. I am no docker user and am learning a lot with this with this.
I successfully deployed alfresco on Ubuntu 22.04LTS and everything is running smoothly.
But i would like to connect it to an existing Windows AD (not the openldap).

I tried modifying the alfresco-global.properties (in the docker-compose_alfresco below the tomcat folder with this : ldap.authentication.active=true ) in the container but when i restart the services or alfresco from the script, everything disappear.

I m not sure how i should approach this.

Version is Alfresco 7.2

Do you have any documentation or information that could help me ?

Thank you

You need to add your configuration in docker-compose.yml file, as additional lines in services.alfresco.environment.JAVA_OPTS

Don't modify the alfresco-global.properties, but use the Docker environment variables for that.

You should add values similar to these one:

services:
    alfresco:
        environment:
            JAVA_OPTS : '
                ...
                -Dauthentication.chain=alfinst:alfrescoNtlm,ldap1:ldap
                -Dldap.authentication.active=true
                -Dldap.authentication.java.naming.provider.url=ldap://openldap:389
                -Dldap.authentication.userNameFormat=uid=%s,dc=alfresco,dc=com
                -Dldap.synchronization.active=false  
                ...
            '

Ho i see now. Should be good. Thank you, That helped a lot !