Comments (3)
@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.
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.
@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)
- file json HOT 1
- I want to authenticate user/pass for client
- throw new Error(`Invalid arguments: ${error.message}`); HOT 2
- Can we search by multiple criteria HOT 1
- Please add basic authentication support to LDAP mock server HOT 3
- Start programatically HOT 15
- Mock returns data that it should not when searching by dn
- Throws an error moments after listening on port 3004 HOT 4
- installation instructions HOT 1
- File path is relative to the executable directory instead of the directory node executes from... HOT 2
- Error: Invalid arguments: /data/ldap-server-mock-conf.json: Unexpected token / in JSON at position 18 HOT 3
- Add example command using common ldap client HOT 2
- Manipulate LDAP search filter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldap-server-mock.