使用LDAP来统一管理用户信息

This commit is contained in:
zhaiyongchao
2018-01-27 14:55:30 +08:00
parent effa9b6693
commit f356489f3b
9 changed files with 176 additions and 0 deletions
@@ -0,0 +1,22 @@
package com.didispace;
import lombok.Data;
import org.springframework.ldap.odm.annotations.*;
import javax.naming.Name;
@Entry(base = "ou=people,dc=didispace,dc=com", objectClasses = "inetOrgPerson")
@Data
public class Person {
@Id
private Name id;
@DnAttribute(value = "uid", index = 3)
private String uid;
@Attribute(name = "cn")
private String commonName;
@Attribute(name = "sn")
private String suerName;
private String userPassword;
}