Simon, The following INFO message is fine: 2007-12-12 16:41:48,624 INFO [org.jasig.cas.web.flow.AuthenticationViaFormAction] - <FormObjectClass not set. Using default class of org.jasig.cas.authentication.principal.UsernamePasswordCredentials with formObjectName credentials and validator org.jasig.cas.validation.UsernamePasswordCredentialsValidator.>
What it means is that you're using the defaults for Credentials (the UsernamePasswordCredentials). -Scott On Dec 12, 2007 11:14 AM, Simon Vallet <[EMAIL PROTECTED]> wrote: > Hi, > > I'm currently trying to setup a CAS 3.1.1 server using LDAP > authentication -- here is the relevant portion of the > deployerConfigContext.xml : > > <bean id="contextSource" class=" > org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource"> > <property name="anonymousReadOnly" value="true" /> > <property name="pooled" value="true"/> > <property name="urls"> > <list> > <value>ldap://ldap1.genoscope.cns.fr/</value> > <value>ldap://ldap2.genoscope.cns.fr/</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> > > and, in the authenticationHandler property : > > <bean class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler > "> > <property name="filter" > value="uid=%u,ou=users,o=genoscope,dc=cns,dc=fr" /> > <property name="contextSource" ref="contextSource" /> > </bean> > > This is what I get in the logs: > > 2007-12-12 16:41:47,463 WARN [ > org.springframework.ldap.support.LdapContextSource] - <Property 'userName' > not set - anonymous context will be used for read-write operations> > > I'm a bit surprised about this one, since I explicitely configured an > anoymous context (or so I thought). > > And further down : > 2007-12-12 16:41:48,624 INFO [ > org.jasig.cas.web.flow.AuthenticationViaFormAction] - <FormObjectClass not > set. Using default class of > org.jasig.cas.authentication.principal.UsernamePasswordCredentials with > formObjectName credentials and validator > org.jasig.cas.validation.UsernamePasswordCredentialsValidator.> > > I don't get this one : why doesn't CAS use the configured > FastBindLdapAuthenticationHandler ? > > Any hint ? > > Simon > _______________________________________________ > Yale CAS mailing list > [email protected] > http://tp.its.yale.edu/mailman/listinfo/cas > -- -Scott Battaglia LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
