zldap

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSearchPageSize uint32

DefaultSearchPageSize the default page size of search.

Functions

func Close

func Close(c *ldap.Conn)

Close connection.

func Connect

func Connect(domain string, timeout time.Duration) (*ldap.Conn, error)

Connect to AD or LDAP server, default port is 389.

func Login

func Login(c *ldap.Conn, account string, password string) (*ldap.Conn, error)

Login AD or LDAP server.

func Query

func Query(c *ldap.Conn, searchbase string, filter string, attributeList []string) (*ldap.SearchResult, error)

Query info from AD server.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL