Merged in ldap-changes (pull request #1)

move 'ou=' from being hardcoded to part of security.ldap.subDn
This commit is contained in:
Paulo Gustavo Veiga 2014-04-26 15:39:29 -03:00
commit 78cbf3e307
2 changed files with 3 additions and 3 deletions

View File

@ -128,9 +128,9 @@ security.ldap.server.password=password
security.ldap.basedn=dc=wisemapping,dc=com
# This will be concatenated as part of the DN. In this case, I will be ou="people".
# This will be concatenated as part of the DN. In this case, I will be "ou=people".
# In case this need to be changed, modify the wisemapping-security-ldap.xml.
security.ldap.subDn=people
security.ldap.subDn=ou=people
# Attribute used as authentication login (Eg: in this case, the user email will be used)
security.ldap.auth.attribute=mail

View File

@ -45,7 +45,7 @@
<bean id="ldapUserSearch"
class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
<constructor-arg index="0" value="ou=${security.ldap.subDn}"/>
<constructor-arg index="0" value="${security.ldap.subDn}"/>
<constructor-arg index="1" value="(${security.ldap.auth.attribute}={0})"/>
<constructor-arg index="2" ref="contextSource"/>
<property name="searchSubtree" value="true"/>