项目作者: marcosbarbero

项目描述 :
Ldap autoconfiguration
高级语言: Java
项目地址: git://github.com/marcosbarbero/spring-security-starter-ldap.git
创建时间: 2016-07-28T15:57:24Z
项目社区:https://github.com/marcosbarbero/spring-security-starter-ldap

开源协议:Apache License 2.0

下载


Spring Security LDAP AutoConfiguration

Boot starter for LDAP AutoConfiguration

Usage

This project is available on maven central and can be used add the following dependency

  1. <dependency>
  2. <groupId>com.marcosbarbero.core</groupId>
  3. <artifactId>spring-security-starter-ldap</artifactId>
  4. <version>1.0.0.RELEASE</version>
  5. </dependency>

After that configure the following properties on application.yml(properties)

  1. # Ldap
  2. ldap:
  3. userDn: $userDn
  4. password: $password
  5. urls:
  6. - "ldap://$host:$port"
  7. dnPattern:
  8. - "uid={0},ou=people"
  9. - "cn={0},ou=people"
  10. user-search-base: $userSearchBase
  11. user-search-filter: $userSearchFilter
  12. group-search-base: $groupSearchBase
  13. group-search-filter: $groupSearchFilter
  14. role-prefix: $rolePrefix