PloneCASLogin installation
This How-to applies to: 2.5.0
Introduction
This is not the quickest possible install but rather a step by step water proof install.
You should end with an empty plone site on which you can log-in using CAS
Requirements
This procedure is based on a linux/Unix environment but is easyly reproductible on win2kThis install was done with these versions and suppose you know the basics of zope installation and ZMI
- python-2.4.3 with SSL support (to allow https acces to cas server)
to check ssl support type - python
- import socket
- hasattr(socket, "ssl") => should be true
- zope-2.9.6
- plone-2.5.2-1
- cas4pas-1.0.0-1 + patch provided on this site
- plonecaslogin-2.5.0
The procedure was successfull with other mix of versions of zope and plone 2.5.x < 2.5.2
Install Plone on a fresh instance
After installing zope and creating an instance
- Stop Zope
- install the Plone products in the folder $ZOPE_INSTANCE/Products
you should end with something like :
/var/www/zope/yourinstance/Products/Archetypes
/var/www/zope/yourinstance/Products/...
/var/www/zope/yourinstance/Products/CMFPlone - Start zope and check the event log for missing python libraries
/var/www/zope/yourinstance/log/event.log - Check also the ZMI for Broken products in
/Control_Panel/Products/
Create a Plone site
Now from the ZMI add a "Plone site" from the root folderLet's call it yourplone, we'll use the default settings
Base Profile: Plone site
Now we should have a functional Plone site writable with your admin user.
Install CAS4PAS + patch
Now download the official cas4pas-1.0.0-1 product and the patch provided on this site
- stop Zope
- install cas4pas into
/var/www/zope/yourinstance/Products/CAS4PAS (case does matter, and remove version number from the folder name too) - apply the patch :
cd /var/www/zope/yourinstance/Products/CAS4PAS/
gunzip -c /tmp/CAS4PAS-1.0.0-cas2.patch.gz | patch -p1 - start Zope again
- Check like previously the eventlog and from ZMI the CAS4PAS Product
Install PloneCASLogin for Zope
download ploneCASLogin- stop Zope
- install PloneCASLogin into
/var/www/zope/yourinstance/Products/PloneCASLogin/ (case does matter, and remove version number from the folder name too) - start zope
- Do the same checks as previously from eventlog and ZMI
Install PloneCASLogin for Plone
Log-in as admin on your plone site (not on ZMI) which may be accessible fromhttp://your_server:8080/yourplone/
- go into site-configuration -> Add / suppress Products
- Install PloneCASLogin
- In case of problem, be sure to install the missing python libraries (and ssl python support) and restart Zope before retrying this step.
Configure your CAS URL's
Last but not least, you have to set up your CAS login/logout/service URL's- go to ZMI into
http://your_server/yourplonesite/acl_users/plonecaslogin/
Note: plonecaslogin has been created by PloneCASLogin Install - use the "propertiers" tab
- now fill with the correct URL's
If everything went well (usually it does ;-) ), you can now use CAS login