不合格的程序猿
分类: 网络与安全
2015-10-27 10:21:00
1.遇见的两个错误及其原因
ldap_add: Invalid syntax (21)
additional info: objectclass: value #0 invalid per syntax
原因:ldif文件中存在空格
ldap_add: Undefined attribute type (17)
additional info: dn: attribute type undefined
原因:should put an empty line in the ldif file between two entries
2.正确书写格式:
(1空行)
dn:(空格) dc=mail,dc=kaspersky,dc=com(结尾无空格)
objectclass: (空格)dcObject(结尾无空格)
objectclass: (空格)organization(结尾无空格)
o: (空格)kaspersky(结尾无空格)
dc:(空格) test(结尾无空格)
(1空行)
dn: (空格)cn=test,dc=mail,dc=kaspersky,dc=com(结尾无空格)
objectclass: (空格)organizationalRole(结尾无空格)
cn: (空格)test(结尾无空格)
(结尾无空行)