This commit is contained in:
Joshua Casey
2024-04-08 06:49:03 -05:00
parent e950e7e001
commit 8ea339139e
2 changed files with 4 additions and 4 deletions

View File

@@ -326,7 +326,7 @@ func (p *Provider) dialTLS(ctx context.Context, addr endpointaddr.HostPort) (Con
}
conn := ldap.NewConn(c, true)
conn.Start()
conn.Start() //nolint:staticcheck // will need a different approach soon
return conn, nil
}
@@ -348,7 +348,7 @@ func (p *Provider) dialStartTLS(ctx context.Context, addr endpointaddr.HostPort)
}
conn := ldap.NewConn(c, false)
conn.Start()
conn.Start() //nolint:staticcheck // will need a different approach soon
err = conn.StartTLS(tlsConfig)
if err != nil {
return nil, err

View File

@@ -1,4 +1,4 @@
// Copyright 2022 the Pinniped contributors. All Rights Reserved.
// Copyright 2022-2024 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package testlib
@@ -199,7 +199,7 @@ func dialTLS(t *testing.T, env *TestEnv) *ldap.Conn {
c, err := dialer.DialContext(context.Background(), "tcp", env.SupervisorUpstreamActiveDirectory.Host)
require.NoError(t, err)
conn := ldap.NewConn(c, true)
conn.Start()
conn.Start() //nolint:staticcheck // will need a different approach soon
return conn
}