Documentation ¶
Index ¶
- Variables
- type Computer
- type Config
- type Group
- type LDAP
- func (l *LDAP) AddUserToGroup(dn, groupDN string) error
- func (l *LDAP) ChangePasswordForSAMAccountName(sAMAccountName, oldPassword, newPassword string) (err error)
- func (l *LDAP) CheckPasswordForDN(dn, password string) (*User, error)
- func (l *LDAP) CheckPasswordForSAMAccountName(sAMAccountName, password string) (*User, error)
- func (l *LDAP) FindComputerByDN(dn string) (computer *Computer, err error)
- func (l *LDAP) FindComputerBySAMAccountName(sAMAccountName string) (computer *Computer, err error)
- func (l *LDAP) FindComputers() (computers []Computer, err error)
- func (l *LDAP) FindGroupByDN(dn string) (group *Group, err error)
- func (l *LDAP) FindGroups() (groups []Group, err error)
- func (l *LDAP) FindUserByDN(dn string) (user *User, err error)
- func (l *LDAP) FindUserBySAMAccountName(sAMAccountName string) (user *User, err error)
- func (l *LDAP) FindUsers() (users []User, err error)
- func (l *LDAP) RemoveUserFromGroup(dn, groupDN string) error
- func (l *LDAP) WithCredentials(dn, password string) (*LDAP, error)
- type Object
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNotFound = errors.New("user not found") ErrSAMAccountNameDuplicated = errors.New("sAMAccountName is not unique") )
View Source
var (
ErrActiveDirectoryMustBeLDAPS = errors.New("ActiveDirectory servers must be connected to via LDAPS to change passwords")
)
View Source
var ErrComputerNotFound = errors.New("computer not found")
View Source
var ErrDNDuplicated = errors.New("DN is not unique")
View Source
var ErrGroupNotFound = errors.New("group not found")
Functions ¶
This section is empty.
Types ¶
type LDAP ¶
type LDAP struct {
// contains filtered or unexported fields
}
func (*LDAP) AddUserToGroup ¶
func (*LDAP) ChangePasswordForSAMAccountName ¶
func (*LDAP) CheckPasswordForDN ¶
func (*LDAP) CheckPasswordForSAMAccountName ¶
func (*LDAP) FindComputerByDN ¶
func (*LDAP) FindComputerBySAMAccountName ¶
func (*LDAP) FindComputers ¶
func (*LDAP) FindGroups ¶
func (*LDAP) FindUserBySAMAccountName ¶
func (*LDAP) RemoveUserFromGroup ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.