Versions in this module Expand all Collapse all v0 v0.0.1 Sep 19, 2022 Changes in this version + func GetAttributeOnRootDSE(config *ServerConfig, attributeName string) (string, error) + func GetRootDSE(config *ServerConfig) ([]*ldap.Entry, error) + type ActiveDirectory struct + func NewActiveDirectory(config *ActiveDirectoryConnConfig) (*ActiveDirectory, error) + func (ad ActiveDirectory) Authenticate(username string, password string) (bool, error) + func (ad ActiveDirectory) Cleanup() error + func (ad ActiveDirectory) FindGroup(groupName string) (*ActiveDirectoryGroup, error) + func (ad ActiveDirectory) FindGroups() ([]*ActiveDirectoryGroup, error) + func (ad ActiveDirectory) FindUser(username string) (*ActiveDirectoryUser, error) + func (ad ActiveDirectory) FindUsers() ([]*ActiveDirectoryUser, error) + func (ad ActiveDirectory) GetGroupDistinguishedName(groupName string) (string, error) + func (ad ActiveDirectory) GetMemberOfForGroup(input GroupParentsRequest) ([]string, error) + func (ad ActiveDirectory) GetMemberOfForUser(input UserParentsRequest) ([]string, error) + func (ad ActiveDirectory) GetUPN(username string) (string, error) + func (ad ActiveDirectory) GetUserDistinguishedName(userName string) (string, error) + func (ad ActiveDirectory) GetUsersForGroup(request UsersForGroupRequest) ([]string, error) + type ActiveDirectoryConnConfig struct + AdminPassword string + AdminUsername string + BaseDN string + type ActiveDirectoryGroup struct + CommonName string + Description string + DistinguishedName string + Members []string + ObjectCategory string + SAMAccountName string + SID string + type ActiveDirectoryUser struct + Comment string + CommonName string + Description string + DisplayName string + DistinguishedName string + EmployeeID string + GivenName string + Initials string + Mail string + OU string + ObjectCategory string + SAMAccountName string + SID string + Surname string + UserAccountControl string + UserPrincipalName string + type GroupParentsRequest struct + GroupName string + type ServerConfig struct + RootCAs *x509.CertPool + Url string + type UserParentsRequest struct + UserName string + type UsersForGroupRequest struct + GroupName string