Skip to main content

EnsLib.LDAP.Message.Add

persistent class EnsLib.LDAP.Message.Add extends Ens.Request, EnsLib.LDAP.Message.EntityIdentification

SQL Table Name: EnsLib_LDAP_Message.Add

Request class to make an LDAP Add request using operation EnsLib.LDAP.Operation.Standard

Property Inventory

Properties

property Attributes as array of %String);
Attributes is an array of strings where string is:
AttributeName=Value
and value is single value and attribtues with multiple values are are entered as separate array elements.
The exception to this requirement is if the AttributeName is objectClass in which case the value can be a comma separate list of objectClasses
  Set tRequest=##Class(EnsLib.LDAP.Message.Add).%New()
  Set tRequest.DN = "m-oid=1.2.840.113556.1.8000.2448.2.1,ou=attributetypes, cn=intersystems, ou=schema"
  Set tRequest.objectClass="metaAttributeType,metaTop,top"
  Set tCount = 0
  Set tCount = tCount+1
  Do tRequest.Attributes.SetAt("m-oid=1.2.840.113556.1.8000.2448.2.1",tCount)
  Set tCount = tCount+1
  Do tRequest.Attributes.SetAt("m-name=intersystems-Namespace",tCount)
  Set tCount = tCount+1
  Do tRequest.Attributes.SetAt("m-description=Default namespace a user connects to",tCount)
  Set tCount = tCount+1
  Do tRequest.Attributes.SetAt("m-equality=caseIgnoreMatch",tCount)
  Set tCount = tCount+1
  Do tRequest.Attributes.SetAt("m-substr=caseIgnoreSubstringsMatch",tCount)
  Set tCount = tCount+1
  Do tRequest.Attributes.SetAt("m-syntax=1.3.6.1.4.1.1466.115.121.1.15",tCount)
  Set tCount = tCount+1
  Do tRequest.Attributes.SetAt("m-singleValue=TRUE",tCount)
  
Property methods: AttributesBuildValueArray(), AttributesCollectionToDisplay(), AttributesCollectionToOdbc(), AttributesDisplayToCollection(), AttributesDisplayToLogical(), AttributesGet(), AttributesGetObject(), AttributesGetObjectId(), AttributesGetStored(), AttributesGetSwizzled(), AttributesIsValid(), AttributesLogicalToDisplay(), AttributesLogicalToOdbc(), AttributesNormalize(), AttributesOdbcToCollection(), AttributesSet(), AttributesSetObject(), AttributesSetObjectId()
property BinaryAttributes as array of %String);
BinaryAttributes is an array of strings where string is AttributeName=Value where the value needs to be set as a binary.
Property methods: BinaryAttributesBuildValueArray(), BinaryAttributesCollectionToDisplay(), BinaryAttributesCollectionToOdbc(), BinaryAttributesDisplayToCollection(), BinaryAttributesDisplayToLogical(), BinaryAttributesGet(), BinaryAttributesGetObject(), BinaryAttributesGetObjectId(), BinaryAttributesGetStored(), BinaryAttributesGetSwizzled(), BinaryAttributesIsValid(), BinaryAttributesLogicalToDisplay(), BinaryAttributesLogicalToOdbc(), BinaryAttributesNormalize(), BinaryAttributesOdbcToCollection(), BinaryAttributesSet(), BinaryAttributesSetObject(), BinaryAttributesSetObjectId()
property objectClass as %String);
Optional separate property of comma separate list of objectClasses
Can be specified in Attributes.
Property methods: objectClassDisplayToLogical(), objectClassGet(), objectClassGetStored(), objectClassIsValid(), objectClassLogicalToDisplay(), objectClassLogicalToOdbc(), objectClassNormalize(), objectClassSet()

Inherited Members

Inherited Properties

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: Storage (Ens.MessageBody)

^Ens.MessageBodyD(ID)
=
%%CLASSNAME

Storage Model: Storage (EnsLib.LDAP.Message.Add)

^Ens.MessageBodyD(ID,"Add")
=
DN
RDN
Parent
Base
objectClass

Storage Model: Storage (EnsLib.LDAP.Message.Add)

^Ens.MessageBodyD(ID,"EnsLib.LDAP.Message.Add.Attributes",n)
=
Attributes(n)

Storage Model: Storage (EnsLib.LDAP.Message.Add)

^Ens.MessageBodyD(ID,"EnsLib.LDAP.Message.Add.BinaryAttributes",n)
=
BinaryAttributes(n)
FeedbackOpens in a new tab