Improve LDAP snippet formatting

Issue: gh-6486
This commit is contained in:
Josh Cummings 2019-01-28 14:25:27 -07:00
parent 8e6bcc1c35
commit c4b17475d9
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443

View File

@ -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.