Aruhi,

I am looking at the source for successful SAML responses in CAS 3.3.3 (
https://www.ja-sig.org/svn/cas3/tags/cas-3-3-3-final/cas-server-core/src/mai
n/java/org/jasig/cas/web/view/Saml10SuccessResponseView.java ) and don't see
anything any logging in the class whatsoever.

Please create a JIRA issue ( http://www.ja-sig.org/issues/browse/CAS ) and I
am sure it will be included in the next release.

Outside of waiting for the next release, it appears that the attributes are
associated with the Authentication object for the user.  Perhaps you can
create a custom Spring WebFlow action and introduce it after the
"bindAndValidate" or "submit" actions.  *shrug*

I would atleast do the JIRA route as Scott B. is great about logging
requests ;)

A-



On 7/9/09 3:00 PM, "aruhi" <[email protected]> wrote:

> Following is the extract from deployerConfigContext.xml :-
> 
> 
> 
> ...
>     <bean id="authenticationManager"
>         class="org.jasig.cas.authentication.AuthenticationManagerImpl">
> 
>         <property name="credentialsToPrincipalResolvers">
>             <list>
>                 <bean
>                  
> class="org.jasig.cas.authentication.principal.CredentialsToLDAPAttributePrinci
> palResolver">
>                     <!-- The Principal resolver form the credentials -->
>                     <property name="credentialsToPrincipalResolver">
>                         <bean
>                  
> class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPri
> ncipalResolver" />
>                     </property>
>                     <!-- The query made to find the Principal ID. "%u" will be
> replaced by the resolved Principal -->
>                     <property name="filter" value="(netID=%u)" />
> 
>                     <!-- The attribute used to define the new Principal ID -->
> 
>                     <property name="principalAttributeName" value="netID" />
> 
>                     <property name="searchBase"
>                         value="ou=people,dc=xxx,dc=edu" />
>                     <property name="contextSource" ref="contextSource" />
> 
>                     <property name="attributeRepository">
>                         <ref bean="attributeRepository" />
>                     </property>
>                 </bean>
>                                 <bean
>                  
> class="org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPri
> ncipalResolver" />
>             </list>
>         </property>
> 
>        
>         <property name="authenticationHandlers">
>             <list>
>                
>                 <bean
> class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredential
> sAuthenticationHandler"
>                     p:httpClient-ref="httpClient" />
>                
>                                 <bean
>                  
> class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler"
> scope="SearchControls.SUBTREE_SCOPE" lazy-init="true">
>                                         <property name="filter"
> value="(netID=%u)" />
>                                         <property name="searchBase"
> value="ou=people,dc=xxx,dc=edu" />
>                                         <property name="contextSource"
> ref="contextSource" />
>                                 </bean>
>             </list>
>         </property>
>     </bean>
> 
> 
>    
>         <bean id="userDetailsService"
> class="org.springframework.security.userdetails.jdbc.JdbcDaoImpl">
>                 <property name="dataSource"><ref
> bean="dataSource"/></property>
>         </bean>
>    
>    
>   <bean id="attributeRepository"
> class="org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao">
>     <property name="baseDN" value="ou=people,dc=xxx,dc=edu" />
>     <property name="query" value="(netID={0})" />
>     <property name="contextSource" ref="contextSource" />
>     <property name="ldapAttributesToPortalAttributes">
>       <map>
>         <entry key="netID" value="netID" />
>         <entry key="uin" value="uin" />
>         <entry key="uid" value="uid" />
>         <entry key="status" value="status" />
>       </map>
>     </property>
>   </bean>
>    
>         ...
> 
>         <bean id="contextSource"
> class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
>                 <property name="urls">
>                         <list>
>                                <value>ldaps://operator.xxx.edu/</value>
>                 </list>
>             </property>
>                         <property name="userName"
> value="cn=xxxxx,ou=dsa,dc=xxx,dc=edu" />
>                         <property name="password" value="xxxxxx" />
>             <property name="baseEnvironmentProperties">
>                 <map>
>                     <entry>
>                         <key>
>                             <value>java.naming.security.authentication</value>
>                         </key>
>                         <value>simple</value>
>                     </entry>
>                 </map>
>             </property>
>         </bean>
> ...
> 
> 
> 
> 
> 
> Few additional attributes are extracted as specified in bean
> 'attributeRepository'.
> 
> I need to log in the cas server logs, the values extracted for these
> additional attributes for each user successfully authenticated user.
> 
> How can I do that and in which class can such a log message be added ???
> 
> Please advice.
> 
> Thanks
> Aruhi

-- 
Andrew Feller, Analyst
LSU University Information Services
200 Frey Computing Services Center
Baton Rouge, LA 70803
Office: 225.578.3737
Fax: 225.578.6400



-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to