GithubHelp home page GithubHelp logo

Comments (12)

jsumners avatar jsumners commented on July 2, 2024

Is this a known issue, or am I missing something?

https://github.com/ldapjs/node-ldapjs/releases/tag/v3.0.4

from node-ldapjs.

audn avatar audn commented on July 2, 2024

Sorry I forgot to mention. I am on 3.0.4

from node-ldapjs.

audn avatar audn commented on July 2, 2024

The only way I've been able to fix this is by returning input instead of DN.fromString(input).

The DN.isDn() function seems to return false, even for the example DN used in the docs: cn=foo,dc=example,dc=com

from node-ldapjs.

jsumners avatar jsumners commented on July 2, 2024

I have created an integration test based upon this issue #926

I am not seeing the issue described.

from node-ldapjs.

jsumners avatar jsumners commented on July 2, 2024

Closing as cannot reproduce. If you are able to provide a reproduction, or show how the integration test I added is insufficient, please reopen with that information.

from node-ldapjs.

audn avatar audn commented on July 2, 2024

https://github.com/audn/ldapjs-reproduction
Let me know if it works on your end @jsumners

from node-ldapjs.

jsumners avatar jsumners commented on July 2, 2024

Have you reviewed the integration test I added? Can you point out how it does not cover the issue?

Regarding your repo:

  1. https://github.com/audn/ldapjs-reproduction/blob/06453eb1342cf8fd371c3a3a700e648fd4ae29b5/package.json#L6 is not v3.0.4. The v3.0.4 release directly addresses the code block you are asserting is the issue.
  2. It is not a minimal reproduction. Please review https://stackoverflow.com/help/minimal-reproducible-example. Note: the integration test I provided is a good example of what a minimal reproduction looks like for this project.

from node-ldapjs.

audn avatar audn commented on July 2, 2024

I tried moving the user, and that fixed it. Do you have any limitations as of how deep we can drill?

Doesn't work: CN=user1,OU=Portal,OU=Users,OU=Tier,OU=Norge,DC=example,DC=com
Works: CN=user1,DC=example,DC=com

from node-ldapjs.

jsumners avatar jsumners commented on July 2, 2024

You have removed your code, so I cannot see what you are doing. I'm going to guess that you are searching for the entry to modify, setting a base DN at dc=example,dc=com, and not specifying scope=subtree.

This library does not impose any limits on DNs that are not present in the RFCs.

from node-ldapjs.

audn avatar audn commented on July 2, 2024

Can you add scope on modify?

https://github.com/audn/ldapjs-reproduction

from node-ldapjs.

audn avatar audn commented on July 2, 2024

It seems like it's returning "No Such Object" when using "ΓΈ" in the DN @jsumners

from node-ldapjs.

jsumners avatar jsumners commented on July 2, 2024

Please see #860.

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.