$ 0 0 by Visvanath Ratnaweera. You need a so called bind user. See https://docs.moodle.org/30/en/LDAP_authentication#Bind_settings.