Jahia DX > jahia 6.5 SSO with...

1 (1 Good)
0 (0 Bad)

jahia 6.5 SSO with Kerberos

by  lutfu »  2011/07/28 11:38

I found a document about SSO with Kerberos for Jahia 6.0 in Jahia website

I tried to implement the steps in this document for Jahia 6.5

In this document there is a step like below

Then you also need to edit the WEB-INF\etc\spring\applicationcontext-pipelines.xml file and add the SpnegoAuthValveImpl as the first entry in the authPipeline, like this:

    <bean id="authPipeline" class="org.jahia.pipelines.impl.GenericPipeline">
        <property name="name" value="authPipeline" />
        <property name="valves">
            <list>
                <bean class="org.jahia.params.valves.SpnegoAuthValveImpl" />
                <bean class="org.jahia.params.valves.TokenAuthValveImpl" />
                ...

But in Jahia 6.5 there is not any file like

WEB-INF\etc\spring\applicationcontext-pipelines.xml

I found the configurations above in C:\Jahia_xCM_v6.5.0.0\tomcat\webapps\ROOT\WEB-INF\etc\spring\auth\applicationcontext-auth-pipeline file

I edited the WEB-INF\etc\spring\applicationcontext-pipelines.xml file and add the SpnegoAuthValveImpl as the first entry in the authPipeline, like this:

    <bean id="authPipeline" class="org.jahia.pipelines.impl.GenericPipeline">
        <property name="name" value="authPipeline" />
        <property name="valves">
            <list>
                <bean class="org.jahia.params.valves.SpnegoAuthValveImpl" />
                <bean class="org.jahia.params.valves.TokenAuthValveImpl" />
                ...

But when I started Jahia 6.5 it gives an error like below:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authPipeline' defined in ServletContext resource [/WEB-INF/etc/spring/auth/applicationcontext-auth-pipeline.xml]: Cannot create inner bean 'org.jahia.params.valves.SpnegoAuthValveImpl#1d46ee9c' of type [org.jahia.params.valves.SpnegoAuthValveImpl] while setting bean property 'valves' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.jahia.params.valves.SpnegoAuthValveImpl] for bean with name 'org.jahia.params.valves.SpnegoAuthValveImpl#1d46ee9c' defined in ServletContext resource [/WEB-INF/etc/spring/auth/applicationcontext-auth-pipeline.xml]; nested exception is java.lang.ClassNotFoundException: org.jahia.params.valves.SpnegoAuthValveImpl

What is the reason of this error.

Why it gives an error like above

Is there anybody knows the reason of error above

Thanks in advance

 

  • jahia 6.5 SSO with Kerberos
    2011/07/30 11:36

    lutfu <p> I found a document about SSO with Kerberos for Jahia 6.0 in Jahia website</p> <p> I tried to implement the steps in this document for Jahia 6.5</p> <p> In this document there is a step like below</p> <p> <em><strong>Then you also need to edit the WEB-INF\etc\spring\applicationcontext-pipelines.xml file and add the SpnegoAuthValveImpl as the first entry in the authPipeline, like this:</strong></em></p> <p> <em><strong><code>&nbsp;&nbsp;&nbsp; &lt;bean id=&quot;authPipeline&quot; class=&quot;org.jahia.pipelines.impl.GenericPipeline&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;name&quot; value=&quot;authPipeline&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;valves&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;list&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bean class=&quot;org.jahia.params.valves.SpnegoAuthValveImpl&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bean class=&quot;org.jahia.params.valves.TokenAuthValveImpl&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</code></strong></em></p> <p> But in Jahia 6.5 there is not any file like</p> <p> <em><strong>WEB-INF\etc\spring\applicationcontext-pipelines.xml </strong></em></p> <p> I found the configurations above in C:\Jahia_xCM_v6.5.0.0\tomcat\webapps\ROOT\WEB-INF\etc\spring\auth\applicationcontext-auth-pipeline file</p> <p> <em><strong>I edited the </strong></em><em><strong>WEB-INF\etc\spring\applicationcontext-pipelines.xml </strong></em><em><strong>file and add the SpnegoAuthValveImpl as the first entry in the authPipeline, like this:</strong></em></p> <p> <em><strong><code>&nbsp;&nbsp;&nbsp; &lt;bean id=&quot;authPipeline&quot; class=&quot;org.jahia.pipelines.impl.GenericPipeline&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;name&quot; value=&quot;authPipeline&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;valves&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;list&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bean class=&quot;org.jahia.params.valves.SpnegoAuthValveImpl&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bean class=&quot;org.jahia.params.valves.TokenAuthValveImpl&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</code></strong></em></p> <p> But when I started Jahia 6.5 it gives an error like below:</p> <p> org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;authPipeline&#39; defined in ServletContext resource [/WEB-INF/etc/spring/auth/applicationcontext-auth-pipeline.xml]: Cannot create inner bean &#39;org.jahia.params.valves.SpnegoAuthValveImpl#1d46ee9c&#39; of type [org.jahia.params.valves.SpnegoAuthValveImpl] while setting bean property &#39;valves&#39; with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.jahia.params.valves.SpnegoAuthValveImpl] for bean with name &#39;org.jahia.params.valves.SpnegoAuthValveImpl#1d46ee9c&#39; defined in ServletContext resource [/WEB-INF/etc/spring/auth/applicationcontext-auth-pipeline.xml]; nested exception is java.lang.ClassNotFoundException: org.jahia.params.valves.SpnegoAuthValveImpl</p> <p> What is the reason of this error.</p> <p> Why it gives an error like above</p> <p> Is there anybody knows the reason of error above</p> <p> Thanks in advance</p> <p> &nbsp;</p>

  • Number of messages  4
    Registration date Jul 28, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: jahia 6.5 SSO with Kerberos

    by  shyrkov »  2011/08/09 18:39

    Hello,

     

    this part was restructured a bit in Jahia 6.5 to simplify the configuration.

    You can get the SSO with Kerberos workgin with Jahia 6.5 by:

    1) Obtaining the Jahia 6.5 Enterprise offering build (from "Customers Extranet" section)

    2) After an installation you will see that in the WEB-INF\etc\config\jahia.advanced.properties file you can enable SPNEGO filter by setting "auth.spnego.enabled" to "true"

    That enables the SpnegoAuthValveImpl (see WEB-INF\etc\spring\auth\applicationcontext-auth-pipeline.xml)

     

    Kind regards

    Sergiy

  • Re: jahia 6.5 SSO with Kerberos
    2011/08/09 18:39

    shyrkov <p> Hello,</p> <p> &nbsp;</p> <p> this part was restructured a bit in Jahia 6.5 to simplify the configuration.</p> <p> You can get the SSO with Kerberos workgin with Jahia 6.5 by:</p> <p> 1) Obtaining the Jahia 6.5 Enterprise offering build (from &quot;<a href="https://www.jahia.com/cms/home/customers-extranet.html">Customers Extranet</a>&quot; section)</p> <p> 2) After an installation you will see that in the WEB-INF\etc\config\jahia.advanced.properties file you can enable SPNEGO filter by setting &quot;auth.spnego.enabled&quot; to &quot;true&quot;</p> <p> That enables the SpnegoAuthValveImpl (see WEB-INF\etc\spring\auth\applicationcontext-auth-pipeline.xml)</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Aug 9, 2011
    0 (0 Good)
    0 (0 Bad)

    jahia 6.5 SSO with Kerberos

    by  lutfu »  2011/08/11 09:16

    Hello Sergiy

    Thank you for your answer.

    But when I login from "Customers Extranet" section and click above download I can only get Jahia community edition how can I get Jahia enterprise edition?

    Can you express me how to get Jahia Enterprise edition

    I can't see jahia.advanced.properties file

    Thanks in advance.

  • jahia 6.5 SSO with Kerberos
    2011/08/11 09:16

    lutfu <p> Hello Sergiy</p> <p> Thank you for your answer.</p> <p> But when I login from &quot;Customers Extranet&quot; section and click above download I can only get Jahia community edition how can I get Jahia enterprise edition?</p> <p> Can you express me how to get Jahia Enterprise edition</p> <p> I can&#39;t see jahia.advanced.properties file</p> <p> Thanks in advance.</p>

  • Number of messages  4
    Registration date Aug 11, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: jahia 6.5 SSO with Kerberos

    by  faissah »  2011/08/12 20:26

    Hello,
     

    If you have subrscribed to an Enterprise Jahia Annual Subscription, the proper way to download the Advanced Stack is the following:

    - Click on the top "Download" button

    - Click on "Entreprise Jahia Download"

    - Select Version 6.5 and pick one of the install (Linux or Windows)

    Regards,

    Fabrice

    Fabrice  (faissah)

    Number of messages  264
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page