I´m trying to configure my Spring Security and i need to know how can i set next configuration without XML and without LDIF:
<sec:authentication-manager alias="authenticationManager" >
<sec:ldap-authentication-provider
user-search-filter="(uid={0})"
user-search-base="ou=users"
group-search-filter="(member={0})"
group-search-base="ou=groups"
group-role-attribute="cn"
role-prefix="ROLE_"
user-context-mapper-ref="userContextMapperRef">
</sec:ldap-authentication-provider>
<sec:authentication-provider user-service-ref="userServiceTest">
<sec:password-encoder ref="passwordEncoder">
<sec:salt-source ref="testeSaltSource"/>
</sec:password-encoder>
</sec:authentication-provider>
</sec:authentication-manager>
<sec:ldap-server url="ldap://localhost:10389/dc=example,dc=com" manager-dn="uid=admin,ou=system" manager-password="secret"/>
Aucun commentaire:
Enregistrer un commentaire