Failed to connect to LDAP Server: domain.com:636 [Caused by javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed:
2016-08-07 21:21:16,082-0500 DEBUG [pool-138-thread-8] admin com.softwarementors.extjs.djn.Timer - - Individual request #1 response data=>{"tid":36,"action":"ldap_LdapServer","method":"read","result":{"success":true,"data":[{"userBaseDn":"ou=Users and Groups","userSubtree":true,"userObjectClass":"user","userLdapFilter":"","userIdAttribute":"sAMAccountName","userRealNameAttribute":"cn","userEmailAddressAttribute":"mail","userPasswordAttribute":"","ldapGroupsAsRoles":true,"groupType":"dynamic","groupBaseDn":null,"groupSubtree":false,"groupObjectClass":null,"groupIdAttribute":null,"groupMemberAttribute":null,"groupMemberFormat":null,"userMemberOfAttribute":"memberOf","id":"34808a11-3034-49c8-97d7-60f5b507737c","order":1,"name":"ActiveDirectory","url":"ldaps://domain.com:636/dc=domain,dc=com","protocol":"ldaps","useTrustStore":false,"host":"ldap.domain.com","port":636,"searchBase":"dc=domain,dc=com","authScheme":"simple","authRealm":null,"authUsername":"someaccountnamehere","authPassword":"#~NEXUS~PLACEHOLDER~PASSWORD~#","connectionTimeout":30,"connectionRetryDelay":300,"maxIncidentsCount":3}]},"type":"rpc"}: 3.54 ms.
2016-08-07 21:21:16,095-0500 DEBUG [pool-138-thread-14] admin com.softwarementors.extjs.djn.Timer - - Individual request #5 response data=>{"tid":40,"action":"ldap_LdapServer","method":"readTemplates","result":{"success":true,"data":[{"name":"Active Directory","userBaseDn":"cn=users","userSubtree":false,"userObjectClass":"user","userLdapFilter":null,"userIdAttribute":"sAMAccountName","userRealNameAttribute":"cn","userEmailAddressAttribute":"mail","userPasswordAttribute":null,"ldapGroupsAsRoles":true,"groupType":"dynamic","groupBaseDn":null,"groupSubtree":false,"groupObjectClass":null,"groupIdAttribute":null,"groupMemberAttribute":null,"groupMemberFormat":null,"userMemberOfAttribute":"memberOf"},{"name":"Posix with Static Groups","userBaseDn":"ou=people","userSubtree":false,"userObjectClass":"posixAccount","userLdapFilter":null,"userIdAttribute":"uid","userRealNameAttribute":"cn","userEmailAddressAttribute":"mail","userPasswordAttribute":null,"ldapGroupsAsRoles":true,"groupType":"static","groupBaseDn":"ou=groups","groupSubtree":false,"groupObjectClass":"posixGroup","groupIdAttribute":"cn","groupMemberAttribute":"memberUid","groupMemberFormat":"${username}","userMemberOfAttribute":null},{"name":"Posix with Dynamic Groups","userBaseDn":"ou=people","userSubtree":false,"userObjectClass":"posixAccount","userLdapFilter":null,"userIdAttribute":"uid","userRealNameAttribute":"cn","userEmailAddressAttribute":"mail","userPasswordAttribute":null,"ldapGroupsAsRoles":true,"groupType":"dynamic","groupBaseDn":null,"groupSubtree":false,"groupObjectClass":null,"groupIdAttribute":null,"groupMemberAttribute":null,"groupMemberFormat":null,"userMemberOfAttribute":"memberOf"},{"name":"Generic Ldap Server","userBaseDn":null,"userSubtree":false,"userObjectClass":"inetOrgPerson","userLdapFilter":null,"userIdAttribute":"uid","userRealNameAttribute":"cn","userEmailAddressAttribute":"mail","userPasswordAttribute":"userPassword","ldapGroupsAsRoles":true,"groupType":"dynamic","groupBaseDn":null,"groupSubtree":false,"groupObjectClass":null,"groupIdAttribute":null,"groupMemberAttribute":null,"groupMemberFormat":null,"userMemberOfAttribute":"memberOf"}]},"type":"rpc"}: 11.75 ms.
2016-08-07 21:22:00,684-0500 DEBUG [qtp1226738417-159] admin org.sonatype.nexus.ldap.internal.realms.DefaultLdapContextFactory - Initializing LDAP context using URL [ldaps://domain.com:636/dc=domain,dc=com] and username [someaccountnamehere with pooling [enabled] and environment {java.naming.referral=follow, com.sun.jndi.ldap.connect.timeout=30000, java.naming.security.principal=CN=userhere,OU=Default,OU=Users,OU=domain,DC=com, java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, java.naming.provider.url=ldaps://domain,dccom:636/dc=domain,dc=com, java.naming.security.credentials=***, java.naming.security.authentication=simple}
2016-08-07 21:22:00,715-0500 DEBUG [qtp1226738417-159] admin org.sonatype.nexus.extdirect.internal.ExtDirectServlet - Failed to invoke action method: ldap_LdapServer.verifyLogin, java-method: org.sonatype.nexus.ldap.internal.ui.LdapServerComponent.verifyLogin
java.lang.Exception: Failed to connect to LDAP Server: User 'CN=user=Default,OU=Users,OU=domain,OU=Users and Groups,DC=domain,DC=com' cannot be authenticated. [Caused by javax.naming.CommunicationException: ad-domain:636] [Caused by 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] [Caused by sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target] [Caused by sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]
As I mentioned, it was working fine although a bit troublesome upfront getting it to work. Now not working at all. Hopefully this is something I may be doing incorrectly and will be an easy fix.
Appreciate all the help!
-SDA
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/b40e8b8f-3a4f-4b26-b924-c417d7947a8f%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
Thank you Brian. I forgot to mention that we are using a VIP. I also tried adding them as you mentioned in the ssl key screen, but only got me
as far as being able to capture the debug logs - though I didn't remove any that I imported previously using the keytool.This time I deleted all of the certs (1 root, 2 issuing) and imported giving me a single issuing certificate. I tested connectivity and am now able to get back in using my AD creds.For some reason it doesn't like having all of these ^^^ although we have other apps that are connecting fine. I noticed that in the ssl key screen when you import a certificate it prompted me to remove it if what you attempt to import is already there.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/CAPHnHUv71fZSQs-%2BMhgmFZCaCr1DuPpqYmb%3DEPnb6RMCAD0Q2Q%40mail.gmail.com.