5 Replies Latest reply on Jun 5, 2007 6:29 AM by Boleslaw Dawidowicz

    Ldap authentication on Jboss portal 2.6 cr2

    Georges MAHOP Newbie

      I am trying to authenticate users registered in my ldap base. I am using an Active directory server. I replaced identity-config.xml by ldap_identity-config.xml in the jboss-service.xml file and i configured my ldap connection (modification of ldap_identity-config.xml). But when start the portal, i get the following "exception":

      --- MBeans waiting for other MBeans ---
      ObjectName: portal:service=Module,type=IdentityServiceController
       State: FAILED
       Reason: org.jboss.portal.identity.IdentityException: Cannot initiate identity modules:
       I Depend On:
       portal:service=Hibernate
       portal:service=IdentityEventManager
       Depends On Me:
       portal:service=ApprovePublish,type=Workflow
       portal:service=CMS
       portal:service=AuthorizationProvider,type=cms
       portal:name=ACL,service=Interceptor,type=Cms
       portal.management:name=Default,service=Management,type=Identity
       portal:name=User,service=Interceptor,type=Server
       portal:service=Module,type=Mail
       portal:service=CustomizationManager
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: portal:service=Module,type=IdentityServiceController
       State: FAILED
       Reason: org.jboss.portal.identity.IdentityException: Cannot initiate identity modules:
       I Depend On:
       portal:service=Hibernate
       portal:service=IdentityEventManager
       Depends On Me:
       portal:service=ApprovePublish,type=Workflow
       portal:service=CMS
       portal:service=AuthorizationProvider,type=cms
       portal:name=ACL,service=Interceptor,type=Cms
       portal.management:name=Default,service=Management,type=Identity
       portal:name=User,service=Interceptor,type=Server
       portal:service=Module,type=Mail
       portal:service=CustomizationManager
      


      Does anybody know the cause of this problem?

      thanks

        • 1. Re: Ldap authentication on Jboss portal 2.6 cr2
          Boleslaw Dawidowicz Master

          1) There were few minor bugs in CR2 - could you try with latest sources from svn? http://anonsvn.jboss.org/repos/portal/trunk
          2) MSAD is not officially supported at the moment, but I believe that base features should work.
          3) Could you look at the server output and provide more information and Exceptions that you find there?

          I hope we'll work it out.

          • 2. Re: Ldap authentication on Jboss portal 2.6 cr2
            Dave Chen Master

            I am trying to use LDAP for user identity. Which LDAP server is supported? Does JBOSS AS come with LDAP server? Thanks for advice.

            Dave

            • 3. Re: Ldap authentication on Jboss portal 2.6 cr2
              Boleslaw Dawidowicz Master

              At the moment JBoss Portal 2.6 is tested with Red Hat Directory Server, OpenDS and OpenLDAP. We aim to add Novel and MSAD to this set later.

              http://cruisecontrol.jboss.com/cc/artifacts/jboss-portal-latest-doc/referenceGuide//html/ldap.html#d0e7177

              There is no LDAP bundled with JBoss AS at the moment.

              • 4. Re: Ldap authentication on Jboss portal 2.6 cr2
                Georges MAHOP Newbie

                hi Boleslaw

                i found this exception in the server output :



                org.jboss.portal.identity.IdentityException: Cannot initiate identity modules:
                 at org.jboss.portal.identity.IdentityServiceControllerImpl.startService(IdentityServiceControllerImpl.java:387)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
                 at org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJBossService.java:73)
                 at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.execute(JBossServiceModelMBean.java:428)
                 at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.startService(JBossServiceModelMBean.java:394)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
                 at org.jboss.portal.jems.as.system.JBossServiceModelMBean$5.invoke(JBossServiceModelMBean.java:316)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
                 at $Proxy0.start(Unknown Source)
                 at org.jboss.system.ServiceController.start(ServiceController.java:417)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at org.jboss.system.ServiceController.start(ServiceController.java:435)
                 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.start(Unknown Source)
                 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy164.start(Unknown Source)
                 at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy8.deploy(Unknown Source)
                 at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                 at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                 at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                 at $Proxy0.start(Unknown Source)
                 at org.jboss.system.ServiceController.start(ServiceController.java:417)
                 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.start(Unknown Source)
                 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy5.deploy(Unknown Source)
                 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                 at org.jboss.Main.boot(Main.java:200)
                 at org.jboss.Main$1.run(Main.java:490)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: org.jboss.portal.identity.IdentityException: Class name not found for datasource type: pdc01 wrong configuration
                 at org.jboss.portal.identity.IdentityServiceControllerImpl.startService(IdentityServiceControllerImpl.java:251)
                 ... 119 more
                



                It seems i have made a mistake in the ldap cofiguration since there is a "class name not found". pdc01 is the name i used in the ldap_config.xml

                
                <identity-configuration>
                 <datasources>
                 <datasource>
                 <name>pdc01</name>
                 <config>
                 <option>
                 <name>host</name>
                 <value>192.168.10.240</value>
                 </option>
                 <option>
                 <name>port</name>
                 <value>389</value>
                 </option>
                 ...........
                


                What does the "name" tag correspond to?

                • 5. Re: Ldap authentication on Jboss portal 2.6 cr2
                  Boleslaw Dawidowicz Master

                  Please read:
                  http://cruisecontrol.jboss.com/cc/artifacts/jboss-portal-latest-doc/referenceGuide//html/identity.html#d0e5664
                  (and the rest of the chapter)

                  If you compare content of files 'standardidentity-config.xml' and 'ldap_identity-config.xml' you will find that the 'name' makes a link to provide some default config parameters, so you don't need to specify everything in your 'ldap_identity-config.xml'

                  In your case just leave

                  <name>LDAP</name>