- 论坛徽章:
- 0
|
在没有userCerificate;bin:这一条时可以添加,加了这一条就会报下面的错误
/usr/local/openldap/bin/ldapadd -x -D "cn=root,o=test,c=com" -w 12345 -f test.ldif
adding new entry "cn=AAA,o=test,c=com"
ldap_add: Invalid syntax (21)
additional info: userCertificate;binary: value #0 invalid per syntax
-----------------------------------------------------------------
test.ldif
dn: cn=AAA,o=test,c=com
sn: AAA
mail: AAA@test.com
userCertificate;binary:< file:///keypath/AAA.cer
我include了
include /usr/local/openldap/etc/openldap/schema/core.schema
include /usr/local/openldap/etc/openldap/schema/corba.schema
include /usr/local/openldap/etc/openldap/schema/cosine.schema
include /usr/local/openldap/etc/openldap/schema/inetorgperson.schema
include /usr/local/openldap/etc/openldap/schema/misc.schema
include /usr/local/openldap/etc/openldap/schema/openldap.schema
include /usr/local/openldap/etc/openldap/schema/nis.schema |
|