Documentation
¶
Index ¶
- Constants
- Variables
- func AppendToMapIfNotEmpty(m map[string]interface{}, k string, v interface{})
- func ConnectAndThen(ldapServer string, enableTls, md5 bool, username, password string, ...) error
- func DoBindForLDAP(ldapServer string, tls, md5 bool, username, password string) error
- func GetOrNewFromPool(ldapServer string, enableTls, md5 bool, username, password string) (*ldap.Conn, error)
- type Ldap
- func (srv *Ldap) Configuration(Server string, Tls *uint64, Md5 *uint64, BindDn string, Password string, ...) error
- func (srv *Ldap) Get() (*model.LdapModel, error)
- func (srv *Ldap) MarkErrorOccur(id, syncGen uint64, errMsg string) bool
- func (srv *Ldap) TryGetLock(id uint64, newProtectedTs, nowProtectedTs int64) bool
- func (srv *Ldap) TryUnLock(id uint64, nowProtectedTs int64)
- func (srv *Ldap) UpdateGen(id, syncGen uint64, entries, inserts, updates, deletes, fails int, costs int64) error
Constants ¶
View Source
const ( ScopeBaseObject = 0 ScopeSingleLevel = 1 ScopeWholeSubtree = 2 )
scope choices
View Source
const ( NeverDerefAliases = 0 DerefInSearching = 1 DerefFindingBaseObj = 2 DerefAlways = 3 )
derefAliases
Variables ¶
View Source
var DerefMap = map[int]string{ NeverDerefAliases: "NeverDerefAliases", DerefInSearching: "DerefInSearching", DerefFindingBaseObj: "DerefFindingBaseObj", DerefAlways: "DerefAlways", }
DerefMap contains human readable descriptions of derefAliases choices
View Source
var ScopeMap = map[int]string{ ScopeBaseObject: "Base Object", ScopeSingleLevel: "Single Level", ScopeWholeSubtree: "Whole Subtree", }
ScopeMap contains human readable descriptions of scope choices
Functions ¶
func AppendToMapIfNotEmpty ¶
func ConnectAndThen ¶
func DoBindForLDAP ¶
Types ¶
type Ldap ¶
type Ldap struct {
// contains filtered or unexported fields
}
func NewLdapService ¶
func NewLdapService() *Ldap
func (*Ldap) Configuration ¶
func (*Ldap) MarkErrorOccur ¶
func (*Ldap) TryGetLock ¶
Click to show internal directories.
Click to hide internal directories.