Versions in this module Expand all Collapse all v0 v0.5.2 Sep 24, 2026 v0.5.1 Sep 24, 2026 v0.5.0 Sep 22, 2026 Changes in this version type KerberosAuth + Password adcore.Secret v0.4.0 Sep 22, 2026 v0.1.0 Sep 21, 2026 Changes in this version + const ControlExtendedDN + const ControlPaging + const ControlSDFlags + const ControlShowDeleted + const MatchingRuleInChain + func DefaultPort(m TLSMode) int + type Client struct + func New(ctx context.Context, cfg Config) (*Client, error) + func NewWithConn(ctx context.Context, cfg Config, dial func(context.Context) (conn.Conn, error)) (*Client, error) + func (c *Client) Close() error + func (c *Client) DefaultNamingContext() string + func (c *Client) Directory() adcore.Directory + func (c *Client) Server() string + type Config struct + CACertificateFile string + InsecureSkipVerify bool + Kerberos *KerberosAuth + Log Logger + MaxConcurrency int + NTLM *NTLMAuth + Port int + Replication ReplicationConfig + Retry adcore.RetryConfig + Server string + Simple *SimpleAuth + TLS TLSMode + TLSConfig *tls.Config + Timeout time.Duration + func (c Config) Validate() error + type KerberosAuth struct + CCachePath string + Keytab string + Krb5ConfPath string + Realm string + SPN string + Username string + type Logger interface + Debug func(ctx context.Context, msg string, kv ...any) + type NTLMAuth struct + Domain string + Password adcore.Secret + Username string + type ReplicationConfig struct + ForceSync bool + PollInterval time.Duration + Targets []string + Timeout time.Duration + Wait bool + type SimpleAuth struct + Password adcore.Secret + Username string + type TLSMode string + const TLSLDAPS + const TLSStartTLS