Documentation ¶
Overview ¶
Author: Jesse Coretta - for github.com/JesseCoretta/go-schemax/_examples
This example describes a basic file parse of an LDAP schema in RFC4512 compliant format.
What happens:
- Each definition is parsed as specific type instances (e.g.: *AttributeType, *DITContentRule, et al)
- Each type is then assigned a desired unmarshaler function and then printed back to string
Author: Jesse Coretta - for github.com/JesseCoretta/go-schemax/_examples
This example describes a basic interaction with an LDAP DSA via the go-ldap/v3 package.
What happens:
- Anonymous bind to DSA
- Search of subschema subentry distinguished name
- (Try to) obtain all known definition types:
- attributeType
- objectClass
- ldapSyntaxes
- matchingRule
- matchingRuleUse
- dITContentRule
- dITStructureRule
- nameForm
- Initialize schemax.Subschema instance
- Marshal schema content (if any) into schemax.Subschema instance
- Disconnect
This example can be modified to actually do something *useful* with the produced data as opposed to simply printing it.
Click to show internal directories.
Click to hide internal directories.