39 lines
857 B
Go
39 lines
857 B
Go
package ldap
|
|
|
|
import (
|
|
cnsml "git.loafle.net/commons/service_matcher-go/ldap"
|
|
ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig"
|
|
"git.loafle.net/overflow/container_network/crawler/health"
|
|
crawler "git.loafle.net/overflow/crawler-go"
|
|
)
|
|
|
|
type LDAPHealthCrawler struct {
|
|
health.SocketHealthCrawler
|
|
}
|
|
|
|
func (c *LDAPHealthCrawler) Key() string {
|
|
return "LDAP_HEALTH"
|
|
}
|
|
|
|
func (c *LDAPHealthCrawler) String() string {
|
|
return "Active Directory Health Crawler"
|
|
}
|
|
|
|
func (c *LDAPHealthCrawler) Auth(auth map[string]interface{}) error {
|
|
return nil
|
|
}
|
|
|
|
func (c *LDAPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) {
|
|
//rss, err := c.CheckHealth(config)
|
|
//if err != nil {
|
|
// return nil, err
|
|
//}
|
|
return nil, nil
|
|
}
|
|
|
|
func NewCrawler() crawler.Crawler {
|
|
c := &LDAPHealthCrawler{}
|
|
c.SetMatcher(cnsml.NewMatcher())
|
|
return c
|
|
}
|