Versions in this module Expand all Collapse all v0 v0.3.0 Mar 3, 2016 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 BeheraAccountLocked + const BeheraChangeAfterReset + const BeheraInsufficientPasswordQuality + const BeheraMustSupplyOldPassword + const BeheraPasswordExpired + const BeheraPasswordInHistory + const BeheraPasswordModNotAllowed + const BeheraPasswordTooShort + const BeheraPasswordTooYoung + const ControlTypeBeheraPasswordPolicy + const ControlTypeManageDsaIT + const ControlTypePaging + const ControlTypeVChuPasswordMustChange + const ControlTypeVChuPasswordWarning + const DeleteAttribute + const DerefAlways + const DerefFindingBaseObj + const DerefInSearching + const ErrorDebugging + const ErrorFilterCompile + const ErrorFilterDecompile + const ErrorNetwork + const ErrorUnexpectedMessage + const ErrorUnexpectedResponse + 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 MatchingRuleAssertionDNAttributes + const MatchingRuleAssertionMatchValue + const MatchingRuleAssertionMatchingRule + const MatchingRuleAssertionType + const MessageFinish + const MessageQuit + const MessageRequest + const MessageResponse + const NeverDerefAliases + const ReplaceAttribute + const ScopeBaseObject + const ScopeSingleLevel + const ScopeWholeSubtree + var ApplicationMap = map[uint8]string + var BeheraPasswordPolicyErrorMap = map[int8]string + var ControlTypeMap = map[string]string + var DefaultTimeout = 60 * time.Second + var DerefMap = map[int]string + var FilterMap = map[uint64]string + var FilterSubstringsMap = map[uint64]string + var LDAPResultCodeMap = map[uint8]string + var MatchingRuleAssertionMap = map[uint64]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 EscapeFilter(filter string) string + func IsErrorWithCode(err error, desiredResultCode uint8) bool + func NewError(resultCode uint8, err error) error + type AddRequest struct + func NewAddRequest(dn string) *AddRequest + func (a *AddRequest) Attribute(attrType string, attrVals []string) + type Attribute struct + type AttributeTypeAndValue struct + Type string + Value string + type Client interface + Add func(addRequest *AddRequest) error + Bind func(username, password string) error + Close func() + Compare func(dn, attribute, value string) (bool, error) + Del func(delRequest *DelRequest) error + Modify func(modifyRequest *ModifyRequest) error + PasswordModify func(passwordModifyRequest *PasswordModifyRequest) (*PasswordModifyResult, error) + Search func(searchRequest *SearchRequest) (*SearchResult, error) + SearchWithPaging func(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error) + SimpleBind func(simpleBindRequest *SimpleBindRequest) (*SimpleBindResult, error) + Start func() + StartTLS func(config *tls.Config) 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, isTLS bool) *Conn + func (l *Conn) Add(addRequest *AddRequest) error + func (l *Conn) Bind(username, password string) error + func (l *Conn) Close() + func (l *Conn) Compare(dn, attribute, value string) (bool, error) + func (l *Conn) Del(delRequest *DelRequest) error + func (l *Conn) Modify(modifyRequest *ModifyRequest) error + func (l *Conn) PasswordModify(passwordModifyRequest *PasswordModifyRequest) (*PasswordModifyResult, error) + func (l *Conn) Search(searchRequest *SearchRequest) (*SearchResult, error) + func (l *Conn) SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error) + func (l *Conn) SimpleBind(simpleBindRequest *SimpleBindRequest) (*SimpleBindResult, error) + func (l *Conn) Start() + 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 ControlBeheraPasswordPolicy struct + Error int8 + ErrorString string + Expire int64 + Grace int64 + func NewControlBeheraPasswordPolicy() *ControlBeheraPasswordPolicy + func (c *ControlBeheraPasswordPolicy) Encode() *ber.Packet + func (c *ControlBeheraPasswordPolicy) GetControlType() string + func (c *ControlBeheraPasswordPolicy) String() string + type ControlManageDsaIT struct + Criticality bool + func NewControlManageDsaIT(Criticality bool) *ControlManageDsaIT + func (c *ControlManageDsaIT) Encode() *ber.Packet + func (c *ControlManageDsaIT) GetControlType() string + func (c *ControlManageDsaIT) String() string + 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 ControlVChuPasswordMustChange struct + MustChange bool + func (c *ControlVChuPasswordMustChange) Encode() *ber.Packet + func (c *ControlVChuPasswordMustChange) GetControlType() string + func (c *ControlVChuPasswordMustChange) String() string + type ControlVChuPasswordWarning struct + Expire int64 + func (c *ControlVChuPasswordWarning) Encode() *ber.Packet + func (c *ControlVChuPasswordWarning) GetControlType() string + func (c *ControlVChuPasswordWarning) String() string + type DN struct + RDNs []*RelativeDN + func ParseDN(str string) (*DN, error) + type DelRequest struct + Controls []Control + DN string + func NewDelRequest(DN string, Controls []Control) *DelRequest + type Entry struct + Attributes []*EntryAttribute + DN string + func NewEntry(dn string, attributes map[string][]string) *Entry + func (e *Entry) GetAttributeValue(attribute string) string + func (e *Entry) GetAttributeValues(attribute string) []string + func (e *Entry) GetRawAttributeValue(attribute string) []byte + func (e *Entry) GetRawAttributeValues(attribute string) [][]byte + func (e *Entry) PrettyPrint(indent int) + func (e *Entry) Print() + type EntryAttribute struct + ByteValues [][]byte + Name string + Values []string + func NewEntryAttribute(name string, values []string) *EntryAttribute + 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 PasswordModifyRequest struct + NewPassword string + OldPassword string + UserIdentity string + func NewPasswordModifyRequest(userIdentity string, oldPassword string, newPassword string) *PasswordModifyRequest + type PasswordModifyResult struct + GeneratedPassword string + type RelativeDN struct + Attributes []*AttributeTypeAndValue + 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() + type SimpleBindRequest struct + Controls []Control + Password string + Username string + func NewSimpleBindRequest(username string, password string, controls []Control) *SimpleBindRequest + type SimpleBindResult struct + Controls []Control