Authentication and synchronisation of Alfresco 23 with Active Directory

cancel
Showing results for 
Search instead for 
Did you mean: 
pschuett
Customer

Authentication and synchronisation of Alfresco 23 with Active Directory

Hallo,

I use Alfresco with docker-compose and try to configure it for Active Directory:

-Dauthentication.chain="ldap-ad1:ldap-ad,alfrescoNtlm1:alfrescoNtlm"
-Dalfresco.authentication.allowGuestLogin=false
-Dldap.authentication.active=true
-Dldap.authentication.enabled=true
-Dldap.authentication.java.naming.provider.url=ldap://myadserver.net:389
-Dldap.authentication.allowGuestLogin=false
-Dldap.synchronization.active=true
-Dldap.synchronization.java.naming.security.principal="CN=myapp_user,OU=LDAP_ReadOnlyUser,OU=My-Service-User,OU=Mx-Service,DC=myadserver,DC=net"
-Dldap.synchronization.java.naming.security.credentials="mypassword"
-Dldap.synchronization.java.naming.security.authentication=simple

The URL and the principal exists and the password is also correct.

But I get this error message:
Synchronization aborted due to error org.alfresco.error.AlfrescoRuntimeException: 06240036 Error during LDAP Search. Reason:domain:389

In the deepness of the stacktrace I found :
Caused by: java.net.UnknownHostException: domain
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:336)
at java.naming/com.sun.jndi.ldap.Connection.<init>(Connection.java:232)
at java.naming/com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137

What is wrong?

Thanks for any hint.

Cheers

  Peter Schütt