2021-04-19 23:30:27 +01:00
|
|
|
package ldap
|
|
|
|
|
|
|
|
import (
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (ls *LDAPServer) Refresh() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ls *LDAPServer) Start() error {
|
2021-04-25 21:07:12 +01:00
|
|
|
listen := "127.0.0.1:3390"
|
2021-04-19 23:30:27 +01:00
|
|
|
log.Debugf("Listening on %s", listen)
|
|
|
|
err := ls.s.ListenAndServe(listen)
|
|
|
|
if err != nil {
|
|
|
|
ls.log.Errorf("LDAP Server Failed: %s", err.Error())
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|