最近在研究cas+ldap实现单点登录,所以想来记录下自己的成果。
一、准备工作
1.下载cas-server-3.5.0-release.zip,解压,下载地址http://www.jasig.org/cas/download/
2.下载cas-client-3.2.1-release.zip,解压,下载地址http://www.jasig.org/cas/download/
3.下载tomcat6.0以上版本,解压
4.下载open-ldap,安装,下载地址 http://download.bergmans.us/openldap/openldap-2.2.29/openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe
二、配置
1.ldap配置
安装open-ldap后,需要修改文件sladp.config
在找到include ./schema/inetorgperson.schema 在它下面增加
include ./schema/corba.schema
include ./schema/dyngroup.schema
include ./schema/java.schema
include ./schema/misc.schema
include ./schema/nis.schema
include ./schema/openldap.schema
suffix "o=sql,c=RU"
rootdn "cn=root,o=sql,c=RU"
修改为你自己设置的,我的配置如下
</