Do not compare user DN using DN comparison as Ad can login via username@domain
Closes #31196 Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
parent
bebb314a16
commit
bd90ead892
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ public class LDAPServerCapabilitiesManager {
|
|||
if (component != null) {
|
||||
LDAPConfig ldapConfig = new LDAPConfig(component.getConfig());
|
||||
if (Objects.equals(URI.create(config.getConnectionUrl()), URI.create(ldapConfig.getConnectionUrl()))
|
||||
&& Objects.equals(LDAPDn.fromString(config.getBindDn()), LDAPDn.fromString(ldapConfig.getBindDN()))) {
|
||||
&& config.getBindDn() != null && config.getBindDn().equalsIgnoreCase(ldapConfig.getBindDN())) {
|
||||
bindCredential = ldapConfig.getBindCredential();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue