On Wed, Apr 15, 2009 at 2:54 PM, Johan Reinalda < [email protected]> wrote:
> Looks like "userName" is now called "userDn" on that class. > That fixed it, thanks. > > I will update the relevant pages in the wiki. > I just replied with the same thing about userDn :-) Thanks! -Scott > > Johan > > > ----- Original Message ----- > *From:* Johan Reinalda <[email protected]> > *To:* [email protected] > *Sent:* Wednesday, April 15, 2009 11:50 AM > *Subject:* Re: [cas-user] AuthenticatedLdapContextSource.class in CAS3.3.2 > > That now works for the binding, but I get the following error in the > section mapping MS-AD attributes. > Haven't checked yet to see how that new spring bean needs the parameters. > Suggestions ? > > Johan > > > Error creating bean with name 'contextSourceLdapAttrib > utes' defined in ServletContext resource > [/WEB-INF/deployerConfigContext.xml]: Error setting property values; nested > exc > eption is org.springframework.beans.NotWritablePropertyException: Invalid > property 'userName' of bean class [org.springf > ramework.ldap.core.support.LdapContextSource]: Bean property 'userName' is > not writable or has an invalid setter method. > Does the parameter type of the setter match the return type of the getter? > This used to have the AuthenticatedLdapContextSource as well, but now the > config looks like: > > <!-- context source for LDAP attribute resolution, used by > CredentialsToPrincicalResolver --> > <bean id="contextSourceLdapAttributes" > class="org.springframework.ldap.core.support.LdapContextSource"> > <property name="urls"> > <list> > <value>ldap://...</value> > </list> > </property> > > <property name="userName" value="cn=cas,ou=...,dc=edu" /> > > <property name="password" value="***" /> > > <property name="baseEnvironmentProperties"> > <map> > <entry> > <key> > > <value>java.naming.security.authentication</value> > </key> > <value>simple</value> > </entry> > > <!-- > Set the LDAP connect and read timeout(in > ms) for the java ldap class > See > http://java.sun.com/products/jndi/tutorial/ldap/connect/create.html > --> > <entry> > <key> > > <value>com.sun.jndi.ldap.connect.timeout</value> > </key> > <value>2000</value> > </entry> > <entry> > <key> > > <value>com.sun.jndi.ldap.read.timeout</value> > </key> > <value>2000</value> > </entry> > </map> > </property> > </bean> > > > > > > ----- Original Message ----- > *From:* Scott Battaglia <[email protected]> > *To:* [email protected] > *Sent:* Wednesday, April 15, 2009 11:31 AM > *Subject:* Re: [cas-user] AuthenticatedLdapContextSource.class in CAS3.3.2 > > As discussed on list (but probably on dev and not users ;-)), we upgraded > to Spring LDAP 1.3 which allowed us to eliminate our custom class (as they > implemented the method we needed). So you should just be able to replace > the class definition in your deployerConfigContext.xml with > LdapContextSource. > > Let me know if you have any problems. > -Scott > > -Scott Battaglia > PGP Public Key Id: 0x383733AA > LinkedIn: http://www.linkedin.com/in/scottbattaglia > > > On Wed, Apr 15, 2009 at 2:28 PM, Johan Reinalda < > [email protected]> wrote: > >> Just tried to rebuild my local overlay against downloaded sources for >> CAS3.3.2, and find that the class >> AuthenticatedLdapContextSource no longer exists in >> cas-server-support-ldap/target/classes/org/jasig/cas/adaptors/ldap/util/ >> >> This breaks my deployconfig.xml for our MS-AD fastbind. >> Not having seen a change log yet, what am I missing ? >> >> Johan >> >> >> >> >> -- >> 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 >> > > -- > 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 > > > -- > 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 > > -- 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
