Documentation ¶
Index ¶
- func NewHandler(s *Server, handler func(s *Server, w ldap.ResponseWriter, r *ldap.Message)) func(w ldap.ResponseWriter, r *ldap.Message)
- type InvalidCredentials
- type LDAPAction
- type LDAPPassThroughClient
- type PassThroughClient
- type PassThroughConfig
- type Server
- func (s *Server) Config() *ServerConfig
- func (s *Server) DCRDN() string
- func (s *Server) GetRootDN() *schema.DN
- func (s *Server) GetRootPW() string
- func (s *Server) GetSuffix() string
- func (s *Server) LoadSchema()
- func (s *Server) NormalizeDN(dn string) (*schema.DN, error)
- func (s *Server) RefreshCache(ctx context.Context) error
- func (s *Server) Repo() repo.Repository
- func (s *Server) RequiredAuthz(m *ldap.Message, ops LDAPAction, targetDN *schema.DN) bool
- func (s *Server) Start()
- func (s *Server) Stop()
- func (s *Server) SuffixNorm() []string
- func (s *Server) SuffixOrig() []string
- func (s *Server) SuffixOrigStr() string
- type ServerConfig
- type SimpleACL
- type SimpleACLDef
- type SimpleACLScope
- type SimpleACLScopeSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(s *Server, handler func(s *Server, w ldap.ResponseWriter, r *ldap.Message)) func(w ldap.ResponseWriter, r *ldap.Message)
Types ¶
type InvalidCredentials ¶
type InvalidCredentials struct {
// contains filtered or unexported fields
}
func (InvalidCredentials) Error ¶
func (i InvalidCredentials) Error() string
type LDAPAction ¶
type LDAPAction int
const ( AddOps LDAPAction = iota ModifyOps ModRDNOps DeleteOps SearchOps )
func (LDAPAction) String ¶
func (c LDAPAction) String() string
type LDAPPassThroughClient ¶
type LDAPPassThroughClient struct { Server string SearchBase string Timeout int Filter string BindDN string Password string Scope string }
func (*LDAPPassThroughClient) Authenticate ¶
type PassThroughClient ¶
type PassThroughConfig ¶
type PassThroughConfig map[string]PassThroughClient
func (PassThroughConfig) Add ¶
func (p PassThroughConfig) Add(domain string, client PassThroughClient)
func (PassThroughConfig) Get ¶
func (p PassThroughConfig) Get(domain string) (PassThroughClient, bool)
func (PassThroughConfig) Has ¶
func (p PassThroughConfig) Has(domain string) bool
type Server ¶
func NewServer ¶
func NewServer(c *ServerConfig) *Server
func (*Server) Config ¶
func (s *Server) Config() *ServerConfig
func (*Server) LoadSchema ¶
func (s *Server) LoadSchema()
func (*Server) Repo ¶
func (s *Server) Repo() repo.Repository
func (*Server) RequiredAuthz ¶
func (*Server) SuffixNorm ¶
func (*Server) SuffixOrig ¶
func (*Server) SuffixOrigStr ¶
type ServerConfig ¶
type ServerConfig struct { *repo.DBRepositoryConfig *schema.SchemaConfig RootPW string PassThroughConfig *PassThroughConfig BindAddress string LogLevel string PProfServer string GoMaxProcs int SimpleACL []string }
type SimpleACL ¶
type SimpleACL struct {
// contains filtered or unexported fields
}
func NewSimpleACL ¶
func (*SimpleACL) CanVisible ¶
func (s *SimpleACL) CanVisible(session *auth.AuthSession, attrName string) bool
type SimpleACLDef ¶
type SimpleACLDef struct { Scope SimpleACLScopeSet InvisibleAttributes util.StringSet }
type SimpleACLScope ¶
type SimpleACLScope int
const ( ReadScope SimpleACLScope = iota WriteScope )
func (SimpleACLScope) String ¶
func (c SimpleACLScope) String() string
type SimpleACLScopeSet ¶
type SimpleACLScopeSet map[SimpleACLScope]struct{}
func (SimpleACLScopeSet) Add ¶
func (s SimpleACLScopeSet) Add(scope SimpleACLScope)
func (SimpleACLScopeSet) Contains ¶
func (s SimpleACLScopeSet) Contains(scope SimpleACLScope) bool
Click to show internal directories.
Click to hide internal directories.