Gitea tries to log in locally despite ldap config.

My Gitea tries to log in locally despite ldap config. How can I prevent this. And configure it so that users can log in via ldap.

You have to go to Site Administration->User Accounts->Edit(For each user)->Authentication Source->LDAPBind