ldapdn

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(dn *ldap.DN) string

Normalize takes an ldap.DN struct and turns it into a "normalized" DN string by cases folding all RDN (attributetypes and values). Note: This currently handles all attributes as caseIgnoreStrings ignoring the Syntax the Attribute Type might have assigned.

func ParseNormalize

func ParseNormalize(dn string) (string, error)

ParseNormalize normalizes the passed LDAP DN string by first parsing it (using ldap.ParseDN) and then casefolding all RDN using ldapdn.Normalize(). ParseNormalize will return an error when parsing the DN fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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