ldap 问题

frank:ehanmqi root# ldapadd -x -D "cn=Manager,o=tt,c=cn" -w secret -f test3.ldif

adding new entry "uid=sa,o=tt,c=cn"

ldap_add: Invalid syntax (21)

 

additional info: objectClass: value #0 invalid per syntax

 

有时候是因为缺少schema 文件

 

include./schema/cosine.schema
include./schema/nis.schema
include./schema/inetorgperson.schema
include./schema/openldap.schema
include./schema/dyngroup.schema
include ./schema/java.schema

加入slapd.conf 文件中即可

你可能感兴趣的:(ldap 问题)