# Initial bind failed LDAP Error

**URL:** <https://community.grafana.com/t/initial-bind-failed-ldap-error/13930>\
**Category:** Grafana\
**Created:** [January 28, 2019, 6:02pm UTC](https://community.grafana.com/t/initial-bind-failed-ldap-error/13930 "2019-01-28T18:02:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuricarvalho](https://avatars.discourse-cdn.com/v4/letter/y/8dc957/32.png) [@yuricarvalho](https://community.grafana.com/u/yuricarvalho)\
**Post date:** [January 28, 2019, 6:02pm UTC](https://community.grafana.com/t/initial-bind-failed-ldap-error/13930/1 "2019-01-28T18:02:06Z")

</div>

I am having trouble activating grafana authentication with Active Directory.

The following error is displayed in the grafana log.

**lvl=info msg=“Initial bind failed” logger=ldap error="LDAP Result Code 49 “Invalid Credentials”: 80090308: LdapErr: DSID-0C09042F, comment: AcceptSecurityContext error, data 775, v2580"**

My settings in the ldap.toml file

[[servers]]

host = “IPADDRESS”  
port = 389  
use\_ssl = false  
start\_tls = false  
ssl\_skip\_verify = true

bind\_dn = “MYCOMPANY\%s”  
bind\_password = ‘\*’

search\_filter = “(sAMAccountName=%s)”  
search\_base\_dns = [“dc=mycompany,dc=corp”]

[servers.attributes]  
name = “givenName”  
surname = “sn”  
username = “cn”  
member\_of = “memberOf”  
email = “email”

[[servers.group\_mappings]]  
group\_dn = “cn=admins,dc=grafana,dc=org”  
org\_role = “Admin”

[[servers.group\_mappings]]  
group\_dn = “cn=users,dc=grafana,dc=org”  
org\_role = “Editor”

[[servers.group\_mappings]]  
group\_dn = “\*”  
org\_role = “Viewer”

Can someone help me ?
