Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LDAP_Auth ¶
func LDAP_Auth(lc *LDAP_CONFIG, username, password string) (err error)
Types ¶
type LDAP_CONFIG ¶
type LDAP_CONFIG struct { Addr string `json:"addr"` BaseDn string `json:"baseDn"` BindDn string `json:"bindDn` BindPass string `json:"bindPass"` AuthFilter string `json:"authFilter"` Attributes []string `json:"attributes"` TLS bool `json:"tls"` StartTLS bool `json:"startTLS"` Conn *ldap.Conn }
func (*LDAP_CONFIG) Auth ¶
func (lc *LDAP_CONFIG) Auth(username, password string) (err error)
func (*LDAP_CONFIG) Close ¶
func (lc *LDAP_CONFIG) Close()
func (*LDAP_CONFIG) Connect ¶
func (lc *LDAP_CONFIG) Connect() (err error)
type LDAP_RESULT ¶
Click to show internal directories.
Click to hide internal directories.