forked from spring-projects/spring-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added config interceptor for in-memory server
Closes spring-projects#938 Signed-off-by: Emanuel Trandafir <[email protected]>
- Loading branch information
1 parent
cc1a15f
commit 0760e19
Showing
7 changed files
with
179 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...support/src/test/resources/applicationContext-testContextSource-withCustomInterceptor.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
<bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate"> | ||
<property name="contextSource" ref="contextSource" /> | ||
</bean> | ||
|
||
<bean id="updateCodeLogDetails" class="org.springframework.ldap.test.unboundid.TestContextSourceFactoryBeanTests.UpdateCodeLogDetails"> | ||
</bean> | ||
|
||
<bean id="contextSource" class="org.springframework.ldap.test.unboundid.TestContextSourceFactoryBean"> | ||
<property name="defaultPartitionSuffix" value="dc=jayway,dc=se" /> | ||
<property name="defaultPartitionName" value="jayway" /> | ||
<property name="principal" value="uid=admin,ou=system" /> | ||
<property name="password" value="secret" /> | ||
<property name="ldifFile" value="setup_data.ldif" /> | ||
<property name="port" value="18881" /> | ||
<property name="configInterceptor" ref="updateCodeLogDetails" /> | ||
</bean> | ||
|
||
</beans> |