Documentation ¶
Overview ¶
Package ldap is a CoreDNS plugin that resolves A, AAAA y PTR RR from a ldap backend.
It serves as a backend connector for autoritative zone data. Ldap is often used for bare metal inventories. This use is the main use case for this plugin. Other use cases might eventually be supported. fqdn and ip4 / ip6 information is mapped from it's respective ldap schema and served as DNS records over coredns. Mapping is configurable. To reduce load on the backend, a configurable cache is bundled.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ldap ¶
type Ldap struct { Next plugin.Handler Fall fall.F Upstream *upstream.Upstream Client ldap.Client Zones file.Zones // Exported for mocking in test SearchRequest *ldap.SearchRequest FqdnAttr string Ip4Attr string Ip6Attr string // contains filtered or unexported fields }
Ldap is an ldap plugin to serve zone entries from a ldap backend.
func ParseStanza ¶
func ParseStanza(c *caddy.Controller) (*Ldap, error)
ParseStanza parses a ldap stanza. nolint: funlen, gocognit, gocyclo
func (*Ldap) InitClient ¶
InitClient initializes a Ldap client.
func (*Ldap) Ready ¶
Ready implements the ready.Readiness interface, once this flips to true CoreDNS assumes this plugin is ready for queries; it is not checked again.