Comments (3)
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.
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.
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)
- file json HOT 1
- Need help with some examples of searching a user HOT 3
- 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
- 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.