From b5aae722f77d6b704cb442eeaa063da13dd3188c Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Mon, 29 Jul 2019 17:40:04 -0400 Subject: [PATCH] Fix tests --- builtin/credential/ldap/backend_test.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/builtin/credential/ldap/backend_test.go b/builtin/credential/ldap/backend_test.go index 1aa3035068..f8f8b6583a 100644 --- a/builtin/credential/ldap/backend_test.go +++ b/builtin/credential/ldap/backend_test.go @@ -894,17 +894,18 @@ func TestLdapAuthBackend_ConfigUpgrade(t *testing.T) { TokenExplicitMaxTTL: 24 * time.Hour, }, ConfigEntry: &ldaputil.ConfigEntry{ - Url: "ldap://ldap.forumsys.com", - UserAttr: "uid", - UserDN: "dc=example,dc=com", - GroupDN: "dc=example,dc=com", - BindDN: "cn=read-only-admin,dc=example,dc=com", - GroupFilter: defParams.GroupFilter, - DenyNullBind: defParams.DenyNullBind, - GroupAttr: defParams.GroupAttr, - TLSMinVersion: defParams.TLSMinVersion, - TLSMaxVersion: defParams.TLSMaxVersion, - CaseSensitiveNames: falseBool, + Url: "ldap://ldap.forumsys.com", + UserAttr: "uid", + UserDN: "dc=example,dc=com", + GroupDN: "dc=example,dc=com", + BindDN: "cn=read-only-admin,dc=example,dc=com", + GroupFilter: defParams.GroupFilter, + DenyNullBind: defParams.DenyNullBind, + GroupAttr: defParams.GroupAttr, + TLSMinVersion: defParams.TLSMinVersion, + TLSMaxVersion: defParams.TLSMaxVersion, + CaseSensitiveNames: falseBool, + UsePre111GroupCNBehavior: new(bool), }, }