_examples

command
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL