GithubHelp home page GithubHelp logo

Comments (3)

maxime-beguin avatar maxime-beguin commented on June 29, 2024

Hi @JonCook,

Thank you for your constructive criticism!

I don't think I really understand what you are trying to do.
There is actually no restriction on binding. The only restriction is that the user you bind with must have a Distinguished Name under searchBase ( defined in ldap-server-mock-conf.json).
As an exemple, If your searchBase is set to dc=test you can bind with dc=test or cn=root,dc=test or whatever Distinguished Name as far as it ends by dc=test.

You can try the following LDAP command to see it in action:

ldapsearch -D "cn=root,dc=test" -H ldap://127.0.0.1:3004 -b "dc=test" "(&(objectclass=person)(cn=user-login))" attribute1 attribute2

Note that user with Distinguished Name cn=root,dc=test should not necessary be present in the list of users but you can add it for clarity.

Hope it helps.

from ldap-server-mock.

JonCook avatar JonCook commented on June 29, 2024

Hi @maxime-beguin,

Thanks for your reply! This helped a lot. I realized I just had to set my username to be the same as the search base from my Java client and my Java client continues to work with simple authentication against the mock LDAP server. Cool :-)

I'll close this ticket. Thanks again
Jon

from ldap-server-mock.

maxime-beguin avatar maxime-beguin commented on June 29, 2024

Hi @JonCook,

You're welcome.
Thank you for taking time to explain what was the solution for you!

from ldap-server-mock.

Related Issues (14)

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.