Disable login by email address with LDAP as backend

Hi,

due to different reasons we would like to have our logins based on UID only disable login authentication by email address. The LDAP-Query for the login is configured as (uid=%uid), but still the login by email address is working.
Is it possible to disable the login by email address and restrict authentication to LDAP-UID only? We use NC version 23.0.3.2.

Warm regards, Tom

Hello @TomFernandes have you find out a solution to this?

More or less :slight_smile:. We modified /var/www/nextcloud/core/l10n/de.js (the German translation file) and removed the string for the email-address, so that it only reads “login” and not “login or email-address”.