I'm using spring-security to authenticate simply , and apacheDS via a simple ldif file:
<!-- BEGIN LDIF CONFIGURATION -->
<security:ldap-server ldif="classpath:spring-security-on-LDIF.ldif" root="dc=foo,dc=com" />
<bean id="userDetailsContextMapper" class="com.foo.myapp.login.springsecurity.MyLdapUserDetailsMapper">
<constructor-arg ref="MyUserDetailsService" />
</bean>
<security:authentication-manager alias="authenticationManager" >
<security:ldap-authentication-provider user-search-base="ou=users" user-search-filter="uid={0}" user-context-mapper-ref="userDetailsContextMapper"/>
</security:authentication-manager>
<!-- END LDIF CONFIGURATION -->
That works fine. Now I want to add a NEW user to my .ldif file. Unfortunately, I need to restart tomcat to get it to reread the .ldif file. Is there a way to force apacheDS to reread/recache the ldif file at a certain point?