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=Centrify,DC=acme,DC=com

This example returns: CN=global

Related commands

The following command performs actions related to this command:

  • get_parent_dn returns the parent distinguished name of a specified LDAP path.