Versions in this module Expand all Collapse all v0 v0.2.0 Jan 4, 2023 Changes in this version + const CONFIGLDAPRETRIES + var ErrNoMatchingLDAPObject = errors.New("No matching LDAP objects found") + var ErrNothingToPublish = errors.New("Nothing to publish") + var Testcertificate = []byte + func ExtractFromProxyAddresses(pa []string) []string + func FilterSampleCertificates(path string, Whitelists, Blacklists ctb.ExceptionMaps) + func Statistics(path string) + type LDAPConfig struct + BaseDN string + Hostname string + Password string + Port uint + TLS bool + Username string + type LDAPConn struct + Config LDAPConfig + LDAPConn *ldap.Conn + func NewLDAPConnection(config LDAPConfig) (lc *LDAPConn, err error) + func (lc *LDAPConn) AddCertificate(certificate *x509.Certificate, dryRun bool) (matchingDNs []string, err error) + func (lc *LDAPConn) CleanupDN(dn string, additionalCerts []*x509.Certificate, ...) (kept, added, deleted, deletedP7 []*x509.Certificate, err error) + func (lc *LDAPConn) FindUserByProxyAddresses(emailAddresses []string) ([]LDAPUser, error) + func (lc *LDAPConn) Modify(modifyRequest *ldap.ModifyRequest) (err error) + func (lc *LDAPConn) Reconnect() (err error) + func (lc *LDAPConn) Search(searchRequest *ldap.SearchRequest) (results *ldap.SearchResult, err error) + type LDAPUser struct + Certificates []*x509.Certificate + DN string + MailAddresses []string