From 20d15fd4fe742a2af902542fc2f5e8da988a384f Mon Sep 17 00:00:00 2001 From: Jesse Coretta <{ID}+{username}@users.noreply.github.com> Date: Fri, 8 Nov 2024 06:50:12 -0800 Subject: [PATCH] Add HR and NOC Map field values --- ds.go | 1 + ls.go | 1 + 2 files changed, 2 insertions(+) diff --git a/ds.go b/ds.go index d6a23da..1cff286 100644 --- a/ds.go +++ b/ds.go @@ -1272,6 +1272,7 @@ func (r DITStructureRule) Map() (def DefinitionMap) { def[`DESC`] = []string{r.Description()} def[`OBSOLETE`] = []string{bool2str(r.Obsolete())} def[`FORM`] = []string{r.Form().OID()} + def[`NOC`] = []string{r.NamedObjectClass().OID()} def[`SUP`] = sups def[`TYPE`] = []string{r.Type()} def[`RAW`] = []string{r.String()} diff --git a/ls.go b/ls.go index e0abe89..817b948 100644 --- a/ls.go +++ b/ls.go @@ -455,6 +455,7 @@ func (r LDAPSyntax) Map() (def DefinitionMap) { def[`NUMERICOID`] = []string{r.NumericOID()} def[`DESC`] = []string{r.Description()} def[`TYPE`] = []string{r.Type()} + def[`HR`] = []string{bool2str(r.HumanReadable())} def[`RAW`] = []string{r.String()} // copy our extensions from receiver r