ldap 自定义属性

查看nis.schema,所有的属性都在里面定义,修改某个类如posixAccount,里面定了MUST和MAY,针对每个属性如MUST ( cn $ uid $ uidNumber $ gidNumber $ homeDirectory ),下面有对每个属性的attributeTypes的定义,下面为属性的类型。
EQUALITY caseExactIA5Match是类型的匹配,例如homeDirectory为id5 string类型,1.3.6.1.4.1.1466.115.121.1.26,定义单值的话要加上SINGLE-VALUE,默认为多值。chown  -Rf  ldap:ldap  、/etc/openldap/slapd.d/
  1. Syntax                           OBJECT IDENTIFIER  
  2. ==============================================================  
  3. Attribute Type Description       1.3.6.1.4.1.1466.115.121.1.3  
  4. Bit String                       1.3.6.1.4.1.1466.115.121.1.6  
  5. Boolean                          1.3.6.1.4.1.1466.115.121.1.7  
  6. Country String                   1.3.6.1.4.1.1466.115.121.1.11  
  7. Delivery Method                  1.3.6.1.4.1.1466.115.121.1.14  
  8. Directory String                 1.3.6.1.4.1.1466.115.121.1.15  
  9. DIT Content Rule Description     1.3.6.1.4.1.1466.115.121.1.16  
  10. DIT Structure Rule Description   1.3.6.1.4.1.1466.115.121.1.17  
  11. DN                               1.3.6.1.4.1.1466.115.121.1.12  
  12. Enhanced Guide                   1.3.6.1.4.1.1466.115.121.1.21  
  13. Facsimile Telephone Number       1.3.6.1.4.1.1466.115.121.1.22  
  14. Fax                              1.3.6.1.4.1.1466.115.121.1.23  
  15. Generalized Time                 1.3.6.1.4.1.1466.115.121.1.24  
  16. Guide                            1.3.6.1.4.1.1466.115.121.1.25  
  17. IA5 String                       1.3.6.1.4.1.1466.115.121.1.26  
  18. Integer                          1.3.6.1.4.1.1466.115.121.1.27  
  19. JPEG                             1.3.6.1.4.1.1466.115.121.1.28  
  20. LDAP Syntax Description          1.3.6.1.4.1.1466.115.121.1.54  
  21. Matching Rule Description        1.3.6.1.4.1.1466.115.121.1.30  
  22. Matching Rule Use Description    1.3.6.1.4.1.1466.115.121.1.31  
  23. Name And Optional UID            1.3.6.1.4.1.1466.115.121.1.34  
  24. Name Form Description            1.3.6.1.4.1.1466.115.121.1.35  
  25. Numeric String                   1.3.6.1.4.1.1466.115.121.1.36  
  26. Object Class Description         1.3.6.1.4.1.1466.115.121.1.37  
  27. Octet String                     1.3.6.1.4.1.1466.115.121.1.40  
  28. OID                              1.3.6.1.4.1.1466.115.121.1.38  
  29. Other Mailbox                    1.3.6.1.4.1.1466.115.121.1.39  
  30. Postal Address                   1.3.6.1.4.1.1466.115.121.1.41  
  31. Printable String                 1.3.6.1.4.1.1466.115.121.1.44  
  32. Substring Assertion              1.3.6.1.4.1.1466.115.121.1.58  
  33. Telephone Number                 1.3.6.1.4.1.1466.115.121.1.50  
  34. Teletex Terminal Identifier      1.3.6.1.4.1.1466.115.121.1.51  
  35. Telex Number                     1.3.6.1.4.1.1466.115.121.1.52  
  36. UTC Time                         1.3.6.1.4.1.1466.115.121.1.53 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值