diff --git a/ldap.go b/ldap.go index 4cec209..36c74da 100644 --- a/ldap.go +++ b/ldap.go @@ -19,7 +19,7 @@ import ( "github.com/coredns/coredns/plugin/pkg/upstream" "github.com/miekg/dns" - "gopkg.in/ldap.v3" + "github.com/go-ldap/ldap/v3" ) type ldapRecord struct { diff --git a/setup.go b/setup.go index 3d9f67d..0e5092d 100644 --- a/setup.go +++ b/setup.go @@ -6,13 +6,12 @@ import ( "sync" "time" + "github.com/coredns/caddy" "github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/plugin" - "github.com/coredns/coredns/plugin/metrics" + "github.com/prometheus/client_golang/prometheus" clog "github.com/coredns/coredns/plugin/pkg/log" "github.com/coredns/coredns/plugin/pkg/upstream" - - "github.com/caddyserver/caddy" ) const pluginName = "ldap" @@ -43,7 +42,7 @@ func setup(c *caddy.Controller) error { c.OnStartup(func() error { // add plugin-global metric once once.Do(func() { - metrics.MustRegister(c, requestCount) + prometheus.MustRegister(requestCount) }) return nil })