You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Paul Hussein <pa...@jrc.it> on 2004/12/20 11:19:20 UTC

Help integrating slide into an existing tomcat JAAS

I am attempting to deploy jakarta slide into liferay, the tomcat 
version  (www.liferay.com) so that I can write WebDAV portlets, and have 
SSO with liferay to an authenticated webdav server.

I can get slide deployed ok into the liferay tomcat, and can add the 
custom JAAS profile installed alongside the liferay JAAS config and it 
works ok.

However, when I try to use the Liferay JAAS conf to authenticate the 
slide users i get problems, which are usually a load of exception from 
the catalina JAAS implementation.

The approach I am taking is to change conf/server.xml slide JAAS real 
that i added to conf/server.xml

    
 <Realm className="org.apache.catalina.realm.JAASRealm"
        appName="slide_login"         
userClassNames="org.apache.slide.jaas.spi.SlidePrincipal"         
roleClassNames="org.apache.slide.jaas.spi.SlideRole"         debug="99"
        useContextClassLoader="false"
 />
http://jakarta.apache.org/slide/howto-jaas.html

to        <Context path="/slide" debug="0" privileged="true" 
useNaming="true">
         <Realm className="org.apache.catalina.realm.JAASRealm"
           appName="slide_login"
           userClassNames="com.liferay.portal.jaas.PortalPrincipal"
           roleClassNames="com.liferay.portal.jaas.PortalRole"
           name="Slide DAV Server"
           useContextClassLoader="false" />
       </Context>


and my jaas.conf is
slide_login {
       com.liferay.portal.jaas.PortalLoginModule required;
namespace=slide;
};
PortalRealm {
       com.liferay.portal.jaas.PortalLoginModule required;
};
~



Can someone give me a hand as to how I need to configure slide to 
authenticated against the liferay JAAS ??? Or if I can do this at all
Cheers

Paul.




here is the script I use

#!/bin/csh -fex
setenv DOWNLOADS $cwd
setenv TARGET_DIR ~/liferay
rm -rf $TARGET_DIR
mkdir -p $TARGET_DIR
wget 
http://cvs.apache.org/dist/jakarta/slide/2.1rc1/bin/jakarta-slide-2.1rc1-tomcat-5.0.28.tar.gz 

wget 
http://puzzle.dl.sourceforge.net/sourceforge/lportal/liferay-portal-pro-3.1.0-tomcat.zip 

unzip liferay-portal-pro-3.1.0-tomcat.zip -d $TARGET_DIR
chmod a+x $TARGET_DIR/bin/*.sh

# add slide to liferay installation
tar xvzf jakarta-slide-2.1rc1-tomcat-5.0.28.tar.gz 
jakarta-slide-2.1rc1-tomcat-5.0.28/webapps/slide.war
tar xvzf jakarta-slide-2.1rc1-tomcat-5.0.28.tar.gz 
jakarta-slide-2.1rc1-tomcat-5.0.28/webapps/slide-doc.war
tar xvzf jakarta-slide-2.1rc1-tomcat-5.0.28.tar.gz 
jakarta-slide-2.1rc1-tomcat-5.0.28/conf/server.xml
tar xvzf jakarta-slide-2.1rc1-tomcat-5.0.28.tar.gz 
jakarta-slide-2.1rc1-tomcat-5.0.28/conf/jaas.conf
cp jakarta-slide-2.1rc1-tomcat-5.0.28/conf/server.xml 
$TARGET_DIR/conf/server.xml
cp jakarta-slide-2.1rc1-tomcat-5.0.28/webapps/slide*.war 
$TARGET_DIR/webapps
cat jakarta-slide-2.1rc1-tomcat-5.0.28/conf/jaas.conf >> 
$TARGET_DIR/conf/jaas.conf
rm -rf jakarta-slide-2.1rc1-tomcat-5.0.28

# http://jakarta.apache.org/slide/config_file.html#auto_create_users_elem
#change Domain.xml to have
#<auto-create-users>true</auto-create-users>





---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org