ldap

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ldap

@author: xwc1125

Package ddm

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLdap

func InitLdap(ldap LdapConfig)

func LdapReq

func LdapReq(user, pass string) (*ldap.SearchResult, error)

Types

type LdapConfig

type LdapConfig struct {
	Enable          bool           `json:"enable" mapstructure:"enable"`
	Host            string         `json:"host" mapstructure:"host"`
	Port            int            `json:"port" mapstructure:"port"`
	BaseDn          string         `json:"base_dn" mapstructure:"base_dn"`
	BindUser        string         `json:"bind_user" mapstructure:"bind_user"`
	BindPass        string         `json:"bind_pass" mapstructure:"bind_pass"`
	AuthFilter      string         `json:"auth_filter" mapstructure:"auth_filter"`
	Attributes      ldapAttributes `json:"attributes" mapstructure:"attributes"`
	CoverAttributes bool           `json:"cover_attributes" mapstructure:"cover_attributes"`
	TLS             bool           `json:"tls" mapstructure:"tls"`
	StartTLS        bool           `json:"start_tls" mapstructure:"start_tls"`
}
var LDAP LdapConfig

Jump to

Keyboard shortcuts

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