Browse Source

pass DN in ldap test

Dan Cech 7 years ago
parent
commit
c8a0c1e6b8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/login/ldap_test.go

+ 1 - 0
pkg/login/ldap_test.go

@@ -65,6 +65,7 @@ func TestLdapAuther(t *testing.T) {
 			sc.userQueryReturns(nil)
 			sc.userQueryReturns(nil)
 
 
 			result, err := ldapAuther.GetGrafanaUserFor(nil, &LdapUserInfo{
 			result, err := ldapAuther.GetGrafanaUserFor(nil, &LdapUserInfo{
+				DN:       "torkelo",
 				Username: "torkelo",
 				Username: "torkelo",
 				Email:    "my@email.com",
 				Email:    "my@email.com",
 				MemberOf: []string{"cn=editor"},
 				MemberOf: []string{"cn=editor"},