Previous Topic: QS Function--Retrieve Items from a Query String

Next Topic: RELATIONDN Function--Compare Two Distinguished Names

RDN Function--Retrieve First Component of LDAP DN

The RDN function returns the first component of the specified LDAP Distinguished Name (DN). If the optional Boolean argument is TRUE (the default), the attribute name is removed and only the value is returned.

If the specified DN is invalid, a blank string is returned. This function does not call any LDAP server.

Syntax

The RDN function has the following format:

RDN(DN_string[, remove_name])

Parameters

The RDN function accepts the following parameters:

DN_string (string)

LDAP Distinguished Name

remove_name

(Optional) When set to TRUE (the default), the attribute name is removed from the returned string. When set to FALSE, the attribute is included in the returned string.

Return Value

The RDN function returns a string.

Remarks

LDAP Only: Yes

Example

Return_value=RDN("uid=juan,o=NDS.com")
Return_value="juan"

Return_value=RDN("uid=juan,o=NDS.com", TRUE)
Return_value="juan"

Return_value=RDN("uid=juan,o=NDS.com", FALSE)
Return_value="uid=juan"

More information:

COMMONDN Function--Find a Common Root

EXPLODEDN Function--Convert LDAP DN to Set

PARENTDN Function--Retrieve Parent in LDAP Tree

RELATIONDN Function--Compare Two Distinguished Names


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