无法将对象添加到LDAP服务器

时间:2014-07-25 13:34:10

标签: php ldap openldap phpldapadmin

我正在使用LDAP服务器而且我试图在Organsation级别创建一个对象。

但是当我尝试创建一个填充所有属性的对象时,它会抛出以下错误。

Could not add the object to the LDAP server.
LDAP said:  Object class violation
Error number:   0x41 (LDAP_OBJECT_CLASS_VIOLATION)
Description:    You tried to perform an operation that would cause an undefined attribute   
                to exist or that would remove a required attribute, given the current list   
                of ObjectClasses. This can also occur if you do not specify a structural   
                objectClass when creating an entry, or if you specify more than one structural objectClass.

有没有办法从某些日志文件中获取有关此错误的更多信息?

以前有人遇到此错误吗?如果是,请分享此问题的解决方案。

1 个答案:

答案 0 :(得分:0)

您尝试添加一个缺少必需属性的对象,该对象来自objectClass中定义的一个。检查您正在使用的对象类中的所有必需属性。

Error:  LDAP_OBJECT_CLASS_VIOLATION
Number: 65 (0x41)
Cause:  An object class violation occurred when using the current schema, for example, a "must" attribute was missing when adding an entry.