Previous Topic: CENTER Function--Pad a Source String

Next Topic: COUNT Function--Count the Elements in a Set

COMMONDN Function--Find a Common Root

The COMMONDN function returns the common root of two LDAP distinguished names (DNs) without calling an LDAP server.

Syntax

The COMMONDN function has the following format:

COMMONDN(ldapdn1, ldapdn2)

Parameters

The COMMONDN function accepts the following parameters:

ldapdn1 (string)

Specifies an LDAP distinguished name (DN).

ldapdn2 (string)

Specifies an LDAP distinguished name (DN).

Note: If either ldapdn1 or ldapdn2 is not a valid LDAP DN or if the two DNs do not share a common root, the function returns an empty string. An LDAP DN is not case-sensitive.

Return Value

The COMMONDN function returns a string.

Remarks

LDAP Only: Yes

Example

Return_value=COMMONDN('uid=Vincent,o=NDS.com', 'ou=People,o=nds.com')
Return_value='o=NDS.com'

More information:

EXPLODEDN Function--Convert LDAP DN to Set

PARENTDN Function--Retrieve Parent in LDAP Tree

RDN Function--Retrieve First Component of LDAP DN

RELATIONDN Function--Compare Two Distinguished Names


Copyright © 2010 CA. All rights reserved. Email CA about this topic