MCPcopy
hub / github.com/glauth/glauth / Add

Method Add

v2/pkg/handler/ldap.go:357–369  ·  view source on GitHub ↗

Add is not yet supported for the ldap backend

(boundDN string, req ldap.AddRequest, conn net.Conn)

Source from the content-addressed store, hash-verified

355
356// Add is not yet supported for the ldap backend
357func (h ldapHandler) Add(boundDN string, req ldap.AddRequest, conn net.Conn) (result ldap.LDAPResultCode, err error) {
358 _, span := h.tracer.Start(context.Background(), "handler.ldapHandler.Add")
359 defer span.End()
360
361 start := time.Now()
362 defer func() {
363 h.monitor.SetResponseTimeMetric(
364 map[string]string{"operation": "add", "status": fmt.Sprintf("%v", result)},
365 time.Since(start).Seconds(),
366 )
367 }()
368 return ldap.LDAPResultInsufficientAccessRights, nil
369}
370
371// Modify is not yet supported for the ldap backend
372func (h ldapHandler) Modify(boundDN string, req ldap.ModifyRequest, conn net.Conn) (result ldap.LDAPResultCode, err error) {

Callers 14

startConfigWatcherFunction · 0.45
BindMethod · 0.45
SearchMethod · 0.45
maybePutInTimeoutMethod · 0.45
BindMethod · 0.45

Calls 2

StartMethod · 0.80
SetResponseTimeMetricMethod · 0.65

Tested by

no test coverage detected