domain

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 4 Imported by: 0

README

域管理

Documentation

Index

Constants

View Source
const (
	AppName = "domain"
)
View Source
const (
	// 默认空间
	DEFAULT_DOMAIN = "default"
)

Variables

View Source
var File_apps_domain_pb_ldap_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LdapConfig

type LdapConfig struct {

	// LDAP Server URL
	// @gotags: bson:"url" json:"url"
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url" bson:"url"`
	// 管理账号的用户名称
	// @gotags: bson:"bind_dn" json:"bind_dn"
	BindDn string `protobuf:"bytes,2,opt,name=bind_dn,json=bindDn,proto3" json:"bind_dn" bson:"bind_dn"`
	// 管理账号的用户密码
	// @gotags: bson:"bind_password" json:"bind_password"
	BindPassword string `protobuf:"bytes,3,opt,name=bind_password,json=bindPassword,proto3" json:"bind_password" bson:"bind_password"`
	// TLS是是否校验证书有效性
	// @gotags: bson:"skip_verify" json:"skip_verify"
	SkipVerify bool `protobuf:"varint,4,opt,name=skip_verify,json=skipVerify,proto3" json:"skip_verify" bson:"skip_verify"`
	// LDAP 服务器的登录用户名,必须是从根结点到用户节点的全路径
	// @gotags: bson:"base_dn" json:"base_dn"
	BaseDn string `protobuf:"bytes,5,opt,name=base_dn,json=baseDn,proto3" json:"base_dn" bson:"base_dn"`
	// 用户过滤条件
	// @gotags: bson:"user_filter" json:"user_filter"
	UserFilter string `protobuf:"bytes,6,opt,name=user_filter,json=userFilter,proto3" json:"user_filter" bson:"user_filter"`
	// 用户组过滤条件
	// @gotags: bson:"group_filter" json:"group_filter"
	GroupFilter string `protobuf:"bytes,7,opt,name=group_filter,json=groupFilter,proto3" json:"group_filter" bson:"group_filter"`
	// 组属性的名称
	// @gotags: bson:"groupname_attribute" json:"groupname_attribute"
	GroupnameAttribute string `` /* 132-byte string literal not displayed */
	// 用户属性的名称
	// @gotags: bson:"username_attribute" json:"username_attribute"
	UsernameAttribute string `` /* 128-byte string literal not displayed */
	// 用户邮箱属性的名称
	// @gotags: bson:"mail_attribute" json:"mail_attribute"
	MailAttribute string `protobuf:"bytes,10,opt,name=mail_attribute,json=mailAttribute,proto3" json:"mail_attribute" bson:"mail_attribute"`
	// 用户显示名称属性名称
	// @gotags: bson:"display_name_attribute" json:"display_name_attribute"
	DisplayNameAttribute string `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

func NewDefaultLDAPConfig

func NewDefaultLDAPConfig() *LdapConfig

NewDefaultConfig represents the default LDAP config.

func (*LdapConfig) Descriptor deprecated

func (*LdapConfig) Descriptor() ([]byte, []int)

Deprecated: Use LdapConfig.ProtoReflect.Descriptor instead.

func (*LdapConfig) GetBaseDn

func (x *LdapConfig) GetBaseDn() string

func (*LdapConfig) GetBindDn

func (x *LdapConfig) GetBindDn() string

func (*LdapConfig) GetBindPassword

func (x *LdapConfig) GetBindPassword() string

func (*LdapConfig) GetDisplayNameAttribute

func (x *LdapConfig) GetDisplayNameAttribute() string

func (*LdapConfig) GetGroupFilter

func (x *LdapConfig) GetGroupFilter() string

func (*LdapConfig) GetGroupnameAttribute

func (x *LdapConfig) GetGroupnameAttribute() string

func (*LdapConfig) GetMailAttribute

func (x *LdapConfig) GetMailAttribute() string

func (*LdapConfig) GetSkipVerify

func (x *LdapConfig) GetSkipVerify() bool

func (*LdapConfig) GetUrl

func (x *LdapConfig) GetUrl() string

func (*LdapConfig) GetUserFilter

func (x *LdapConfig) GetUserFilter() string

func (*LdapConfig) GetUsernameAttribute

func (x *LdapConfig) GetUsernameAttribute() string

func (*LdapConfig) ProtoMessage

func (*LdapConfig) ProtoMessage()

func (*LdapConfig) ProtoReflect

func (x *LdapConfig) ProtoReflect() protoreflect.Message

func (*LdapConfig) Reset

func (x *LdapConfig) Reset()

func (*LdapConfig) String

func (x *LdapConfig) String() string

Jump to

Keyboard shortcuts

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