-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect Alfresco with LDAPS #146
Comments
You need to add the LDAP TLS certificate to Alfresco Truststore. This may help: https://hub.alfresco.com/t5/alfresco-content-services-hub/ldap-over-ssl/ba-p/290005 |
Hi Angel, Thanks for information. I saw that you need to import the certificate for Tomcat to recognize it, but as I'm not very experienced in working with Docker, I identify some difficulties. I have the .cer certificate issued by LDAP. As we use your project's Dockerfile, I can't run the keytool import because it asks for a password and a new password. I tried to copy the certificate into a new folder of the container and informed the docker-compose.yml this location, but it generated an error. I also reported in docker-compose.yml How can I install this certificate inside the Alfresco container? |
In order to add the certificate to LDAP connection, you need to use specific settings for the LDAP Subsystem. Since mTLS communication keystores are not used for this configuration.
You can build this And use a volume to mount the external file
|
Good morning Angel. Thank you for your feedback and the success in the execution. It is now successfully synchronizing with LDAPS. Thanks |
Angel, I apologize for reopening the case. But it stopped working overnight. Execution steps: 4 - I directed to an external volume where the .jks certificate is. But when running in the console log of alfresco, the following error message appears: It was like this when I closed the ticket, but in a normal stop/start process it stopped connecting. Thanks |
Good Morning,
I'm using the project of Angel and I try to connect to LDAPS on port 636, but it doesn't connect, generating the following error line:
2022-09-26 12:01:58,845 ERROR [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] [main] Unable to connect to LDAP Server; check LDAP configuration
javax.naming.CommunicationException: simple bind failed: 172.30.0.40:636 [Root exception is java.net.SocketException: Connection or outbound has closed]
The connection between servers is allowed.
Alfresco was also installed with https protocol with port 8433.
The configuration of docker-commpose.yml is as follows:
-Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true
-Dldap.authentication.allowGuestLogin=false
-Dldap.authentication.userNameFormat=%[email protected]
-Dldap.authentication.java.naming.provider.url=ldaps://xxx.xx.x.x:636
-Dldap.authentication.defaultAdministratorUserNames=admin
-Dldap.synchronization.java.naming.security.principal=xxxxxx
-Dldap.synchronization.java.naming.security.credentials=xxxxxxxxx
-Dldap.synchronization.groupSearchBase=OU=Groups,OU=xx,DC=xxxx,DC=com,DC=xx
-Dldap.synchronization.userSearchBase=OU=Users,OU=xxxxx,DC=xxx,DC=com,DC=xx
-Dauthentication.chain=alfinst:alfrescoNtlm,dc1:ldap-ad
Can anyone point me in the right direction or help me on this topic?
Do I really need to have the LDAPS server certificate and import it into the alfresco container structure?
Thanks
Marco Gianini
The text was updated successfully, but these errors were encountered: