Skip to content

Cover LDAP naming issue#445

Open
yxia2ufl wants to merge 1 commit into
i2b2:masterfrom
yxia2ufl:feature/IDRI2B2-17
Open

Cover LDAP naming issue#445
yxia2ufl wants to merge 1 commit into
i2b2:masterfrom
yxia2ufl:feature/IDRI2B2-17

Conversation

@yxia2ufl
Copy link
Copy Markdown

This change covers a case where LDAP's Common Name is not equal to sAMAccountName, and current logic doesn't assemble the final string correctly. As current code always assumes both names are equal.

To solve the issue, we introduced a DB search_base check, if it starts with '+', (similar with another case, which checks '@'), then i2b2 uses DB's distinguished_name value for the LDAP's authentication.

That way, we keep existing logic intact, so that it's still backward compatible.

Thanks

Signed-off-by: yxia2 <yxia2@ufl.edu>
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.

1 participant