I'm a first time LDAP-Template user. Love it.

Question: once my end user logs in, how do I go about changing the context source to use their credentials?

So, for example, right now my ldaptemplate spring configuration looks like this (the ${} values are in an external properties file):

Code:
<bean id="contextSource" class="net.sf.ldaptemplate.support.LdapContextSource">
<property name="url" value="${ldap.url}" />
<property name="userName" value="${ldap.userDn}" />
<property name="base" value="${ldap.base}" />
<property name="password" value="${ldap.password}" />
<property name="authenticatedReadOnly" value="true" />
</bean>
<bean id="ldapTemplate" class="net.sf.ldaptemplate.LdapTemplate">
<constructor-arg ref="contextSource" />
</bean>
Once a user authenticates via Acegi, I'd like to take their credentials and plug them into the userName and password sections of the context source instead of using the generic manager dn and pw. Do I just have to reconfigure the context source and re-inject it into the ldap template?

Any advice? Is this possible? Is this advisable? Thanks!