InterSystems IRIS Data Platform 2020.4 > Class Reference > ENSLIB namespace > EnsLib.LDAP.Util.General

EnsLib.LDAP.Util.General

class EnsLib.LDAP.Util.General extends %Library.RegisteredObject

General LDAP Utility Class Methods used by EnsLib.LDAP.Adapter.Common and EnsLib.LDAP.Operation.Standard

Method Inventory

Methods

classmethod EscapeDN(pDNToEscape As %String = "") as %String [ Language = objectscript ]
Escape DN as per RFC4514 https://www.ietf.org/rfc/rfc4514.txt
classmethod ExtractRDNFromDN(pDN As %String) as %String [ Language = objectscript ]
This returns the Relative Distinguished Name from a Distinguished Name accounting for DN being escaped.
pDN is assumed to be already escaped
classmethod GenerateDNFromRDNandParent(pRDN As %String = "", pParent As %String = "", pEscapeDN As %Boolean = 0, pDefaultRDNAttributeName As %String = "cn") as %String [ Language = objectscript ]
Construct possible Distinguished Name concatenating pParent to to the supplied first parameter taken to be a relative distinguished name pRDN
If no naming attribute is given for pRDN then the value of the fourth parameter pDefaultRDNAttributeName is used. The default is "cn"
The third parameter pEscapeDN if true will lead to the generated DN being escaped according to rfc4514. The default is not to escape.
classmethod GenerateEnsLDAPStatus(pLastCall As %String = "", pExtraText As %String = "", pLastStatusText As %String = "", pLDAPStatus As %Integer = 0, Output pCategory As %String) as %Status [ Language = objectscript ]
Classify the LDAP Status code using Ensemble LDAP status information and return the category as output in 5th parameter.
classmethod UnEscapeDN(pDNToUnEscape As %String = "") as %String [ Language = objectscript ]
UnEscape DN as per RFC4514 https://www.ietf.org/rfc/rfc4514.txt

Inherited Members

Inherited Methods

Feedback