Versions in this module Expand all Collapse all v0 v0.1.1 May 3, 2020 v0.1.0 Dec 1, 2019 Changes in this version + func EscapeFilter(f string) string + func GenerateToken(nickname string) (tokenString string, err error) + func New(cf LdapConnFactory) (l core.LdapDialer, err error) + func ValidateToken(tokenString string, nickname string) (ok bool, err error) + type LdapConnFactory func() (conn core.LdapConn, err error) + func NewLdapConnFactory(host string, port int, username, password string) (ldapConnFactory LdapConnFactory) + type LdapDialer struct + func (ld *LdapDialer) Dial(ctx context.Context) (core.LdapWrap, error) + type LdapWrap struct + func (l *LdapWrap) MemberExists(uid string) (exists bool, err error) + func (l *LdapWrap) NextUidNumber() (nextUidNumber int, err error) + func (l *LdapWrap) PasswordReset(nickname string) (token, email string, err error) + func (l *LdapWrap) RegisterMember(user, email, mlEmail string) (token string, err error) + func (l *LdapWrap) SearchActive(filter string, attrs []string) (sr *ldap.SearchResult, err error) + func (l *LdapWrap) SearchActiveAndInactive(filter string, attrs []string) (sr *ldap.SearchResult, err error) + func (l *LdapWrap) SearchInactive(filter string, attrs []string) (sr *ldap.SearchResult, err error) + func (l *LdapWrap) SetPassword(token, password, doorpass string) (err error) + type Token struct + Nickname string + Random []byte + ValidUntil time.Time