Person.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.primeton.poctag.service.ldap;
  2. import lombok.Getter;
  3. import lombok.Setter;
  4. import lombok.ToString;
  5. import org.springframework.ldap.odm.annotations.Attribute;
  6. import org.springframework.ldap.odm.annotations.DnAttribute;
  7. import org.springframework.ldap.odm.annotations.Entry;
  8. import org.springframework.ldap.odm.annotations.Id;
  9. import javax.naming.Name;
  10. /**
  11. * <pre>
  12. *
  13. * Created by zhenqin.
  14. * User: zhenqin
  15. * Date: 2021/9/14
  16. * Time: 17:24
  17. * Vendor: yiidata.com
  18. * To change this template use File | Settings | File Templates.
  19. *
  20. * </pre>
  21. *
  22. * @author zhenqin
  23. */
  24. @Setter
  25. @Getter
  26. @ToString
  27. @Entry(objectClasses = {"top", "person" ,"inetOrgPerson","organizationalPerson"})
  28. public class Person {
  29. @Id
  30. private Name dn;
  31. //必填
  32. @Attribute(name="cn")
  33. private String cn;
  34. @Attribute(name="sn")
  35. private String sn;
  36. @Attribute(name="uid")
  37. private String uid;
  38. //选填
  39. @Attribute(name="userPassword")
  40. private String password;
  41. @Attribute(name="givenName")
  42. String givenName;
  43. @Attribute(name="description")
  44. String description;
  45. }