We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I start the mock with the command line:
npx ldap-server-mock --conf=ldap-server-config.json --database=ldap-server-data.json
ldap-server-config.json:
{ "port": 389, "searchBase": "dc=test" }
ldap-server-data.json (just added another user):
[ { "dn": "cn=user,dc=test", "attributes": { "objectClass": "person", "cn": "user-login", "attribute1": "value1", "attribute2": "value2" } }, { "dn": "cn=user2,dc=test", "attributes": { "objectClass": "person", "cn": "user2-login", "attribute1": "value1", "attribute2": "value2" } } ]
When requesting the first user by its dn, I am getting both users instead:
dn
ldapsearch -x -H ldap://127.0.0.1:389 -b "cn=user,dc=test" # user, test dn: cn=user,dc=test objectClass: person cn: user-login attribute1: value1 attribute2: value2 # user2, test dn: cn=user2,dc=test objectClass: person cn: user2-login attribute1: value1 attribute2: value2
I can get the entry I want by using a filter instead, however the mock should not return entries that are not in the scope. Am I missing something?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I start the mock with the command line:
ldap-server-config.json:
ldap-server-data.json (just added another user):
When requesting the first user by its
dn
, I am getting both users instead:I can get the entry I want by using a filter instead, however the mock should not return entries that are not in the scope.
Am I missing something?
The text was updated successfully, but these errors were encountered: