GithubHelp home page GithubHelp logo

Comments (3)

maxime-beguin avatar maxime-beguin commented on June 25, 2024 1

@akrammohammed111 : thank you for your support.

No verification is made while identifying to the LDAP server API so you can use some fake user as long as it respects the searchBase (dc=test in the README.md example) like cn=root,dc=test without password (or empty password), it should do the trick.
The ldapsearch command uses the -x option to deactivate authentication but we could have written something like this:

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

from ldap-server-mock.

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

Hi,

Have a look to the README.md file on the develop branch (it is not released yet), we just had an example with ldapsearch command to check if everything is ok.

from ldap-server-mock.

akrammohammed111 avatar akrammohammed111 commented on June 25, 2024

@maxime-beguin : Thank you for your response. I am trying to run this on windows without command line tools, so not able to use the ldapsearch command you have shared.

For me to search an user using LDAP Admin tool, I need to perform successful bind, Can you tell me the bind user that I need to use for this and the password that user.

I was looking into it the code and found that 'cn=root' and Password = 'secret' has the full access, I tried using this but still no luck.

I also have a program using which I perform bind, When I try to bind using the program I have to pass some username and password and on doing this, the ldap application crashes(command prompt closes) and I get an error saying 'Directory server unavailable'

This program binds successfully when I run it against an actual AD.

Thanks again for looking into this. Really appreciate your efforts.

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.