mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 09:12:14 +00:00
Improve LDAP snippet formatting
Issue: gh-6486
This commit is contained in:
parent
8e6bcc1c35
commit
c4b17475d9
@ -221,8 +221,7 @@ A typical configuration, using some of the beans we've discussed here, might loo
|
||||
</bean>
|
||||
</constructor-arg>
|
||||
<constructor-arg>
|
||||
<bean
|
||||
class="org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator">
|
||||
<bean class="org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator">
|
||||
<constructor-arg ref="contextSource"/>
|
||||
<constructor-arg value="ou=groups"/>
|
||||
<property name="groupRoleAttribute" value="ou"/>
|
||||
@ -302,7 +301,6 @@ class="org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAu
|
||||
<constructor-arg value="mydomain.com" />
|
||||
<constructor-arg value="ldap://adserver.mydomain.com/" />
|
||||
</bean>
|
||||
}
|
||||
----
|
||||
|
||||
Note that there is no need to specify a separate `ContextSource` in order to define the server location - the bean is completely self-contained.
|
||||
|
Loading…
x
Reference in New Issue
Block a user