Is there a way i can load a custom ldap schema when using org.springframework.ldap.test.TestContextSourceFactoryBean
? E.g. for unit tests?
views:
110answers:
1
+1
A:
Have you tried using an LDIF file via the setLdifFile method?
This is the way RedHat Directory Servers are configured so maybe you can load a custom schema that way.
Just a thought. Let me know if it works.
chb
2010-07-15 20:00:24
Hm... this looks just like what i was looking for. Sadly i'm not able to test it, because i'm working on something else right now.Looking at the code [1] tells me, that i should give you +15 for this answer =) [1] http://www.jarvana.com/jarvana/view/org/springframework/ldap/spring-ldap-test/1.3.0.RELEASE/spring-ldap-test-1.3.0.RELEASE-sources.jar!/org/springframework/ldap/test/TestContextSourceFactoryBean.java?format=ok
lajuette
2010-07-16 06:28:52