mcavage/node-ldapjs — Issue #57: ObjectclassViolationError
Author: skanna
Created: 2012-02-02 15:13:59+00:00
State: open

Hi,
great library, but seems that adding an element like :

var entry = {
objectClass: 'posixAccount',
objectClass: 'top',
objectClass: 'inetOrgPerson',
objectClass: 'mailUser',
objectClass: 'shadowAccount',
objectClass: 'sambaSamAccount',
...
};

ldapClient.add('uid=myuser,ou=Users,ou=example.comt,dc=support', entry, function(error) { ...

produces an "ObjectclassViolationError: no structural object class provided". Adding the same element with ldapadd works, and adding a "simple user" (without samba, mail and shadow support) works perfectly using the library. I'm using Openldap server v. 2.4.23. Does the library support extra schemas?

thanks in advance.