Hi
I am using Grafana 8.3
OS: 22.04
I have configured ldap with Active dictory, grafana service is up and running and while I am tring to test user mapping in ldap it shows me
below error:
t=2023-08-01T21:34:03-0400 lvl=eror msg=“No user was found in the LDAP server(s) with that username” logger=context userId=1 orgId=1 uname=admin error="LDAP Result Code 1 "Operations Error": 000004DC: LdapErr: DSID-0C090ACD, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563
My ldap config is as below:
[[servers]]
# Ldap server host (specify multiple hosts space separated)
host = “xx.xxx.xxx.xxx”
# Default port is 389 or 636 if use_ssl = true
port = 636
# Set to true if LDAP server should use an encrypted TLS connection (either with STARTTLS or LDAPS)
use_ssl = true
# If set to true, use LDAP with STARTTLS instead of LDAPS
start_tls = false
# set to true if you want to skip ssl cert validation
ssl_skip_verify = true
# set to the path to your root CA certificate or leave unset to use system defaults
# root_ca_cert = “/path/to/certificate.crt”
# Authentication against LDAP servers requiring client certificates
# client_cert = “/path/to/client.crt”
# client_key = “/path/to/client.key”
# Search user bind dn
#bind_dn = “cn=admin,dc=grafana,dc=org”
bind_dn = “sample\%s”
# Search user bind password
# If the password contains # or ; you have to wrap it with triple quotes. Ex “”“#password;”“”
#bind_password = ‘grafana’
# User search filter, for example “(cn=%s)” or “(sAMAccountName=%s)” or “(uid=%s)”
search_filter = “(sAMAccountName=%s)”
# An array of base dns to search through
search_base_dns = [“dc=sample,dc=com”]
[servers.attributes]
##name = “givenName”
##surname = “sn”
##username = “cn”
member_of = “memberOf”
email = “email”
Can anyone help overhere?