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.
The RDN function has the following format:
RDN(DN_string[, remove_name])
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.
The RDN function returns a string.
LDAP Only: Yes
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"
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |