GithubHelp home page GithubHelp logo

Comments (6)

jsumners avatar jsumners commented on July 21, 2024 1

Also, make sure that the path of the entry is to the new entity and not the parent OU.

const ou= 'OU=Users, OU=earth, DC=adname, DC=orgname, DC=org'

^ is the path to the parent OU, not the entry being added.

See

tap.test('add success with object', function (t) {
const entry = {
cn: ['unit', 'add'],
sn: 'test'
}
t.context.client.add('cn=add, ' + SUFFIX, entry, function (err, res) {
t.error(err)
t.ok(res)
t.equal(res.status, 0)
t.end()
})
})

from node-ldapjs.

jsumners avatar jsumners commented on July 21, 2024 1

Thank you. Your contribution means a lot to me right now ❤️

from node-ldapjs.

jsumners avatar jsumners commented on July 21, 2024

The error comes from the server, so it's not an issue with this library. I would suggest investigating the permissions of the user your using to perform the ADD operation. It is possible that the error message is misleading and that the actual error is a permissions error.

Also, make sure that the path of the entry is to the new entity and not the parent OU.

from node-ldapjs.

afontalv avatar afontalv commented on July 21, 2024

Hello @jsumners, thank you for your quick response!

Just checked the permissions of the user I'm using to perform the ADD operation. The user has administrator permission:
image

For troubleshooting purposes, I tried adding a new user directly by remote connecting to the AD server, and was able to add the user object without issues.

Are there any other recommendations as to what could be the caused?

Thank you for your assistance :)

from node-ldapjs.

afontalv avatar afontalv commented on July 21, 2024

@jsumners AHHHH! You just brought so much happiness to this person!!!! It worked! Ah!!!! I am so happy! It's times like this I love developing software! It's always small details like this that get you!

Thank you, thank you, thank YOU!!!! I am very grateful for your existence, for being so helpful, and for taking the time to read through this problem I was facing and providing a solution that was able to resolve the issue!

Thank you friend! If you are ever passing through Atlanta, let me know and I would love to get you a beer or two

from node-ldapjs.

jsumners avatar jsumners commented on July 21, 2024

Technically, I live in the metro area. But I'd be much more comfortable with a contribution https://github.com/sponsors/jsumners

from node-ldapjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.