CAS3.0.7 + LDAP configuration -- urgent help request!!
Richard Gundersen
richardgundersen at hotmail.com
Mon Apr 28 13:36:26 EDT 2008
Hi
I have been going through the same hell today so maybe I can try and answer a couple of your questions:
1. Can CAS 3.0.7 configure LDAP or I have to upgrade to the most recent version?
>> Probably. Try following this guide: http://www.ja-sig.org/wiki/display/CASUM/LDAP, it worked for me.
2. If I want to configure CAS 3.0.7 to LDAP, I don't find porn.xml in webapps.
>> It's called pom.xml (not porn) and I think it's in a subdirectory under /META-INF
3. where should I put the following code in deployerConfigContext.xml?
>> I think it's in Web.xml. If you follow that guide in (1) it explains what you need to change. There a quite a few options to change, but I found if I went through each one systematically, I eventually got the config right. It helps if you have some config from something else that connects to your LDAP server (some other app) that you can look at for the correct syntax (LDAP connection syntax can vary a bit depending on which LDAP server you are using. Also, have an LDAP browser handy so you can see your directory structure. That will also help.
4. I don't understand the following piece code from ldap
<property name="userName" value="{bind_username_goes_here}"/>
<property name="password" value="{bind_user_password_goes_here}"/>
>> put your LDAP administrator username and password in there. So, whereas with MySQL you have root/mypassword, put in the corresponding values for LDAP instead. I can't remember if I kept the {} braces - they may not be required if you put the literal username/password in. Try with and without.
If you know how to populate roles etc into the session principal (either with MySQL or LDAP) please let me know :)
Regards
Richard
> Date: Mon, 28 Apr 2008 10:59:43 -0500
> From: edwardc at wolfram.com
> To: cas at tp.its.yale.edu; cas-dev at tp.its.yale.edu
> Subject: CAS3.0.7 + LDAP configuration -- urgent help request!!
>
> first, I have my CAS 3.0.7 up and running for mysql server.
>
> I am using CAS 3.0.7. I plan to configure CAS 3.0.7 with LDAP. I have
> LDAP server.
> Now when I refer to page http://www.ja-sig.org/wiki/display/CASUM/LDAP
> to help me configure and I find something missing in my CAS 3.0.7. I
> have few questions
> 1. Can CAS 3.0.7 configure LDAP or I have to upgrade to the most recent
> version?
>
> 2. If I want to configure CAS 3.0.7 to LDAP, I don't find porn.xml in
> webapps. How do I add porn.xml portion into it? Can I just copy porn.xml
> file into my CAS 3.0.7's webapps folder? if not, where do I add the
> following piece
>
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>cas-server-support-ldap</artifactId>
> <version>${project.version}</version>
> </dependency>
>
>
>
> 3. where should I put the following code in deployerConfigCpntext.xml? I
> attached my deployerConfigCpntext.xml.for you to take a look if it's
> right I put that piece. Also, when I add the ldap part into
> deployerConfigCpntext.xml, do I need to comment out my mysql connection
> bean?
>
> 4. I don't understand the following piece code from ldap
>
> <property name="userName" value="{bind_username_goes_here}"/>
> <property name="password"
> value="{bind_user_password_goes_here}"/>
>
> Do I need to change anything above?
>
>
> Edward
_________________________________________________________________
100’s of prizes to be won at BigSnapSearch.com
http://www.bigsnapsearch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080428/39d21275/attachment.html
More information about the cas
mailing list