Hello,
I’ve just read a lot of topic with the almost same problem than me but can’t fix it…
I’m using opensearch and opensearch-dashboards v2.11.1 both.
I think I put correct config but ldap still not working when I try to log into opensearch-dashboard or with curl command. I also noticed that in opensearch-dashboard in Security > Authentication, the authentication type list isn’t the same as in my file. Event the HTTP or Transport settings are differents. Also, if I rename my config.yml in config.old nothing happen, like the file is completely ignored.
Here is my config file :
_meta:
type: "config"
config_version: 2
config:
dynamic:
http:
anonymous_auth_enabled: false
authc:
internal_auth:
order: 0
description: "HTTP basic authentication using the internal user database"
http_enabled: true
transport_enabled: true
http_authenticator:
type: basic
challenge: false
authentication_backend:
type: internal
ldap_auth:
order: 1
description: "Authenticate using LDAP"
http_enabled: true
transport_enabled: true
http_authenticator:
type: basic
challenge: false
authentication_backend:
type: ldap
config:
enable_ssl: false
enable_start_tls: false
enable_ssl_client_auth: false
verify_hostnames: true
hosts:
- myldapserver.local:389
bind_dn: cn=user1,ou=users,dc=myldapserver,dc=local
password: xxxx (password of the user user1)
userbase: ou=users,dc=myldapserver,dc=local
usersearch: (cn={0})
username_attribute: cn
authz:
ldap_roles:
description: "Authorize using LDAP"
http_enabled: true
transport_enabled: true
authorization_backend:
type: ldap
config:
enable_ssl: false
enable_start_tls: false
enable_ssl_client_auth: false
verify_hostnames: true
hosts:
- myldapserver.local:389
bind_dn: cn=user1,ou=users,dc=myldapserver,dc=local
password: xxxx (password of the user user1)
userbase: ou=users,dc=myldapserver,dc=local
usersearch: (cn={0})
username_attribute: cn
skip_users:
- admin
- kibanaserver
rolebase: ou=roles,dc=myldapserver,dc=local
rolesearch: (uniqueMember={0})
userroleattribute: null
userrolename: disabled
rolename: cn
resolve_nested_roles: false
Anyone can help please ?
Thank you !!!