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

Unable to modify a registry #112

Open
jprivillaso opened this issue Nov 14, 2018 · 0 comments
Open

Unable to modify a registry #112

jprivillaso opened this issue Nov 14, 2018 · 0 comments

Comments

@jprivillaso
Copy link

jprivillaso commented Nov 14, 2018

I am trying to modify an item but it does nothing.
The only thing that I see it's different is that the dn of my user does not contain cn.
Instead, it looks like: uid=123,ou=People,dc=company,dc=org.

After authenticating, I'm using this piece of code:

this.client.modify('uid=123,ou=People,dc=company,dc=org', {
  op: 'add',
  attr: 'parent',
  vals: ['uid=38,ou=People,dc=ecorp,dc=org']
}, (searchError, data) => {
  if (searchError) {
    console.error('Error updating user');
    reject(searchError);
  }
  console.log('User updated successfully in LDAP');
  resolve(data);
});

After executing it, it does resolve the promise successfully, nonetheless it does not add the field that I specified

Do you have any idea of why it could be failing ?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant