Exception: no bind result

Hello to all,
i’m not able to correctly configure LDAP on my Omnibus GitLab instance.

The ldap section of gitlab.rb file is:

gitlab_rails[‘ldap_enabled’] = true

###! remember to close this block with ‘EOS’ below
gitlab_rails[‘ldap_servers’] = YAML.load <<-‘EOS’
main: # ‘main’ is the GitLab ‘provider ID’ of this LDAP server
label: ‘LDAP’
host: ‘ldap.mydomain.com
port: 636 # 636 for ldaps, 389 for ldap
uid: ‘uid’
bind_dn: ‘uid=MYBINDUSER,ou=people,dc=mydomain,dc=com’
password: ‘MYBINDPASSWORD’
encryption: ‘plain’ # “start_tls” or “simple_tls” or “plain”
verify_certificates: false
smartcard_auth: false
active_directory: false
allow_username_or_email_login: false
lowercase_usernames: true
block_auto_created_users: false
base: ‘ou=people,dc=mydomain,dc=com’
user_filter: ‘’
## EE only
group_base: ‘’
admin_group: ‘’
sync_ssh_keys: false
EOS

When I try to login from UI i get “No bind result” error and the command

gitlab-rake gitlab:ldap:check

returns

Checking LDAP …

LDAP: … Server: ldapmain
Exception: no bind result

Checking LDAP … Finished

I also ran gitlab-ctl reconfigure before try.
A query with ldapsearch tool with the same parameters works!