Categorygithub.com/jbirdman/ldapx
modulepackage
1.0.45
Repository: https://github.com/jbirdman/ldapx.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
FindEntry searches using given DN base and returns the first entry that matches the filter using the given connection.
GetAttributeFromDN return value of first (leftmost) RDN that matches attribute name.
InterfaceToSlice converts an interface slice to a string slice.
InterfaceToSliceFold converts an interface slice to a string slice, lowercasing.
IsDN returns true if the string is a DN.
MapStringSlice applies a function to each element of a string slice.
NewAddRequest creates a new AddRequest with the given DN and controls.
NewAttributeMap creates a new AttributeMap.
NewControlBeheraPasswordPolicy creates a new Behera password policy control.
NewControlPaging creates a new paging control with the given paging size.
NewControlString creates a new ControlString with the given control type, criticality and control value.
NewDelRequest creates a new DelRequest with the given DN and controls.
NewEntry creates a new entry with the given DN.
NewEntryFromLdapEntry creates a new entry from a ldap entry.
NewModifyRequest creates a new ModifyRequest with the given DN and controls.
NewPasswordModifyRequest creates a new PasswordModifyRequest with the given user identity, old password and new password.
NewSearchRequest creates a new SearchRequest with the given base DN, scope, derefAliases, sizeLimit, timeLimit, typesOnly, filter, attributes and controls.
OpenURL opens a connection to an LDAP server using the provided URL.
OpenURLSimple opens a connection to an LDAP server using the provided URL.
ParseDN parses the given string into a DN.
SliceToInterface converts a string slice to an interface slice.
SliceToInterfaceFold converts a string slice to an interface slice, lowercasing.
StringSliceFold converts a string slice to a lowercased string slice.

# Constants

ChangeAdd is the change type for adding an entry.
ChangeDelete is the change type for deleting an entry.
ChangeUpdate is the change type for updating an entry.

# Structs

AttributeChange represents a change to an attribute.
AttributeType represents an attribute type.
Conn represents a connection to an LDAP server.
Entry
Entry represents an LDAP entry.
LDAPSchema represents the LDAP schema.
RootDSE represents the RootDSE.

# Interfaces

Client represents a client that can execute LDAP operations.
MutableEntry is an interface for an entry that can be modified.

# Type aliases

AttributeMap is a map of attributes.
DN is a distinguished name.
EntryUpdateFunc is a function that can be used to update an entry.