[Minor] Log on which LDAP host the authentication is being performed

This commit is contained in:
Robert von Burg 2023-04-28 14:58:27 +02:00
parent 4aa1387fa0
commit e267e22163
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 3 deletions

View File

@ -42,8 +42,7 @@ public abstract class BaseLdapPrivilegeHandler extends DefaultPrivilegeHandler {
}
@Override
protected User checkCredentialsAndUserState(String username, char[] password)
throws AccessDeniedException {
protected User checkCredentialsAndUserState(String username, char[] password) throws AccessDeniedException {
// first see if this is a local user
User internalUser = this.persistenceHandler.getUser(username);
@ -61,7 +60,7 @@ public abstract class BaseLdapPrivilegeHandler extends DefaultPrivilegeHandler {
env.put(Context.SECURITY_PRINCIPAL, username + this.domain);
env.put(Context.SECURITY_CREDENTIALS, new String(password));
logger.info("User {} tries to login on ldap", username + this.domain);
logger.info("User {} tries to login on ldap {}", username + this.domain, this.providerUrl);
// Create the initial context
DirContext ctx = null;