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

Method BindService

internal/service/ldap_service.go:217–228  ·  view source on GitHub ↗
(rebind bool)

Source from the content-addressed store, hash-verified

215}
216
217func (ldap *LdapService) BindService(rebind bool) error {
218 // Locks must not be used for initial binding attempt
219 if rebind {
220 ldap.mutex.Lock()
221 defer ldap.mutex.Unlock()
222 }
223
224 if ldap.cert != nil {
225 return ldap.conn.ExternalBind()
226 }
227 return ldap.conn.Bind(ldap.config.BindDN, ldap.config.BindPassword)
228}
229
230func (ldap *LdapService) Bind(userDN string, password string) error {
231 ldap.mutex.Lock()

Callers 2

connectMethod · 0.95
VerifyUserMethod · 0.80

Calls 1

BindMethod · 0.80

Tested by

no test coverage detected