Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/go-ldap/ldap
/ functions
Functions
454 in github.com/go-ldap/ldap
⨍
Functions
454
◇
Types & classes
87
↓ 106 callers
Method
Encode
Encode returns the ber packet representation
v3/control.go:211
↓ 54 callers
Method
Printf
Printf writes debug output.
v3/debug.go:17
↓ 50 callers
Function
NewError
NewError creates an LDAP error with the given code and underlying error
v3/error.go:242
↓ 49 callers
Method
Close
()
v3/client.go:13
↓ 38 callers
Function
DialURL
DialURL connects to the given ldap URL. The following schemas are supported: ldap://, ldaps://, ldapi://, and cldap:// (RFC1798, deprecated but used b
v3/conn.go:229
↓ 35 callers
Method
Error
()
v3/error.go:192
↓ 32 callers
Method
String
String returns a human-readable description
v3/control.go:213
↓ 28 callers
Method
Equal
Equal returns true if the DNs are equal as defined by rfc4517 4.2.15 (distinguishedNameMatch). Returns true if they have the same number of relative d
v3/dn.go:312
↓ 25 callers
Function
GetLDAPError
GetLDAPError creates an Error out of a BER packet representing a LDAPResult The return is an error object. It can be casted to a Error structure. This
v3/error.go:201
↓ 22 callers
Function
mustNewPostalAddress
(t *testing.T, lines []string)
v3/postaladdress_test.go:215
↓ 21 callers
Method
finishMessage
(msgCtx *messageContext)
v3/conn.go:460
↓ 15 callers
Function
NewSearchRequest
NewSearchRequest creates a new search request
v3/search.go:473
↓ 15 callers
Function
ParseDN
ParseDN returns a distinguishedName or an error. The function respects https://tools.ietf.org/html/rfc4514
v3/dn.go:246
↓ 15 callers
Method
doRequest
(req request)
v3/request.go:26
↓ 14 callers
Method
readPacket
(msgCtx *messageContext)
v3/request.go:49
↓ 14 callers
Function
runControlTest
(t *testing.T, originalControl Control)
v3/control_test.go:51
↓ 13 callers
Method
Write
(b []byte)
v3/error_test.go:311
↓ 13 callers
Function
runAddControlDescriptions
(t *testing.T, originalControl Control, childDescriptions ...string)
v3/control_test.go:128
↓ 11 callers
Method
PrintPacket
PrintPacket dumps a packet.
v3/debug.go:24
↓ 11 callers
Method
ReadPacket
ReadPacket returns the packet or an error
v3/conn.go:47
↓ 11 callers
Function
encodeControls
(controls []Control)
v3/control.go:790
↓ 10 callers
Method
Bind
(username, password string)
v3/client.go:19
↓ 10 callers
Method
Close
Close closes the connection.
v3/conn.go:289
↓ 10 callers
Function
DecodeControl
DecodeControl returns a control read from the given packet, or nil if no recognized control can be made
v3/control.go:553
↓ 10 callers
Function
addRequestDescriptions
(packet *ber.Packet)
v3/ldap.go:266
↓ 9 callers
Method
Add
(*AddRequest)
v3/client.go:26
↓ 9 callers
Method
EqualFold
EqualFold returns true if the DNs are equal as defined by rfc4517 4.2.15 (distinguishedNameMatch). Returns true if they have the same number of relati
v3/dn.go:380
↓ 9 callers
Function
EscapeFilter
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
v3/ldap.go:324
↓ 9 callers
Function
FindControl
FindControl returns the first control of the given type in the list, or nil
v3/control.go:543
↓ 9 callers
Function
IsErrorWithCode
IsErrorWithCode returns true if the given error is an LDAP error with the given result code
v3/error.go:267
↓ 9 callers
Method
Print
Print outputs a human-readable description
v3/search.go:161
↓ 9 callers
Method
Search
(*SearchRequest)
v3/client.go:36
↓ 9 callers
Function
getTestConnection
(withBind bool)
v3/ldap_test.go:30
↓ 8 callers
Method
IsClosing
IsClosing returns whether or not we're currently closing.
v3/conn.go:279
↓ 8 callers
Function
NewConn
NewConn returns a new Conn using conn for network I/O.
v3/conn.go:254
↓ 8 callers
Function
NewControlPaging
NewControlPaging returns a paging control
v3/control.go:748
↓ 8 callers
Function
NewControlString
NewControlString returns a generic control
v3/control.go:739
↓ 8 callers
Method
SimpleBind
(*SimpleBindRequest)
v3/client.go:21
↓ 8 callers
Function
addLDAPDescriptions
Adds descriptions to an LDAP Response packet for debugging
v3/ldap.go:97
↓ 8 callers
Method
nextMessageID
Returns the next available messageID
v3/conn.go:331
↓ 7 callers
Method
GetAttributeValue
GetAttributeValue returns the first value for the named attribute, or ""
v3/search.go:124
↓ 7 callers
Method
Start
Start initialises goroutines to read replies and process messages. Warning: Calling this function in addition to Dial or DialURL may cause race condit
v3/conn.go:273
↓ 7 callers
Method
getTimeout
()
v3/conn.go:326
↓ 7 callers
Function
runWithTimeout
(t *testing.T, timeout time.Duration, f func())
v3/conn_test.go:244
↓ 7 callers
Method
sendMessage
(packet *ber.Packet)
v3/conn.go:414
↓ 6 callers
Method
Err
()
v3/response.go:16
↓ 6 callers
Function
NewRequestControlDirSync
NewRequestControlDirSync returns a dir sync control
v3/control.go:812
↓ 6 callers
Method
Next
()
v3/response.go:17
↓ 6 callers
Method
StartTLS
(*tls.Config)
v3/client.go:12
↓ 6 callers
Method
Unmarshal
Unmarshal parses the Entry in the value pointed to by i Currently, this methods only supports struct fields of type string, *string, []string, int, i
v3/search.go:248
↓ 6 callers
Function
addControlDescriptions
(packet *ber.Packet)
v3/ldap.go:160
↓ 5 callers
Function
CompileFilter
CompileFilter converts a string representation of a filter into a BER-encoded packet
v3/filter.go:77
↓ 5 callers
Method
Entry
()
v3/response.go:13
↓ 5 callers
Function
NewControlManageDsaIT
NewControlManageDsaIT returns a ControlManageDsaIT control
v3/control.go:415
↓ 5 callers
Method
Search
Search performs the given search request
v3/search.go:567
↓ 5 callers
Method
sendResponse
sendResponse should only be called within the processMessages() loop which is also responsible for closing the responses channel.
v3/conn.go:64
↓ 4 callers
Method
Del
(*DelRequest)
v3/client.go:27
↓ 4 callers
Method
GetControlType
()
v3/control.go:919
↓ 4 callers
Function
NewPostalAddress
NewPostalAddress creates a new PostalAddress by copying non-empty lines from the provided slice of strings.
v3/postaladdress.go:19
↓ 4 callers
Function
ParsePostalAddress
ParsePostalAddress parses an RFC 4517 escaped postal address string into a PostalAddress object or returns an error.
v3/postaladdress.go:70
↓ 4 callers
Method
appendChange
(operation uint, attrType string, attrVals []string)
v3/modify.go:82
↓ 4 callers
Function
decodeEscapedSymbols
Convert from "ABC\xx\xx\xx" form to literal bytes for transport
v3/filter.go:440
↓ 4 callers
Function
decodeString
Remove leading and trailing spaces from the attribute type and value and unescape any escaped characters in these fields decodeString is based on htt
v3/dn.go:109
↓ 4 callers
Function
md5Hash
(b []byte)
v3/bind.go:374
↓ 4 callers
Method
sendProcessMessage
(message *messagePacket)
v3/conn.go:481
↓ 3 callers
Method
Extended
(*ExtendedRequest)
v3/client.go:31
↓ 3 callers
Method
GetControlType
GetControlType returns the OID
v3/control.go:209
↓ 3 callers
Method
ModifyDN
(*ModifyDNRequest)
v3/client.go:29
↓ 3 callers
Method
NTLMChallengeBind
NTLMChallengeBind performs the NTLMSSP bind operation defined in the given request
v3/bind.go:527
↓ 3 callers
Function
NewControlMicrosoftNotification
NewControlMicrosoftNotification returns a ControlMicrosoftNotification control
v3/control.go:444
↓ 3 callers
Function
NewControlMicrosoftServerLinkTTL
NewControlMicrosoftServerLinkTTL returns a ControlMicrosoftServerLinkTTL control
v3/control.go:538
↓ 3 callers
Function
NewControlMicrosoftShowDeleted
NewControlMicrosoftShowDeleted returns a ControlMicrosoftShowDeleted control
v3/control.go:509
↓ 3 callers
Function
NewControlSubtreeDelete
NewControlSubtreeDelete returns a ControlSubtreeDelete control.
v3/control.go:771
↓ 3 callers
Function
NewDelRequest
NewDelRequest creates a delete request for the given DN and controls
v3/del.go:31
↓ 3 callers
Function
NewEntry
NewEntry returns an Entry object with the specified distinguished name and attribute key-value pairs. The map of attributes is accessed in alphabetica
v3/search.go:57
↓ 3 callers
Function
NewExtendedRequest
NewExtendedRequest returns a new ExtendedRequest. The value can be nil depending on the type of request
v3/extended.go:24
↓ 3 callers
Function
NewModifyDNRequest
NewModifyDNRequest creates a new request which can be passed to ModifyDN(). To move an object in the tree, set the "newSup" to the new parent entry D
v3/moddn.go:32
↓ 3 callers
Function
NewPasswordModifyRequest
NewPasswordModifyRequest creates a new PasswordModifyRequest According to the RFC 3602 (https://tools.ietf.org/html/rfc3062): userIdentity is a strin
v3/passwdmodify.go:73
↓ 3 callers
Method
PasswordModify
(*PasswordModifyRequest)
v3/client.go:34
↓ 3 callers
Method
SearchAsync
(ctx context.Context, searchRequest *SearchRequest, bufferSize int)
v3/client.go:37
↓ 3 callers
Method
SearchWithPaging
(searchRequest *SearchRequest, pagingSize uint32)
v3/client.go:38
↓ 3 callers
Method
SetTimeout
SetTimeout sets the time after a request is sent that a MessageTimeout triggers
v3/conn.go:322
↓ 3 callers
Method
Unbind
()
v3/client.go:24
↓ 3 callers
Method
UnmarshalFunc
UnmarshalFunc allows you to define a custom unmarshaler to parse an Entry values. A custom unmarshaler can be found in the Unmarshal function or in th
v3/search.go:310
↓ 3 callers
Method
WhoAmI
WhoAmI returns the authzId the server thinks we are, you may pass controls like a Proxied Authorization control
v3/whoami.go:14
↓ 3 callers
Method
appendTo
(*ber.Packet)
v3/request.go:17
↓ 3 callers
Function
newSearchResponse
(conn *Conn, bufferSize int)
v3/response.go:195
↓ 3 callers
Method
start
(ctx context.Context, searchRequest *SearchRequest)
v3/response.go:69
↓ 3 callers
Function
testMultiGoroutineSearch
(t *testing.T, TLS bool, startTLS bool)
v3/ldap_test.go:212
↓ 2 callers
Method
Compare
(dn, attribute, value string)
v3/client.go:33
↓ 2 callers
Method
Controls
()
v3/response.go:15
↓ 2 callers
Function
DecompileFilter
DecompileFilter converts a packet representation of a filter into a string representation
v3/filter.go:95
↓ 2 callers
Function
DialWithTLSConfig
DialWithTLSConfig updates tls.Config in DialContext.
v3/conn.go:138
↓ 2 callers
Method
DirSync
(searchRequest *SearchRequest, flags, maxAttrCount int64, cookie []byte)
v3/client.go:39
↓ 2 callers
Method
GetAttributeValues
GetAttributeValues returns the values for the named attribute, or an empty list
v3/search.go:83
↓ 2 callers
Function
IsErrorAnyOf
IsErrorAnyOf returns true if the given error is an LDAP error with any one of the given result codes
v3/error.go:247
↓ 2 callers
Function
NewControlBeheraPasswordPolicy
NewControlBeheraPasswordPolicy returns a ControlBeheraPasswordPolicy
v3/control.go:753
↓ 2 callers
Function
NewControlServerSideSorting
(value *ber.Packet)
v3/control.go:923
↓ 2 callers
Function
NewSimpleBindRequest
NewSimpleBindRequest returns a bind request
v3/bind.go:40
↓ 2 callers
Method
PrettyPrint
PrettyPrint outputs a human-readable description indenting
v3/search.go:169
next →
1–100 of 454, ranked by callers