ldap

package
v0.0.0-...-eab1977 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: LGPL-2.1 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntryTypeDomainComponent  = "dc"
	EntryTypeCountry          = "c"
	EntryTypeOrganization     = "o"
	EntryTypeOrganizationUnit = "ou"
	EntryTypeSurname          = "sn"
	EntryTypeCommonName       = "cn"
)
View Source
const (
	ServiceName = "ldap"
)

Variables

This section is empty.

Functions

func CombineDN

func CombineDN(levels []string) string

func CombineParentDN

func CombineParentDN(levels []string) string

func DeleteEntry

func DeleteEntry(dn string) error

func EntryType

func EntryType(dni string) string

func FindAllRoots

func FindAllRoots() ([]*gldap.Entry, error)

func FindChildren

func FindChildren(dn string) ([]*gldap.Entry, error)

func FindOneEntry

func FindOneEntry(dn string) (*gldap.Entry, error)

func FindSingleRoot

func FindSingleRoot() (*gldap.Entry, error)

func InitBaseDN

func InitBaseDN(c *config.Config, idGen *id.IdGen) error

func SaveEntry

func SaveEntry(entry *gldap.Entry, i id.ItemId) error

func SplitDN

func SplitDN(dn string) []string

func StartService

func StartService(idGen *id.IdGen, c *config.Config, container *config.Container)

func UpdateEntry

func UpdateEntry(entry *gldap.Entry) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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