get_parent_dn

Use the get_parent_dn command to specify an LDAP path using a distinguished name (DN) and return the parent of the path. This command removes the first element from the distinguished name and returns the rest of the DN.

Zone type

Not applicable

Syntax

get_parent_dn DN

Abbreviation

gpd

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 a distinguished name that is the parent of the supplied distinguished name.

Examples

get_parent_dn CN=global,CN=Zones,CN=Centrify,DC=acme,DC=com

This example returns: CN=Zones,CN=Centrify,DC=acme,DC=com

Related commands

The following command performs actions related to this command:

  • get_rdn returns the relative distinguished name of a specified LDAP path.