LDAP search error: Not Allowed On RDN
Im performing some test's with gitlab and im stuck at ldap authentication.
when i try do login by ldap im getting this error.
in the logs im getting this
Started POST "/users/auth/ldapmain/callback" for 127.0.0.1 at 2015-11-04 16:59:36 +0000
Processing by OmniauthCallbacksController#ldapmain as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "username"=>"john.doe", "password"=>"[FILTERED]"}
LDAP search error: Not Allowed On RDN
Redirected to http://192.168.99.100/users/sign_in
Completed 302 Found in 1050ms (ActiveRecord: 16.5ms)
Started GET "/users/sign_in" for 127.0.0.1 at 2015-11-04 16:59:49 +0000
Processing by SessionsController#new as HTML
Completed 200 OK in 62ms (Views: 16.4ms | ActiveRecord: 3.2ms)
but if i login with root account and navigate to user's menu my user is created.
This is my config file in ldap section
ldap:
enabled: True
servers:
main:
label: 'example'
host: 'my.domain.com'
port: 389
uid: 'uid'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'dc=admin,dn=domain,dn=com'
password: 'some_password'
active_directory: False
allow_username_or_email_login: True
block_auto_created_users: false
base: 'ou=users,dn=domain,dn=com'
user_filter: ''
attributes:
username: ['uid', 'userid', 'sAMAccountName']
email: ['mail', 'email', 'userPrincipalName']
name: 'cn'
first_name: 'givenName'
last_name: 'sn'
im not an expert in ldap, so if anyone can help me with this will be awesome