LDAP-18: Deprecated the userName property in AbstractContextSource and changed it to the more correct userDn.

This commit is contained in:
Ulrik Sandberg
2007-01-07 17:18:46 +00:00
parent 4b6308a3f0
commit b7ef013840
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
simple
</prop>
<prop key="java.naming.security.principal">
${userName}
${userDn}
</prop>
<prop key="java.naming.security.credentials">
${password}

View File

@@ -15,7 +15,7 @@
<bean id="contextSource" class="org.springframework.ldap.support.LdapContextSource" >
<property name="urls" value="${urls}" />
<property name="base" value="${base}" />
<property name="userName" value="${userName}" />
<property name="userDn" value="${userDn}" />
<property name="password" value="${password}" />
<property name="dirObjectFactory" value="org.springframework.ldap.support.DefaultDirObjectFactory" />
</bean>

View File

@@ -1,4 +1,4 @@
urls=ldap://127.0.0.1
userName=uid=admin,ou=system
userDn=uid=admin,ou=system
password=secret
base=dc=jayway,dc=se