Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Fix LDAP authentication bug where empty password can success…
…fully login on AD server (backport #41982) (#42566) ## Why I'm doing: If you supply an empty string, an empty byte/char array, or null to the Context.SECURITY_CREDENTIALS environment property, then the authentication mechanism will be "none". This is because the LDAP requires the password to be nonempty for simple authentication. The protocol automatically converts the authentication to "none" if a password is not supplied. https://docs.oracle.com/javase/jndi/tutorial/ldap/security/simple.html ## What I'm doing: Reject empty password. Co-authored-by: gengjun-git <[email protected]>
- Loading branch information