-
Notifications
You must be signed in to change notification settings - Fork 28
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
Failing to authenticate users that have commas in CN that is included in DN #71
Comments
according to this stack overflow answer, Is this a real case? |
I actually encountered this problem while communicating with real LDAP server. Reading the documents linked from the answer, the ban of Active Directory: Requirements For Creating Objects | Microsoft Learn says:
This looks like suggesting that using Object names: Active Directory | Microsoft Learn says:
This is suggesting that relative distinguished names (that is CN for users) are different things than security principal names because their requirements of uniqueness differ. Therefore, the limitations for security principal names shouldn't apply for relative distinguished names. RFC2253 says:
This looks like saying not that strings containing "," cannot be used in string representations, but that strings that doesn't contain "," nor other special characters can be used as-is (without escaping) in string representations. The BNF shown later is also showing that |
In this case, we can add escape to all the special characters. There are some ambiguity in certain uncommon cases. For example, with this input: We can safely assume that nobody in their right mind will use Then we also need to consider the case that the user provides a CN with |
When an user has DN that contains commas in CN like
Authentication of this user in Admin authenticate mode fails even if correct password is used.
It looks like
\
should be added before the comma in CN likeTo correctly perform authentication.
The text was updated successfully, but these errors were encountered: