Documentation ¶
Index ¶
- func Encode(username, passwd string) string
- func EntrySha1(passwd string) string
- func EntrySha512(passwd string) string
- func Mail(content, to string) (err error)
- type Client
- func (client *Client) Close()
- func (client *Client) Connet() error
- func (client *Client) GetMailAndPasswd(username string) (passwd string, mail string, err error)
- func (client *Client) ModifyPasswd(user, oldPasswd, newPasswd string) error
- func (client *Client) SearchByCN(username string) (*ldap.SearchResult, error)
- func (client *Client) SetPasswd(user, newPasswd string) error
- func (client *Client) VerfiyAuth(username, passwd string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntrySha512 ¶
Types ¶
type Client ¶
type Client struct { Address string Conn *ldap.Conn BaseDn string // contains filtered or unexported fields }
var (
ClientInstance *Client
)
func (*Client) GetMailAndPasswd ¶
func (*Client) ModifyPasswd ¶
func (*Client) SearchByCN ¶
func (*Client) VerfiyAuth ¶
Click to show internal directories.
Click to hide internal directories.