Documentation
¶
Index ¶
- Variables
- func GetAttributeValue(e *ldap.Entry, key string) string
- func GetAttributeValues(e *ldap.Entry, key string) []string
- type SLDAPClient
- func (cli *SLDAPClient) Authenticate(baseDN string, objClass string, uidAttr string, uname string, passwd string, ...) (*ldap.Entry, error)
- func (cli *SLDAPClient) Close()
- func (cli *SLDAPClient) Connect() error
- func (cli *SLDAPClient) Search(base string, objClass string, condition map[string]string, filter string, ...) ([]*ldap.Entry, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetAttributeValue ¶
func GetAttributeValues ¶
Types ¶
type SLDAPClient ¶
type SLDAPClient struct {
// contains filtered or unexported fields
}
func NewLDAPClient ¶
func NewLDAPClient(url, account, password string, baseDN string, isDebug bool) *SLDAPClient
func (*SLDAPClient) Authenticate ¶
func (*SLDAPClient) Close ¶
func (cli *SLDAPClient) Close()
func (*SLDAPClient) Connect ¶
func (cli *SLDAPClient) Connect() error
Click to show internal directories.
Click to hide internal directories.