Here are the guides I followed

1) Setup a new server: http://www.ja-sig.org/wiki/display/CASUM/Demo
2) Configure LDAP: http://www.ja-sig.org/wiki/display/CASUM/LDAP

This is the relevant part of my config (deployerConfigContext.xml)
        ...
        <property name="authenticationHandlers">
            <list>
                <bean 
class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
                    p:httpClient-ref="httpClient" />
                    
                <bean 
class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
                    <property name="filter" value="uid=%u" />
                    <property name="searchBase" 
value="cn=Users,dc=my-company,dc=com" />
                    <property name="contextSource" ref="contextSource" />
                </bean>                
            </list>
        </property>
        ...

    <!-- LDAP config -->
    <bean id="contextSource" 
class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
        <property name="pooled" value="true"/>
        <property name="urls">
            <list>
                <value>ldap://myserver:1234/</value>
            </list>
        </property>
        <property name="userName" 
value="cn=admin_username,cn=Users,dc=my-company,dc=com"/>
        <property name="password" value="password1"/>
        <property name="baseEnvironmentProperties">
            <map>
                <entry>
                    <key>
                        <value>java.naming.security.authentication</value>
                    </key>
                    <value>simple</value>
                </entry>
            </map>
        </property>
    </bean>

Regards 

Richard 


> Date: Tue, 29 Apr 2008 10:43:58 -0500
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: [cas-dev] CAS3.0.7 + LDAP configuration -- urgent help request!!
> 
> Hi Scott and others
> 
> I have two questions
> 
> 1. Do you have a website to show me how to install and configure the CAS 
> 3.2.1?
> 2. To set up LDAP, I want to know if it's required to have LDAP 
> administrator username and password in the xml file?
> 
> Edward
> 
> Scott Battaglia wrote:
> > Edward,
> >
> > That's an extremely old version of CAS you're using. I would recommend 
> > upgrading to CAS 3.2.1, which would have those pom.xml files that 
> > you're asking about (they are a Maven2 thing).
> >
> > -Scott
> >
> > On Mon, Apr 28, 2008 at 11:59 AM, Edward Chen <[EMAIL PROTECTED] 
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     first, I have my CAS 3.0.7 up and running for mysql server.
> >
> >     I am using CAS 3.0.7. <http://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. <http://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
> >
> >     _______________________________________________
> >     cas-dev mailing list
> >     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> >     http://tp.its.yale.edu/mailman/listinfo/cas-dev
> >
> >
> >
> >
> > -- 
> > -Scott Battaglia
> > PGP Public Key Id: 0x383733AA
> > LinkedIn: http://www.linkedin.com/in/scottbattaglia
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected]
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >   
> 
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas

_________________________________________________________________
Bag extra points with the Walkers Brit Trip Game 
http://www.walkersbrittrips.co.uk/game
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to