package org.agt.module.system.controller.admin.user.vo.user;

import lombok.Data;
import org.springframework.ldap.odm.annotations.Attribute;
import org.springframework.ldap.odm.annotations.Entry;
import org.springframework.ldap.odm.annotations.Id;

import javax.naming.Name;

@Data
@Entry(base = "ou=users", objectClasses = {"inetOrgPerson", "organizationalPerson", "person", "top"})
public class LdapUser {
    
    @Id
    private Name dn;
    
    @Attribute(name = "cn")
    private String username;
    
    @Attribute(name = "sn")
    private String surname;
    
    @Attribute(name = "userPassword")
    private String password;
    
    @Attribute(name = "mail")
    private String email;

    @Attribute(name = "gecos")
    private String gecos;
}