Documentation ¶
Index ¶
- type SSHAEncoder
- type Server
- func (s *Server) Bind(bindDN, bindSimplePw string, conn net.Conn) (ldap.LDAPResultCode, error)
- func (s *Server) Listen() error
- func (s *Server) ReloadConfiguration(filename string)
- func (s *Server) Search(boundDN string, searchReq ldap.SearchRequest, conn net.Conn) (ldap.ServerSearchResult, error)
- func (s *Server) WatchForConfigChanges()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHAEncoder ¶
type SSHAEncoder struct { }
func (SSHAEncoder) Encode ¶
func (enc SSHAEncoder) Encode(rawPassPhrase []byte) ([]byte, error)
Encode encodes the []byte of raw password
func (SSHAEncoder) Matches ¶
func (enc SSHAEncoder) Matches(encodedPassPhrase, rawPassPhrase []byte) bool
Matches matches the encoded password and the raw password
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a struct holding all of the state information about your LDAP server
func NewServer ¶
NewServer creates a new server instance which manages a given baseDN and stores user information in the specified configFile.
func (*Server) Listen ¶
Listen starts the server up on the specified port and begins listening for connections.
func (*Server) ReloadConfiguration ¶
ReloadConfiguration reads the configuration file and applies the changes.
func (*Server) Search ¶
func (s *Server) Search(boundDN string, searchReq ldap.SearchRequest, conn net.Conn) (ldap.ServerSearchResult, error)
Search is a handler for an incoming search request.
func (*Server) WatchForConfigChanges ¶
func (s *Server) WatchForConfigChanges()
WatchForConfigChanges starts watching the configuration file for writes and applies changes automatically.
Click to show internal directories.
Click to hide internal directories.