Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
YYAK opened this issue Apr 21, 2017 · 3 comments

Comments

@YYAK
Copy link

YYAK commented Apr 21, 2017

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: ['LastName12345@invalid.invalid'],
objectclass: ['top','person','organizationalPerson','user'],
distinguishedName: 'cn=LastName12345,ou=Portal,dc=mydomain,dc=com',
userPrincipalName: 'LastName12345@invalid.invalid',
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'
};

@lynndotconfig
Copy link

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.

@YYAK
Copy link
Author

YYAK commented Mar 22, 2018

Great answer, forgot to reply back, but the answer of @lynndotconfig helped.

@YYAK YYAK closed this as completed Mar 22, 2018
@jsumners
Copy link
Member

⚠️ This issue has been locked due to age. If you have encountered a recent
problem that seems to be covered by this issue, please open a new issue.

Please include a minimal reproducible example
when opening a new issue.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants