mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-11 01:33:24 +01:00
Merged in ldap-changes (pull request #1)
move 'ou=' from being hardcoded to part of security.ldap.subDn
This commit is contained in:
commit
9ca2f6bb1e
@ -128,9 +128,9 @@ security.ldap.server.password=password
|
|||||||
security.ldap.basedn=dc=wisemapping,dc=com
|
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.
|
# 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)
|
# Attribute used as authentication login (Eg: in this case, the user email will be used)
|
||||||
security.ldap.auth.attribute=mail
|
security.ldap.auth.attribute=mail
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
<bean id="ldapUserSearch"
|
<bean id="ldapUserSearch"
|
||||||
class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
|
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="1" value="(${security.ldap.auth.attribute}={0})"/>
|
||||||
<constructor-arg index="2" ref="contextSource"/>
|
<constructor-arg index="2" ref="contextSource"/>
|
||||||
<property name="searchSubtree" value="true"/>
|
<property name="searchSubtree" value="true"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user