AnsweredAssumed Answered

Integrate LDAP Servers with the API Portal

Question asked by SamWalker on Mar 21, 2016
Latest reply on May 4, 2016 by swama01

Hello, I am integrating my LDAP server configured in Gateway with Portal. Upon selecting the LDAP server, and testing connection, I get this error:

 

All the following steps are done:

Integrating LDAP servers with an API Portal involves the following steps:

Step 1: Set Up API Portal Groups on an LDAP Server

Step 2: Create an LDAP Identity Provider on the Gateway

Step 3: Install the API Portal Authentication and Management Service on the Gateway

Step 4: Configure the Layer 7 Auth Plugin on the API Portal

Step 5: Enable LDAP Authentication on the API Portal

Prerequisite:

You have correctly set up and configured the LDAP servers that you will use for authenticating the API Portal users.

 

Have I missed another step somewhere along the way? I am using Software Gateway/Portal.

 

Azaad to my rescue again?

 

Error:

 

03/21 14:05:10.451 DEBUG (http-37080-1:) - [PluginManager general] -- PluginManager.executeAction: method=checkConnection

Mar 21, 2016 2:05:10 PM com.l7tech.ldap.RequestUtil processRequest

SEVERE: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

        at javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:248)

        at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:255)

        at sun.net.www.protocol.https.HttpsClient.createSocket(HttpsClient.java:405)

        at sun.net.NetworkClient.doConnect(NetworkClient.java:162)

        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)

        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)

        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)

        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)

        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)

        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)

        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)

        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)

        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)

        at com.l7tech.ldap.RequestUtil.processRequest(Unknown Source)

        at com.l7tech.ldap.RequestUtil.processAuthRequest(Unknown Source)

        at com.l7tech.ldap.ResourceManager.processsAuthRequest(Unknown Source)

        at com.l7tech.ldap.GatewayAuthenticationPlugin.checkConnection(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:497)

        at com.thelevel.cms.plugins.PluginManager.executeMethod(PluginManager.java:413)

        at com.thelevel.cms.plugins.PluginManager.generateMethodExecution(PluginManager.java:257)

        at com.thelevel.cms.plugins.PluginManager.generatePluginXML(PluginManager.java:233)

        at com.thelevel.cms.plugins.PluginManager.executeAction(PluginManager.java:201)

        at com.thelevel.cms.admin.action.PluginAction.pluginAction(PluginAction.java:69)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:497)

        at com.thelevel.cms.admin.action.AdminActionDespatcher.delegateAction(AdminActionDespatcher.java:82)

        at com.thelevel.cms.admin.AdminServlet.processRequest(AdminServlet.java:3044)

        at com.thelevel.cms.admin.AdminServlet.instrumentRequest(AdminServlet.java:314)

        at com.thelevel.cms.admin.AdminServlet.doPost(AdminServlet.java:275)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at com.thelevel.cms.admin.JSONFilter.doFilter(JSONFilter.java:41)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at com.thelevel.lrs.JForumFilter.doFilter(JForumFilter.java:107)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at com.thelevel.cms.identity.AuthFilter.doFilter(AuthFilter.java:106)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.picocontainer.web.PicoServletContainerFilter.doFilter(PicoServletContainerFilter.java:74)

        at com.thelevel.cms.CMSBootstrapper$ServletFilter.doFilter(CMSBootstrapper.java:649)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

        at java.lang.Thread.run(Thread.java:745)

Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

        at java.security.Provider$Service.newInstance(Provider.java:1617)

        at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)

        at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)

        at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)

        at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96)

        at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:122)

        at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:332)

        at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:289)

        at sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:85)

        at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)

        at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)

        at java.net.URL.openConnection(URL.java:979)

        at com.thelevel.lrs.gateway.LRSWrapper.processRequest(LRSWrapper.java:412)

        at com.thelevel.lrs.gateway.LRSWrapper.checkOTK(LRSWrapper.java:137)

        at com.thelevel.lrs.gateway.LRSGatewayPlugin.checkOTK(LRSGatewayPlugin.java:521)

        at com.thelevel.lrs.gateway.LRSGatewayPlugin.start(LRSGatewayPlugin.java:170)

        at com.thelevel.cms.plugins.PluginManager.startPlugins(PluginManager.java:378)

        at com.thelevel.cms.plugins.PluginManager.init(PluginManager.java:87)

        at com.thelevel.cms.CMSBootstrapper.composeApplication(CMSBootstrapper.java:453)

        at com.thelevel.cms.CMSBootstrapper.contextInitialized(CMSBootstrapper.java:280)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

        at org.apache.catalina.core.StandardService.start(StandardService.java:525)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:497)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect

        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)

        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)

        at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:225)

        at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)

        at java.security.KeyStore.load(KeyStore.java:1445)

        at sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(TrustManagerFactoryImpl.java:226)

        at sun.security.ssl.SSLContextImpl$DefaultSSLContext.getDefaultTrustManager(SSLContextImpl.java:767)

        at sun.security.ssl.SSLContextImpl$DefaultSSLContext.<init>(SSLContextImpl.java:733)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

        at java.security.Provider$Service.newInstance(Provider.java:1595)

        ... 34 more

Caused by: java.security.UnrecoverableKeyException: Password verification failed

        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)

        ... 46 more

 

 

[Fatal Error] :-1:-1: Premature end of file.

Mar 21, 2016 2:05:10 PM com.l7tech.ldap.RequestUtil processXmlResponse

WARNING: Unable to parse response properly. Reason: Premature end of file.

Outcomes