使用LDAP来统一管理用户信息
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user