Richard Gundersen wrote:
> 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
I don't find pom.xml  under /META-INF but MANIFEST.MF from CAS 3.0.7. 
May I just copy pom.xml from CAS 3.2.1 to CAS 3.0.7's /META-INF instead? 
That will work too?

>
>
> 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.

What I mean where to put is AuthenticatedLdapContextSource

<bean id="contextSource" 
class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
        <property name="pooled" value="true"/>
        <property name="urls">
                <list>
                        <value>ldaps://ldap.rutgers.edu/</value>
                        <value>ldaps://ldap2.rutgers.edu/</value>
                </list>
        </property>
        <property name="userName" value="{bind_username_goes_here}"/>
        <property name="password" value="{bind_user_password_goes_here}"/>
        <property name="baseEnvironmentProperties">
                <map>
                        <entry>
                                <key>
                                        
<value>java.naming.security.authentication</value>
                                </key>
                                <value>simple</value>
                        </entry>
                </map>
        </property>
</bean>

Please take a look at my attachment if the AuthenticatedLdapContextSource  is 
in the right place in my deployerConfigContext.xml


>
>
> 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.

What I understand is
In my deployerConfigContext.xml, I can either use LDAP or other 
connection such as mysql. I cannot use both at the same time. So, I have 
comment out mysql connection if I use LDAP. Please take a look at my 
attachment. Correct me if I am wrong.
>
>
> If you know how to populate roles etc into the session principal 
> (either with MySQL or LDAP) please let me know :)
Also, where to put  the following

<bean class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
        <property name="filter" value="uid=%u" />
        <property name="searchBase" value="ou=people,dc=rutgers,dc=edu" />
        <property name="contextSource" ref="contextSource" />
</bean>

Please take a look at my attachment and see if I put in the right place?



I want to populate roles, please tell me how to do that?


Edward
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to