Error al conectar con Active Directoy Win 2012

cancel
Showing results for 
Search instead for 
Did you mean: 
enriquejose
Active Member

Error al conectar con Active Directoy Win 2012

Buenos dias,

De antemano agradezco la ayuda en lo siguiente: tengo problemas al conectar alfresco 5.0.d a un directorio activo en windows 2012. Como dato adicional, se ha conectado herramientas de este tipo como GLPI a este dominio por el puerto 636 de manera exitosa.

***La configuración que tengo es la siguiente:***

ldap.authentication.active=true
authentication.chain=alfinst:alfrescoNtlm,ldap1:ldap-ad

ntlm.authentication.sso.enabled=false

ldap.authentication.allowGuestLogin=false
ldap.authentication.userNameFormat=%s@servppal.empresa.local
ldap.authentication.java.naming.provider.url=ldaps://10.121.100.12:636
ldap.authentication.defaultAdministratorUserNames=alfresco

ldap.authentication.java.naming.security.authentication=SIMPLE
ldap.authentication.java.naming.read.timeout=60000

ldap.synchronization.java.naming.security.principal=alfresco@servppal.empresa.local
ldap.synchronization.java.naming.security.credentials=xxxxx   
ldap.synchronization.groupSearchBase=dc\=servppal,dc\=empresa,dc\=local
ldap.synchronization.userSearchBase=dc\=servppal,dc\=empresa,dc\=local

____________________________________

***El error es el siguiente: ***
2016-05-03 11:59:15,113 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfinst]
2016-05-03 11:59:15,411 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfinst] complete
2016-05-03 11:59:15,411 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, ldap1]
2016-05-03 11:59:15,644 ERROR [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] [localhost-startStop-1] Unable to connect to LDAP Server; check LDAP configuration
javax.naming.CommunicationException: simple bind failed: 10.121.100.12:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]
   at com.sun.jndi.ldap.LdapClient.authenticate(Unknown Source)
   at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
   at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
   at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)
   at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
   at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
   at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)


3 Replies
angelborroy
Alfresco Employee

Re: Error al conectar con Active Directoy Win 2012

Necesitas incluir el certificado SSL del LDAP (la parte pública) en el
cacerts
de la JVM que empleas para lanzar Alfresco.
Hyland Developer Evangelist
enriquejose
Active Member

Re: Error al conectar con Active Directoy Win 2012

Hola angel gracias por tu respuesta, podrias referenciarme algo de como hacer esto que planteas.

Muchas gracias
angelborroy
Alfresco Employee

Re: Error al conectar con Active Directoy Win 2012

Tienes un montón de tutoriales por ahí, por ejemplo éste para añadir la CA de Azure al cacerts de Java: https://azure.microsoft.com/en-us/documentation/articles/java-add-certificate-ca-store/

Tienes que incluir la parte pública del certificado de tu ldapS en el fichero
/opt/alfresco/java/lib/security/cacerts
. De esta manera, la comunicación SSL puede establecerse de manera segura.
Hyland Developer Evangelist