From d44e724283cc49f93d0b1c60d4fbba6e91289b48 Mon Sep 17 00:00:00 2001 From: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:53:01 -0400 Subject: [PATCH] Fix test --- ldap/client_exported_test.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/ldap/client_exported_test.go b/ldap/client_exported_test.go index f1853e1..7c7983c 100644 --- a/ldap/client_exported_test.go +++ b/ldap/client_exported_test.go @@ -392,14 +392,13 @@ func TestClient_Authenticate(t *testing.T) { username: "eve", password: "password", clientConfig: &ldap.ClientConfig{ - URLs: []string{fmt.Sprintf("ldaps://127.0.0.1:%d", td.Port())}, - Certificates: []string{td.Cert()}, - DiscoverDN: true, - UserDN: testdirectory.DefaultUserDN, - GroupDN: testdirectory.DefaultGroupDN, - UPNDomain: "example.com", - AnonymousGroupSearch: true, - AllowEmptyAnonymousGroupSearch: true, + URLs: []string{fmt.Sprintf("ldaps://127.0.0.1:%d", td.Port())}, + Certificates: []string{td.Cert()}, + DiscoverDN: true, + UserDN: testdirectory.DefaultUserDN, + GroupDN: testdirectory.DefaultGroupDN, + UPNDomain: "example.com", + AnonymousGroupSearch: true, }, opts: []ldap.Option{ldap.WithGroups(), ldap.WithEmptyAnonymousGroupSearch()}, wantGroups: []string{groups[0].DN},