Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Example: pentahoadmin@mycompany.com

Code Block
none
none
titleapplicationContext-security-ldap.propertiesnone
# backslash before colon to escape it
contextSource.providerUrl=ldap\://mycompany\:389
contextSource.userDn=pentahoadmin@mycompany.com
contextSource.password=secret

...

Example: MYCOMPANY\pentahoadmin

Code Block
none
none
titleapplicationContext-security-ldap.propertiesnone
# backslash before colon to escape it
contextSource.providerUrl=ldap\://mycompany\:389
# backslash before backslash to escape it
contextSource.userDn=MYCOMPANY\\pentahoadmin
contextSource.password=secret

...

The sAMAccountName attribute should be used as the username in user searches. The searchSubtree property (which influences the SearchControls) should most likely be true. Otherwise, it searches the specified base plus one level down.

Code Block
none
none
titleapplicationContext-security-ldap.propertiesnone
# backslash before opening and closing braces to escape them
userSearch.searchFilter=(sAMAccountName=\{0\})
Code Block
xml
xml
titleapplicationContext-spring-security-ldap.xmlxml
<bean id="userSearch" class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
<constructor-arg index="0" value="${userSearch.searchBase}" />
<constructor-arg index="1" value="${userSearch.searchFilter}" />
<constructor-arg index="2">
<ref local="contextSource" />
</constructor-arg>
  <property name="searchSubtree" value="true" />
</bean>

...