Alfresco / alfresco-docker-installer

Generator to build Docker Compose templates to deploy Alfresco Community
Other
142 stars 57 forks source link

Link alfresco to existing LDAP #145

Closed sketubz closed 2 years ago

sketubz commented 2 years ago

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

aborroy commented 2 years ago

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  
                ...
            '
sketubz commented 2 years ago

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