Categorygithub.com/demisto/ldap
modulepackage
0.0.0-20230625125430-4b6a7b6a6b34
Repository: https://github.com/demisto/ldap.git
Documentation: pkg.go.dev

# README

Basic LDAP v3 functionality for the GO programming language.

Most features are used in the test files. ldaplocal_test.go tests most new features.

Required Librarys: github.com/mavricknz/asn1-ber

Working: Connecting to LDAP server Binding to LDAP server Searching for entries Compiling string filters to LDAP filters Paging Search Results Mulitple internal goroutines to handle network traffic Makes library goroutine safe Can perform multiple search requests at the same time and return the results to the proper goroutine. All requests are blocking requests, so the goroutine does not need special handling Request Controls - MatchedValuesRequest, PermissiveModifyRequest, ManageDsaITRequest, SubtreeDeleteRequest, Paging, ServerSideSort

Tests Implemented: Filter Compile / Decompile Local OpenDJ Tests for most Operations

Experimental: LDIF Reader - LDIF entries only (~16k entries/sec) Some limited documentation

TODO: LDIF Reader - mods/adds/deletes/... Test to not depend on initial Directory setup Do something with binary attributes. FilterExtensibleMatch Decode Modify DN Requests / Responses Implement Tests / Benchmarks Timeouts (connect Go 1.1?), Timeout Operations.

# Functions

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
Go - run a function on a go routine with defer that prints logs.
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
SortResult ::= SEQUENCE { sortResult ENUMERATED { success (0), -- results are sorted operationsError (1), -- server internal failure timeLimitExceeded (3), -- timelimit reached before -- sorting was completed strongAuthRequired (8), -- refused to return sorted -- results via insecure -- protocol adminLimitExceeded (11), -- too many matching entries -- for the server to sort noSuchAttribute (16), -- unrecognized attribute -- type in sort key inappropriateMatching (18), -- unrecognized or -- inappropriate matching -- rule in sort key insufficientAccessRights (50), -- refused to return sorted -- results to this client busy (51), -- too busy to process unwillingToPerform (53), -- unable to sort other (80) }, attributeType [0] AttributeDescription OPTIONAL }.
No description provided by the author
No description provided by the author
No description provided by the author
VirtualListViewResponse ::= SEQUENCE { targetPosition INTEGER (0 .
No description provided by the author
No description provided by the author
NewConn returns a new basic connection.
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
NewSimpleSearchRequest only requires four parameters and defaults theother returned SearchRequest values to typical values..
RecoverWithStack is the defer function to recover from panic and print stack.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
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.
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
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
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.
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
No description provided by the author
No description provided by the author
No description provided by the author
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.
1.3.6.1.4.1.4203.1.1.2 DESC 'authentication password exact matching rule'.
1.3.6.1.4.1.4203.1.1.2 DESC 'authentication password matching rule'.
1.3.6.1.4.1.1466.115.121.1.6.
1.3.6.1.4.1.1466.115.121.1.7.
1.3.6.1.4.1.1466.115.121.1.26.
1.3.6.1.4.1.1466.115.121.1.58.
1.3.6.1.4.1.1466.115.121.1.15.
1.3.6.1.4.1.1466.115.121.1.15.
1.3.6.1.4.1.1466.115.121.1.58.
1.3.6.1.4.1.1466.115.121.1.26.
1.3.6.1.4.1.1466.115.121.1.58.
1.3.6.1.4.1.1466.115.121.1.41.
1.3.6.1.4.1.1466.115.121.1.58.
1.3.6.1.4.1.1466.115.121.1.15.
1.3.6.1.4.1.1466.115.121.1.15.
1.3.6.1.4.1.1466.115.121.1.58.
1.3.6.1.4.1.1466.115.121.1.15.
1.3.6.1.4.1.1466.115.121.1.12.
1.3.6.1.4.1.26027.1.3.1 DESC 'Double Metaphone Approximate Match'.
1.3.6.1.4.1.26027.1.3.1 DESC 'user password matching rule'.
1.3.6.1.4.1.26027.1.3.1 DESC 'user password exact matching rule'.
1.3.6.1.4.1.1466.115.121.1.24.
1.3.6.1.4.1.1466.115.121.1.24.
1.3.6.1.4.1.1466.115.121.1.40.
1.3.6.1.4.1.1466.115.121.1.27.
1.3.6.1.4.1.1466.115.121.1.27.
1.3.6.1.4.1.1466.115.121.1.27.
1.3.6.1.4.1.1466.115.121.1.15.
1.3.6.1.4.1.1466.115.121.1.36.
1.3.6.1.4.1.1466.115.121.1.36.
1.3.6.1.4.1.1466.115.121.1.58.
1.3.6.1.4.1.1466.115.121.1.38.
1.3.6.1.4.1.1466.115.121.1.38.
1.3.6.1.4.1.1466.115.121.1.40.
1.3.6.1.4.1.1466.115.121.1.40.
1.3.6.1.4.1.1466.115.121.1.58.
1.3.6.1.4.1.1466.115.121.1.24.
1.3.6.1.4.1.1466.115.121.1.43.
1.3.6.1.4.1.1466.115.121.1.42.
1.3.6.1.4.1.1466.115.121.1.24.
1.3.6.1.4.1.1466.115.121.1.24.
1.3.6.1.4.1.1466.115.121.1.50.
1.3.6.1.4.1.1466.115.121.1.58.
1.3.6.1.4.1.1466.115.121.1.34.
1.3.6.1.1.16.1.
1.3.6.1.1.16.1.
1.3.6.1.4.1.1466.115.121.1.15.
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
No description provided by the author
buffer items in each chanResults default: 5.
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

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
No description provided by the author
No description provided by the author

# Structs

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
VirtualListViewRequest ::= SEQUENCE { beforeCount INTEGER (0..maxInt), afterCount INTEGER (0..maxInt), target CHOICE { byOffset [0] SEQUENCE { offset INTEGER (1 .
No description provided by the author
No description provided by the author
No description provided by the author
Entry
No description provided by the author
No description provided by the author
Conn - LDAP Connection and also pre/post connect configuation IsTLS bool // default false IsSSL bool // default false Debug bool // default false NetworkConnectTimeout time.Duration // default 0 no timeout ReadTimeout time.Duration // default 0 no timeout AbandonMessageOnReadTimeout bool // send abandon on a ReadTimeout (not for searches yet) Addr string // default empty Dialer Dialable // default nil, optional network dialer to use (net.Dial()/net.DialTimeout() by default) A minimal connection..
No description provided by the author
No description provided by the author
No description provided by the author
Reuse search struct, should Values be a [][]byte type EntryAttribute struct { Name string Values []string } */.
No description provided by the author
No description provided by the author
SearchRequest passed to Search functions.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Control Interface.
An interface for a network dialing method compatible with net.Dial().
No description provided by the author
No description provided by the author
An interface for a network dialing method compatible with net.DialTimeout().

# Type aliases

Converts a net.Dial() compatible function to Dialable.
Converts a net.DialTimeout() compatible function to TimedDialable.