Documentation
¶
Index ¶
- Constants
- func ApplyFilter(f *ber.Packet, entry *ldap.Entry) (bool, *ldap.Error)
- func GetFilterAttribute(filter string, attr string) (string, error)
- func HandleAbandonRequest(ctx context.Context, req *ber.Packet, boundDN string, fns map[string]Abandoner, ...) error
- func HandleAddRequest(ctx context.Context, req *ber.Packet, boundDN string, fns map[string]Adder, ...) error
- func HandleBindRequest(ctx context.Context, req *ber.Packet, fns map[string]Binder, conn net.Conn) (boundDN string, res *ldap.SimpleBindResult, resultErr error)
- func HandleCompareRequest(ctx context.Context, req *ber.Packet, boundDN string, fns map[string]Comparer, ...) error
- func HandleDeleteRequest(ctx context.Context, req *ber.Packet, boundDN string, fns map[string]Deleter, ...) error
- func HandleModifyDNRequest(ctx context.Context, req *ber.Packet, boundDN string, fns map[string]ModifyDNr, ...) error
- func HandleModifyRequest(ctx context.Context, req *ber.Packet, boundDN string, fns map[string]Modifier, ...) (*ldap.ModifyResult, error)
- func HandleSearchRequest(ctx context.Context, req *ber.Packet, controls *[]ldap.Control, ...) (resultErr error)
- type Abandoner
- type Adder
- type Binder
- type Closer
- type Comparer
- type ConnectionID
- type Deleter
- type Modifier
- type ModifyDNr
- type Searcher
- type Server
- func (server *Server) AbandonFunc(baseDN string, f Abandoner)
- func (server *Server) AddFunc(baseDN string, f Adder)
- func (server *Server) BindFunc(baseDN string, f Binder)
- func (server *Server) Close()
- func (server *Server) CloseFunc(baseDN string, f Closer)
- func (server *Server) CompareFunc(baseDN string, f Comparer)
- func (server *Server) DeleteFunc(baseDN string, f Deleter)
- func (server *Server) GetStats() Stats
- func (server *Server) ListenAndServe(listenString string) error
- func (server *Server) ListenAndServeTLS(listenString string, certFile string, keyFile string) error
- func (server *Server) ModifyDNFunc(baseDN string, f ModifyDNr)
- func (server *Server) ModifyFunc(baseDN string, f Modifier)
- func (server *Server) QuitChannel(quit chan bool)
- func (server *Server) SearchFunc(baseDN string, f Searcher)
- func (server *Server) Serve(ln net.Listener) error
- func (server *Server) SetStats(enable bool)
- type Stats
Constants ¶
View Source
const ( LDAPBindAuthSimple = 0 LDAPBindAuthSASL = 3 )
Other LDAP constants.
Variables ¶
This section is empty.
Functions ¶
func HandleAbandonRequest ¶
func HandleAddRequest ¶
func HandleBindRequest ¶
func HandleCompareRequest ¶
func HandleDeleteRequest ¶
func HandleModifyDNRequest ¶
func HandleModifyRequest ¶
Types ¶
type ConnectionID ¶
type ConnectionID struct{}
type Modifier ¶
type Modifier interface {
Modify(ctx context.Context, boundDN string, req ldap.ModifyRequest, conn net.Conn) (*ldap.ModifyResult, error)
}
type Searcher ¶
type Searcher interface {
Search(ctx context.Context, boundDN string, req ldap.SearchRequest, conn net.Conn) (*ldap.SearchResult, error)
}
type Server ¶
type Server struct {
BindFns map[string]Binder
SearchFns map[string]Searcher
AddFns map[string]Adder
ModifyFns map[string]Modifier
DeleteFns map[string]Deleter
ModifyDNFns map[string]ModifyDNr
CompareFns map[string]Comparer
AbandonFns map[string]Abandoner
CloseFns map[string]Closer
Quit chan bool
EnforceLDAP bool
// If set, server will accept StartTLS.
TLSConfig *tls.Config
// contains filtered or unexported fields
}
func (*Server) AbandonFunc ¶
func (*Server) Close ¶
func (server *Server) Close()
Close closes the underlying net.Listener, and waits for confirmation
func (*Server) CompareFunc ¶
func (*Server) DeleteFunc ¶
func (*Server) ListenAndServe ¶
func (*Server) ListenAndServeTLS ¶
func (*Server) ModifyDNFunc ¶
func (*Server) ModifyFunc ¶
func (*Server) QuitChannel ¶
func (*Server) SearchFunc ¶
Click to show internal directories.
Click to hide internal directories.