Skip to content
New issue

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

Incorrect handling of BaseDN in search.js #174

Open
wants to merge 222 commits into
base: master
Choose a base branch
from

Conversation

imarton74
Copy link

If baseDN is set to '' (empty string) in opts to start the search at the root, ad.baseDN value will be used instead of preset baseDN.baseDN in search.js in line 329
options.baseDN = baseDN.baseDN || ad.baseDN

It should be:
options.baseDN = (baseDN.baseDN === void 0) ? ad.baseDN : baseDN.baseDN

jsumners and others added 30 commits January 20, 2016 08:39
This commit updates the network.js tests to use chai assertions.
It also fixes a bug wherein the callback was not being invoked on
error during authentication.
This commit adds a mock LDAP server that emulates some Active
Directory functionality -- non-conforming usernames. The
authenticate.js tests were updated to use this mock server
and the chai assertion library.
This commit updates the getGroupMembershipForUser tests.
It also fixes a bug wherein the documented default attributes
for a group query were not reflected in the code.
This commit updates the getUsersForGroup tests. It also fixes a
bug wherein the documented default user attributes were not being
returned correctly.
This commit fixes a bug in #findGroups() wherein it was "picking"
the default attributes for users, not groups.
This commit adds support for returning the correct error
type when the AnInvalidUsername test is invoked. Previously,
it was a crapshoot as to when the test would pass. And if it
didn't pass then random other tests would fail.
This commit attempts to clarify the mockServer implementation
with some more comments. It also cleans up a couple items such
as unused variables and dead code/comments.
This commit merges in upstream master to remedy
merge conflicts.
This commit refactors the "Range Retrieval Specifier Attribute"
class. The name has been shortened to "RangeAttribute" and most
of the methods have been converted to static methods. Additionally,
the dependence on the underscore library was removed.

Tests are included to verify all functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants