When I try to add user to Windows AD I receive error: NoSuchAttributeError: 00000057: LdapErr: DSID-0C090DA8, comment: Error in attribute conversion operation, data 0, v2580. Does anyone has example of userEntry atributes that required when adding to Active Directory? I am using following user entry:
var userEntry = {
cn: 'LastName12345',
sn: 'LastName12345',
email: ['[email protected]'],
objectclass: ['top','person','organizationalPerson','user'],
distinguishedName: 'cn=LastName12345,ou=Portal,dc=mydomain,dc=com',
userPrincipalName: '[email protected]',
sAMAccountName: 'LastName12345',
title: "Automation Tester",
description: 'user created at blahblahblah',
telephoneNumber: '123123',
givenName: 'dummy',
displayName: 'LastName12345',
info: 'user added',
company: 'testcmpny',
division: 'hostname',
userPassword: 'y4!e1NIQX1tc'
};
May be you can try to change attributes "email" to "mail", and the value of "mail" should be a string not a list. And keep the other attributes name just as same as the active directory user attributes name.
Great answer, forgot to reply back, but the answer of @lynndotconfig helped.
Most helpful comment
May be you can try to change attributes "email" to "mail", and the value of "mail" should be a string not a list. And keep the other attributes name just as same as the active directory user attributes name.