diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2025-02-23 19:05:57 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-23 08:05:57 +0000 |
| commit | 0af038e0ced689db90da480876a0bb26d78c6fb9 (patch) | |
| tree | 5d97fe07636fcc5f7c6d87d6535bc5e1f0a9f2eb /internal/authentication/file_user_provider_test.go | |
| parent | 197b45521f5e3799d0b9ef1ec0000d4f83abdee9 (diff) | |
feat(authentication): ldap connection pooling (#7217)
This implements optional LDAP connection pooling to optimize the speed of LDAP transactions.
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/authentication/file_user_provider_test.go')
| -rw-r--r-- | internal/authentication/file_user_provider_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/authentication/file_user_provider_test.go b/internal/authentication/file_user_provider_test.go index 1da33a389..0925d893f 100644 --- a/internal/authentication/file_user_provider_test.go +++ b/internal/authentication/file_user_provider_test.go @@ -86,7 +86,6 @@ func TestShouldNotPanicOnNilDB(t *testing.T) { provider := &FileUserProvider{ config: &schema.AuthenticationBackendFile{Path: f, Password: schema.DefaultPasswordConfig}, - mutex: &sync.Mutex{}, timeoutReload: time.Now().Add(-1 * time.Second), } @@ -102,7 +101,7 @@ func TestShouldHandleBadConfig(t *testing.T) { provider := &FileUserProvider{ config: &schema.AuthenticationBackendFile{Path: f, Password: schema.DefaultPasswordConfig, ExtraAttributes: map[string]schema.AuthenticationBackendExtraAttribute{"example": {ValueType: "integer"}}}, - mutex: &sync.Mutex{}, + mutex: sync.Mutex{}, timeoutReload: time.Now().Add(-1 * time.Second), } |
