Versions in this module Expand all Collapse all v0 v0.5.2 Sep 18, 2014 v0.5.0 Sep 14, 2014 Changes in this version + const AddAttribute + const ApplicationAbandonRequest + const ApplicationAddRequest + const ApplicationAddResponse + const ApplicationBindRequest + const ApplicationBindResponse + const ApplicationCompareRequest + const ApplicationCompareResponse + const ApplicationDelRequest + const ApplicationDelResponse + const ApplicationExtendedRequest + const ApplicationExtendedResponse + const ApplicationModifyDNRequest + const ApplicationModifyDNResponse + const ApplicationModifyRequest + const ApplicationModifyResponse + const ApplicationSearchRequest + const ApplicationSearchResultDone + const ApplicationSearchResultEntry + const ApplicationSearchResultReference + const ApplicationUnbindRequest + const ControlTypePaging + const DeleteAttribute + const DerefAlways + const DerefFindingBaseObj + const DerefInSearching + const ErrorDebugging + const ErrorFilterCompile + const ErrorFilterDecompile + const ErrorNetwork + const FilterAnd + const FilterApproxMatch + const FilterEqualityMatch + const FilterExtensibleMatch + const FilterGreaterOrEqual + const FilterLessOrEqual + const FilterNot + const FilterOr + const FilterPresent + const FilterSubstrings + const FilterSubstringsAny + const FilterSubstringsFinal + const FilterSubstringsInitial + const LDAPResultAdminLimitExceeded + const LDAPResultAffectsMultipleDSAs + const LDAPResultAliasDereferencingProblem + const LDAPResultAliasProblem + const LDAPResultAttributeOrValueExists + const LDAPResultAuthMethodNotSupported + const LDAPResultBusy + const LDAPResultCompareFalse + const LDAPResultCompareTrue + const LDAPResultConfidentialityRequired + const LDAPResultConstraintViolation + const LDAPResultEntryAlreadyExists + const LDAPResultInappropriateAuthentication + const LDAPResultInappropriateMatching + const LDAPResultInsufficientAccessRights + const LDAPResultInvalidAttributeSyntax + const LDAPResultInvalidCredentials + const LDAPResultInvalidDNSyntax + const LDAPResultLoopDetect + const LDAPResultNamingViolation + const LDAPResultNoSuchAttribute + const LDAPResultNoSuchObject + const LDAPResultNotAllowedOnNonLeaf + const LDAPResultNotAllowedOnRDN + const LDAPResultObjectClassModsProhibited + const LDAPResultObjectClassViolation + const LDAPResultOperationsError + const LDAPResultOther + const LDAPResultProtocolError + const LDAPResultReferral + const LDAPResultSaslBindInProgress + const LDAPResultSizeLimitExceeded + const LDAPResultStrongAuthRequired + const LDAPResultSuccess + const LDAPResultTimeLimitExceeded + const LDAPResultUnavailable + const LDAPResultUnavailableCriticalExtension + const LDAPResultUndefinedAttributeType + const LDAPResultUnwillingToPerform + const MessageFinish + const MessageQuit + const MessageRequest + const MessageResponse + const NeverDerefAliases + const ReplaceAttribute + const ScopeBaseObject + const ScopeSingleLevel + const ScopeWholeSubtree + var ApplicationMap = map[uint8]string + var ControlTypeMap = map[string]string + var DerefMap = map[int]string + var FilterMap = map[uint64]string + var FilterSubstringsMap = map[uint64]string + var LDAPResultCodeMap = map[uint8]string + var ScopeMap = map[int]string + func CompileFilter(filter string) (*ber.Packet, error) + func DebugBinaryFile(fileName string) error + func DecompileFilter(packet *ber.Packet) (ret string, err error) + func NewError(resultCode uint8, err error) error + type Conn struct + Debug debugging + func Dial(network, addr string) (*Conn, error) + func DialTLS(network, addr string, config *tls.Config) (*Conn, error) + func NewConn(conn net.Conn) *Conn + func (l *Conn) Bind(username, password string) error + func (l *Conn) Close() + func (l *Conn) Modify(modifyRequest *ModifyRequest) error + func (l *Conn) Search(searchRequest *SearchRequest) (*SearchResult, error) + func (l *Conn) SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error) + func (l *Conn) StartTLS(config *tls.Config) error + type Control interface + Encode func() *ber.Packet + GetControlType func() string + String func() string + func DecodeControl(packet *ber.Packet) Control + func FindControl(controls []Control, controlType string) Control + type ControlPaging struct + Cookie []byte + PagingSize uint32 + func NewControlPaging(pagingSize uint32) *ControlPaging + func (c *ControlPaging) Encode() *ber.Packet + func (c *ControlPaging) GetControlType() string + func (c *ControlPaging) SetCookie(cookie []byte) + func (c *ControlPaging) String() string + type ControlString struct + ControlType string + ControlValue string + Criticality bool + func NewControlString(controlType string, criticality bool, controlValue string) *ControlString + func (c *ControlString) Encode() *ber.Packet + func (c *ControlString) GetControlType() string + func (c *ControlString) String() string + type Entry struct + Attributes []*EntryAttribute + DN string + func (e *Entry) GetAttributeValue(attribute string) string + func (e *Entry) GetAttributeValues(attribute string) []string + func (e *Entry) PrettyPrint(indent int) + func (e *Entry) Print() + type EntryAttribute struct + Name string + Values []string + func (e *EntryAttribute) PrettyPrint(indent int) + func (e *EntryAttribute) Print() + type Error struct + Err error + ResultCode uint8 + func (e *Error) Error() string + type ModifyRequest struct + func NewModifyRequest(dn string) *ModifyRequest + func (m *ModifyRequest) Add(attrType string, attrVals []string) + func (m *ModifyRequest) Delete(attrType string, attrVals []string) + func (m *ModifyRequest) Replace(attrType string, attrVals []string) + type PartialAttribute struct + type SearchRequest struct + Attributes []string + BaseDN string + Controls []Control + DerefAliases int + Filter string + Scope int + SizeLimit int + TimeLimit int + TypesOnly bool + func NewSearchRequest(BaseDN string, Scope, DerefAliases, SizeLimit, TimeLimit int, TypesOnly bool, ...) *SearchRequest + type SearchResult struct + Controls []Control + Entries []*Entry + Referrals []string + func (s *SearchResult) PrettyPrint(indent int) + func (s *SearchResult) Print()