Skip to main content

ldap

成员函数函数描述/介绍
ldap.Login
ldap.password
ldap.port
ldap.username

函数定义#

Login#

详细描述#

定义#

Login(addr string, opts ...func(config *ldapClientConfig)) (*ldap.Conn, error)

参数#

参数名参数类型参数解释
addrstring
opts...func(config *ldapClientConfig)

返回值#

返回值(顺序)返回值类型返回值解释
r1*ldap.Conn
r2error

password#

详细描述#

定义#

password(i string) func(config *ldapClientConfig)

参数#

参数名参数类型参数解释
istring

返回值#

返回值(顺序)返回值类型返回值解释
r1func(config *ldapClientConfig)

port#

详细描述#

定义#

port(i int) func(config *ldapClientConfig)

参数#

参数名参数类型参数解释
iint

返回值#

返回值(顺序)返回值类型返回值解释
r1func(config *ldapClientConfig)

username#

详细描述#

定义#

username(i string) func(config *ldapClientConfig)

参数#

参数名参数类型参数解释
istring

返回值#

返回值(顺序)返回值类型返回值解释
r1func(config *ldapClientConfig)