get_rdn
Use the get_rdn command to specify an LDAP path using a distinguished name (DN) and return the relative distinguished name. This command returns only the first element of the supplied distinguished name.
Zone Type
Not applicable
Syntax
get_rdn DN
Abbreviation
grdn
Options
This command takes no options.
Arguments
This command takes the following argument:
| Argument | Type | Description |
|---|---|---|
| DN | string | Required. Specifies a distinguished name. |
Return Value
This command returns the first element of the supplied distinguished name.
Examples
get_rdn CN=global,CN=Zones,CN=Acme,DC=acme,DC=com
This example returns: CN=global
Related Commands
The following command performs actions related to this command:
get_parent_dnreturns the parent distinguished name of a specified LDAP path.