Cant manage to setup ldap

Hi,

Im trying to setup LDAP for my Elastic Server using Opendistro but i cant find a way to make it work.

Following the guide i made this config:

authc:
ldap:
http_enabled: true
transport_enabled: true
order: 1
http_authenticator:
type: basic
challenge: true
authentication_backend:
type: ldap
config:
enable_ssl: true
enable_start_tls: false
enable_ssl_client_auth: false
verify_hostnames: true
hosts:
- xxx.xxx.xxx:636
bind_dn: cn=opendistrotest,dc=syncsec,dc=priv
password: xxx
userbase: ‘ou=people,dc=synsec,dc=priv’
usersearch: ‘(sAMAccountName={0})’
username_attribute: uid

authz:
ldap:
http_enabled: true
transport_enabled: true
authorization_backend:
type: ldap
config:
enable_ssl: true
enable_start_tls: false
enable_ssl_client_auth: false
verify_hostnames: true
hosts:
- xxx.xxx.xxx:636
bind_dn: cn=opendistrotest,dc=syncsec,dc=priv
password: xxx
userbase: ‘ou=Users,dc=syncsec,dc=priv’
usersearch: ‘(uid={0})’
username_attribute: uid
rolesearch: ‘(member={0})’
rolebase: ‘ou=Users,dc=syncsec,dc=priv’
resolve_nested_roles: false
rolename: cn

Any tips? Thanks in advance!

Would be helpful if you posted errors to why it is not working.

Have you applied the securityadmin.sh?

1 Like

This is was what i was missing. Thanks!