ldap

package
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: MIT, Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDAPMetadata

type LDAPMetadata struct {
	BaseDN                        string
	Domain                        string
	DefaultNamingContext          string
	DomainFunctionality           string
	ForestFunctionality           string
	DomainControllerFunctionality string
	DnsHostName                   string
}

LDAPMetadata is the metadata for ldap server.

type LdapClient

type LdapClient struct{}

Client is a client for ldap protocol in golang.

It is a wrapper around the standard library ldap package.

func (*LdapClient) CollectLdapMetadata

func (c *LdapClient) CollectLdapMetadata(domain string, controller string) (LDAPMetadata, error)

CollectLdapMetadata collects metadata from ldap server.

func (*LdapClient) IsLdap

func (c *LdapClient) IsLdap(host string, port int) (bool, error)

IsLdap checks if the given host and port are running ldap server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL