Node-ldapjs: Add user to Windows AD Error: NoSuchAttributeError: 00000057: LdapErr: DSID-0C090DA8, comment: Error in attribute conversion operation, data 0, v2580.

Created on 21 Apr 2017  路  2Comments  路  Source: ldapjs/node-ldapjs

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'
};

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.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

djholly123 picture djholly123  路  3Comments

danez picture danez  路  8Comments

jvanalst picture jvanalst  路  6Comments

randomsock picture randomsock  路  7Comments

lmusat picture lmusat  路  5Comments