Hi,
I’m trying to enable ldaps communications but I can’t reach it.
Opendistro performs authentication and authorization by ldap, but if I look at the ldap log, i see that the request was done on port 389. In elastic logs, there are no info about the port or the protocol used. Could you please help me?
config.yml
config:
dynamic:
http:
anonymous_auth_enabled: false
authc:
clientcert_auth_domain:
description: "Authenticate via SSL client certificates"
http_enabled: true
transport_enabled: true
order: 2
http_authenticator:
type: clientcert
challenge: true
authentication_backend:
type: intern
ldap:
description: "Authenticate via LDAP or Active Directory"
http_enabled: true
transport_enabled: false
order: 5
http_authenticator:
type: clientcert
challenge: false
authentication_backend:
type: ldap
config:
enable_ssl: true
enable_start_tls: false
enable_ssl_client_auth: false
verify_hostnames: true
hosts:
- "ldaps://example.com:636"
bind_dn: "cn=admin,dc=example,dc=com"
password: "password"
userbase: 'ou=people,dc=example,dc=com'
usersearch: '(sAMAccountName={0})'
authz:
roles_from_myldap:
description: "Authorize via LDAP or Active Directory"
http_enabled: true
transport_enabled: false
authorization_backend:
type: ldap
config:
enable_ssl: true
enable_start_tls: false
enable_ssl_client_auth: false
verify_hostnames: true
hosts:
- "ldaps://example.com:636"
bind_dn: "cn=admin,dc=example,dc=com"
password: "admin"
elasticsearch.yml
cluster.name: "docker-cluster"
network.host: 0.0.0.0
opendistro_security.ssl.transport.pemcert_filepath: node.pem
opendistro_security.ssl.transport.pemkey_filepath: node-key.pem
opendistro_security.ssl.transport.pemtrustedcas_filepath: MyRootCA.pem
opendistro_security.ssl.transport.enforce_hostname_verification: false
node.name: nodo1
opendistro_security.ssl.http.enabled: true
opendistro_security.ssl.http.pemcert_filepath: node.pem
opendistro_security.ssl.http.pemkey_filepath: node-key.pem
opendistro_security.ssl.http.pemtrustedcas_filepath: MyRootCA.pem
#opendistro_security.allow_unsafe_democertificates: false
opendistro_security.allow_default_init_securityindex: true
opendistro_security.authcz.admin_dn:
- "CN=maintenance,OU=xxx,O=xxx,L=xxx,ST=xxx,C=xx"
opendistro_security.nodes_dn:
- "CN=nodo1,OU=xxx,O=xxx,L=xxx,ST=xxx,C=xx"
opendistro_security.audit.type: internal_elasticsearch
opendistro_security.enable_snapshot_restore_privilege: true
opendistro_security.check_snapshot_restore_write_privileges: true
opendistro_security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
cluster.routing.allocation.disk.threshold_enabled: false