MCPcopy
hub / github.com/tinyauthapp/tinyauth / Bind

Method Bind

internal/service/ldap_service.go:230–238  ·  view source on GitHub ↗
(userDN string, password string)

Source from the content-addressed store, hash-verified

228}
229
230func (ldap *LdapService) Bind(userDN string, password string) error {
231 ldap.mutex.Lock()
232 defer ldap.mutex.Unlock()
233 err := ldap.conn.Bind(userDN, password)
234 if err != nil {
235 return err
236 }
237 return nil
238}
239
240func (ldap *LdapService) heartbeat() error {
241 tlog.App.Debug().Msg("Performing LDAP connection heartbeat")

Callers 3

TokenMethod · 0.80
BindServiceMethod · 0.80
VerifyUserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected