2020-08-21 02:03:53 -05:00
|
|
|
package ldap
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/hashicorp/go-hclog"
|
|
|
|
ldap "github.com/ps78674/ldapserver"
|
|
|
|
)
|
|
|
|
|
|
|
|
type naClient interface {
|
|
|
|
AuthEntity(context.Context, string, string) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type server struct {
|
|
|
|
*ldap.Server
|
|
|
|
|
|
|
|
c naClient
|
|
|
|
l hclog.Logger
|
2020-08-22 22:49:54 -05:00
|
|
|
|
|
|
|
nc []string
|
2020-08-21 02:03:53 -05:00
|
|
|
}
|