Fix tests

This commit is contained in:
Jeff Mitchell
2019-07-29 17:40:04 -04:00
parent 8a2a3442f0
commit b5aae722f7

View File

@@ -894,17 +894,18 @@ func TestLdapAuthBackend_ConfigUpgrade(t *testing.T) {
TokenExplicitMaxTTL: 24 * time.Hour, TokenExplicitMaxTTL: 24 * time.Hour,
}, },
ConfigEntry: &ldaputil.ConfigEntry{ ConfigEntry: &ldaputil.ConfigEntry{
Url: "ldap://ldap.forumsys.com", Url: "ldap://ldap.forumsys.com",
UserAttr: "uid", UserAttr: "uid",
UserDN: "dc=example,dc=com", UserDN: "dc=example,dc=com",
GroupDN: "dc=example,dc=com", GroupDN: "dc=example,dc=com",
BindDN: "cn=read-only-admin,dc=example,dc=com", BindDN: "cn=read-only-admin,dc=example,dc=com",
GroupFilter: defParams.GroupFilter, GroupFilter: defParams.GroupFilter,
DenyNullBind: defParams.DenyNullBind, DenyNullBind: defParams.DenyNullBind,
GroupAttr: defParams.GroupAttr, GroupAttr: defParams.GroupAttr,
TLSMinVersion: defParams.TLSMinVersion, TLSMinVersion: defParams.TLSMinVersion,
TLSMaxVersion: defParams.TLSMaxVersion, TLSMaxVersion: defParams.TLSMaxVersion,
CaseSensitiveNames: falseBool, CaseSensitiveNames: falseBool,
UsePre111GroupCNBehavior: new(bool),
}, },
} }