# Packages
No description provided by the author
# Functions
CompileFilter converts a string representation of a filter into a BER-encoded packet.
DebugBinaryFile reads and prints packets from the given filename.
DecodeControl returns a control read from the given packet, or nil if no recognized control can be made.
DecompileFilter converts a packet representation of a filter into a string representation.
Dial connects to the given address on the given network using net.Dial and then returns a new Conn for the connection.
DialTLS connects to the given address on the given network using tls.Dial and then returns a new Conn for the connection.
DialURL connects to the given ldap URL.
DialWithDialer updates net.Dialer in DialContext.
DialWithTLSConfig updates tls.Config in DialContext.
DialWithTLSDialer is a wrapper for DialWithTLSConfig with the option to specify a net.Dialer to for example define a timeout or a custom resolver.
EscapeDN escapes distinguished names as described in RFC4514.
EscapeFilter escapes from the provided LDAP filter string the special characters in the set `()*\` and those out of the range 0 < c < 0x80, as defined in RFC4515.
FindControl returns the first control of the given type in the list, or nil.
GetLDAPError creates an Error out of a BER packet representing a LDAPResult The return is an error object.
IsErrorAnyOf returns true if the given error is an LDAP error with any one of the given result codes.
IsErrorWithCode returns true if the given error is an LDAP error with the given result code.
Logger allows clients to override the default logger.
NewAddRequest returns an AddRequest for the given DN, with no attributes.
NewConn returns a new Conn using conn for network I/O.
NewControlBeheraPasswordPolicy returns a ControlBeheraPasswordPolicy.
Deprecated: Use NewRequestControlDirSync instead.
NewControlManageDsaIT returns a ControlManageDsaIT control.
NewControlMicrosoftNotification returns a ControlMicrosoftNotification control.
NewControlMicrosoftServerLinkTTL returns a ControlMicrosoftServerLinkTTL control.
NewControlMicrosoftShowDeleted returns a ControlMicrosoftShowDeleted control.
NewControlPaging returns a paging control.
No description provided by the author
No description provided by the author
No description provided by the author
NewControlString returns a generic control.
NewControlSubtreeDelete returns a ControlSubtreeDelete control.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewDelRequest creates a delete request for the given DN and controls.
NewEntry returns an Entry object with the specified distinguished name and attribute key-value pairs.
NewEntryAttribute returns a new EntryAttribute with the desired key-value pair.
NewError creates an LDAP error with the given code and underlying error.
NewExtendedRequest returns a new ExtendedRequest.
NewModifyDNRequest creates a new request which can be passed to ModifyDN().
NewModifyDNWithControlsRequest creates a new request which can be passed to ModifyDN() and also allows setting LDAP request controls.
NewModifyRequest creates a modify request for the given DN.
NewPasswordModifyRequest creates a new PasswordModifyRequest
According to the RFC 3602 (https://tools.ietf.org/html/rfc3062): userIdentity is a string representing the user associated with the request.
NewRequestControlDirSync returns a dir sync control.
NewResponseControlDirSync returns a dir sync control.
NewSearchRequest creates a new search request.
NewSimpleBindRequest returns a bind request.
ParseDN returns a distinguishedName or an error.
# Constants
Change operation choices.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
LDAP Application Codes.
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
Ldap Behera Password Policy Draft 10 (https://tools.ietf.org/html/draft-behera-ldap-password-policy-10).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ControlTypeBeheraPasswordPolicy - https://tools.ietf.org/html/draft-behera-ldap-password-policy-10.
ControlTypeDirSync - Active Directory DirSync - https://msdn.microsoft.com/en-us/library/aa366978(v=vs.85).aspx.
ControlTypeManageDsaIT - https://tools.ietf.org/html/rfc3296.
ControlTypeMicrosoftNotification - https://msdn.microsoft.com/en-us/library/aa366983(v=vs.85).aspx.
ControlTypeMicrosoftServerLinkTTL - https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/f4f523a8-abc0-4b3a-a471-6b2fef135481?redirectedfrom=MSDN.
ControlTypeMicrosoftShowDeleted - https://msdn.microsoft.com/en-us/library/aa366989(v=vs.85).aspx.
ControlTypePaging - https://www.ietf.org/rfc/rfc2696.txt.
ControlTypeServerSideSorting - https://www.ietf.org/rfc/rfc2891.txt.
ControlTypeServerSideSorting - https://www.ietf.org/rfc/rfc2891.txt.
ControlTypeSubtreeDelete - https://datatracker.ietf.org/doc/html/draft-armijo-ldap-treedelete-02.
ControlTypeSyncDone - https://www.ietf.org/rfc/rfc4533.txt.
ControlTypeSyncInfo - https://www.ietf.org/rfc/rfc4533.txt.
ControlTypeSyncRequest - https://www.ietf.org/rfc/rfc4533.txt.
ControlTypeSyncState - https://www.ietf.org/rfc/rfc4533.txt.
ControlTypeVChuPasswordMustChange - https://tools.ietf.org/html/draft-vchu-ldap-pwd-policy-00.
ControlTypeVChuPasswordWarning - https://tools.ietf.org/html/draft-vchu-ldap-pwd-policy-00.
ControlTypeWhoAmI - https://tools.ietf.org/html/rfc4532.
DefaultLdapPort default ldap port for pure TCP connection.
DefaultLdapsPort default ldap port for SSL connection.
Change operation choices.
derefAliases.
derefAliases.
derefAliases.
Flags for DirSync control.
Flags for DirSync control.
Flags for DirSync control.
Flags for DirSync control.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
Filter choices.
Filter choices.
Filter choices.
Filter choices.
Filter choices.
Filter choices.
Filter choices.
Filter choices.
Filter choices.
Filter choices.
SubstringFilter options.
SubstringFilter options.
SubstringFilter options.
(https://tools.ietf.org/html/rfc4525).
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
LDAP Result Codes.
MatchingRuleAssertion choices.
MatchingRuleAssertion choices.
MatchingRuleAssertion choices.
MatchingRuleAssertion choices.
MessageFinish indicates the client considers a particular message ID to be finished.
MessageQuit causes the processMessages loop to exit.
MessageRequest sends a request to the server.
MessageResponse receives a response from the server.
MessageTimeout indicates the client-specified timeout for a particular message ID has been reached.
derefAliases.
Change operation choices.
scope choices.
ScopeChildren is an OpenLDAP extension that may not be supported by another directory server.
scope choices.
scope choices.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ApplicationMap contains human readable descriptions of LDAP Application Codes.
BeheraPasswordPolicyErrorMap contains human readable descriptions of Behera Password Policy error codes.
No description provided by the author
ControlTypeMap maps controls to text descriptions.
DefaultTimeout is a package-level variable that sets the timeout value used for the Dial and DialTLS methods.
DerefMap contains human readable descriptions of derefAliases choices.
ErrConnUnbound is returned when Unbind is called on an already closing connection.
ErrNilConnection is returned if doRequest is called with a nil connection.
ErrSizeLimitExceeded will be returned if the search result is exceeding the defined SizeLimit and enforcing the requested limit is enabled in the search request (EnforceSizeLimit).
FilterMap contains human readable descriptions of Filter choices.
FilterSubstringsMap contains human readable descriptions of SubstringFilter choices.
LDAPResultCodeMap contains string descriptions for LDAP error codes.
MatchingRuleAssertionMap contains human readable descriptions of MatchingRuleAssertion choices.
ScopeMap contains human readable descriptions of scope choices.
# Structs
AddRequest represents an LDAP AddRequest operation.
Attribute represents an LDAP attribute.
AttributeTypeAndValue represents an attributeTypeAndValue from https://tools.ietf.org/html/rfc4514.
Change for a ModifyRequest as defined in https://tools.ietf.org/html/rfc4511.
CompareRequest represents an LDAP CompareRequest operation.
Conn represents an LDAP Connection.
ControlBeheraPasswordPolicy implements the control described in https://tools.ietf.org/html/draft-behera-ldap-password-policy-10.
ControlDirSync implements the control described in https://msdn.microsoft.com/en-us/library/aa366978(v=vs.85).aspx.
ControlManageDsaIT implements the control described in https://tools.ietf.org/html/rfc3296.
ControlMicrosoftNotification implements the control described in https://msdn.microsoft.com/en-us/library/aa366983(v=vs.85).aspx.
ControlMicrosoftServerLinkTTL implements the control described in https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/f4f523a8-abc0-4b3a-a471-6b2fef135481?redirectedfrom=MSDN.
ControlMicrosoftShowDeleted implements the control described in https://msdn.microsoft.com/en-us/library/aa366989(v=vs.85).aspx.
ControlPaging implements the paging control described in https://www.ietf.org/rfc/rfc2696.txt.
No description provided by the author
No description provided by the author
ControlString implements the Control interface for simple controls.
ControlSubtreeDelete implements the subtree delete control described in https://datatracker.ietf.org/doc/html/draft-armijo-ldap-treedelete-02.
ControlSyncDone implements the Sync Done Control described in https://www.ietf.org/rfc/rfc4533.txt.
ControlSyncInfo implements the Sync Info Control described in https://www.ietf.org/rfc/rfc4533.txt.
ControlSyncInfoNewCookie implements a part of syncInfoValue described in https://www.ietf.org/rfc/rfc4533.txt.
ControlSyncInfoRefreshDelete implements a part of syncInfoValue described in https://www.ietf.org/rfc/rfc4533.txt.
ControlSyncInfoRefreshPresent implements a part of syncInfoValue described in https://www.ietf.org/rfc/rfc4533.txt.
ControlSyncInfoSyncIdSet implements a part of syncInfoValue described in https://www.ietf.org/rfc/rfc4533.txt.
ControlSyncRequest implements the Sync Request Control described in https://www.ietf.org/rfc/rfc4533.txt.
ControlSyncState implements the Sync State Control described in https://www.ietf.org/rfc/rfc4533.txt.
ControlVChuPasswordMustChange implements the control described in https://tools.ietf.org/html/draft-vchu-ldap-pwd-policy-00.
ControlVChuPasswordWarning implements the control described in https://tools.ietf.org/html/draft-vchu-ldap-pwd-policy-00.
DelRequest implements an LDAP deletion request.
DialContext contains necessary parameters to dial the given ldap URL.
DigestMD5BindRequest represents a digest-md5 bind operation.
DigestMD5BindResult contains the response from the server.
DN represents a distinguishedName from https://tools.ietf.org/html/rfc4514.
Entry represents a single search result entry.
EntryAttribute holds a single attribute.
Error holds LDAP error information.
ExtendedRequest represents an extended request to send to the server See: https://www.rfc-editor.org/rfc/rfc4511#section-4.12.
ExtendedResponse represents the response from the directory server after sending an extended request See: https://www.rfc-editor.org/rfc/rfc4511#section-4.12.
GSSAPIBindRequest represents a GSSAPI SASL mechanism bind request.
ModifyDNRequest holds the request to modify a DN.
ModifyRequest as defined in https://tools.ietf.org/html/rfc4511.
ModifyResult holds the server's response to a modify request.
NTLMBindRequest represents an NTLMSSP bind operation.
NTLMBindResult contains the response from the server.
PacketResponse contains the packet or error encountered reading a response.
PartialAttribute for a ModifyRequest as defined in https://tools.ietf.org/html/rfc4511.
PasswordModifyRequest implements the Password Modify Extended Operation as defined in https://www.ietf.org/rfc/rfc3062.txt.
PasswordModifyResult holds the server response to a PasswordModifyRequest.
RelativeDN represents a relativeDistinguishedName from https://tools.ietf.org/html/rfc4514.
SearchRequest represents a search request to send to the server.
SearchResult holds the server's response to a search request.
SearchSingleResult holds the server's single entry response to a search request.
SimpleBindRequest represents a username/password bind operation.
SimpleBindResult contains the response from the server.
No description provided by the author
WhoAmIResult is returned by the WhoAmI() call.
# Interfaces
Client knows how to interact with an LDAP server.
Control defines an interface controls provide to encode and describe themselves.
GSSAPIClient interface is used as the client-side implementation for the GSSAPI SASL mechanism.
Response defines an interface to get data from an LDAP server.
# Type aliases
No description provided by the author
Tag For ControlSyncInfo.
Mode for ControlTypeSyncRequest.
State for ControlSyncState.
DialOpt configures DialContext.