Documentation
¶
Index ¶
Constants ¶
View Source
const ( SchemaName = "ldap" APIPrefix = "/ldap/v1" MethodPlain = "ldap" MethodSecure = "ldaps" PortPlain = 389 PortSecure = 636 // Time between connection retries MinRetryInterval = time.Second * 5 MaxRetries = 10 // Maximum number of entries to return in a single request MaxListPaging = 500 // Maximum list entries to return MaxListEntries = 1000 // Attributes AttrObjectClasses = "objectClasses" AttrObjectClass = "objectClass" AttrAttributeTypes = "attributeTypes" AttrSubSchemaDN = "subschemaSubentry" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeType ¶ added in v1.5.13
type AttributeType struct {
*parser.AttributeTypeSchema
}
func ParseAttributeType ¶ added in v1.5.13
func ParseAttributeType(v string) (*AttributeType, error)
func (*AttributeType) String ¶ added in v1.5.13
func (o *AttributeType) String() string
type DN ¶ added in v1.5.13
func (*DN) AncestorOf ¶ added in v1.5.13
type Object ¶
func NewObjectFromEntry ¶
type ObjectClass ¶ added in v1.5.13
type ObjectClass struct {
*parser.ObjectClassSchema
}
func ParseObjectClass ¶ added in v1.5.13
func ParseObjectClass(v string) (*ObjectClass, error)
func (*ObjectClass) String ¶ added in v1.5.13
func (o *ObjectClass) String() string
type ObjectList ¶
func (*ObjectList) String ¶
func (o *ObjectList) String() string
type ObjectListRequest ¶
type ObjectListRequest struct { pg.OffsetLimit Filter *string `json:"filter,omitempty" help:"Filter"` Attr []string `json:"attr,omitempty" help:"Attributes to return"` }
func (*ObjectListRequest) String ¶
func (o *ObjectListRequest) String() string
type ObjectType ¶ added in v1.5.13
type ObjectType struct { // DN for the type DN *DN `json:"dn"` // Field name Field string `json:"field"` // Classes for the type ObjectClass []string `json:"objectclass"` }
func NewObjectType ¶ added in v1.5.13
func NewObjectType(dn, field string, classes ...string) (*ObjectType, error)
Click to show internal directories.
Click to hide internal directories.