Skip to content

Commit a386dac

Browse files
committed
Revert unrelated change not intended
1 parent 2569c2e commit a386dac

File tree

1 file changed

+1
-1
lines changed
  • ansible_base/authentication/authenticator_plugins

1 file changed

+1
-1
lines changed

ansible_base/authentication/authenticator_plugins/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def authenticate(self, request, username=None, password=None, **kwargs) -> (obje
488488
# In unit testing there were cases where the function we are in was being called before get_or_build_user.
489489
# Its unclear if that was just a byproduct of mocking or a real scenario.
490490
# Since this call is idempotent we are just going to call it again to ensure the AuthenticatorUser is created for update_user_claims
491-
get_or_create_authenticator_user(username.lower(), self.database_instance, user_details={}, extra_data=user_from_ldap.ldap_user.attrs.data)
491+
get_or_create_authenticator_user(username, self.database_instance, user_details={}, extra_data=user_from_ldap.ldap_user.attrs.data)
492492
return update_user_claims(user_from_ldap, self.database_instance, users_groups)
493493
except Exception:
494494
logger.exception(f"Encountered an error authenticating to LDAP {self.database_instance.name}")

0 commit comments

Comments
 (0)