---
title: Managing name forms
description: Name forms define how entries can be named based on their structural object class.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_manage_name_forms
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_server_administration_guide/pd_ds_manage_name_forms.html
revdate: September 13, 2023
page_aliases: ["pd_ds_name_form_definitions.adoc", "pd_ds_view_name_forms.adoc"]
section_ids:
  name-form-definitions: Name form definitions
  viewing-name-forms: Viewing name forms
  steps: Steps
  example: Example:
---

# Managing name forms

Name forms define how entries can be named based on their structural object class.

Specifically, name forms specify the structural object class you are naming as well as the mutually-exclusive set of required and allowed attributes to form the relative distinguished names (RDNs) of the entries. Each structural object class can be associated with at most one name form definition.

## Name form definitions

Name forms can be specified with existing schema components and don't require additional code for implementation.

The following formal specification for attribute types is provided in [RFC 4512](https://tools.ietf.org/html/rfc4512), section 4.1.7.2.

```
NameFormDescription = "(" wsp
numericoid                  ; object identifier
[ sp "NAME" sp qdescrs ]    ; short name descriptor
[ sp "DESC" sp qdstring ]   ; description
[ sp "OBSOLETE" ]           ; not active
sp "OC" sp oid              ; structural object class
sp "MUST" SP oids           ; attribute types
[ sp "MAY" sp oids ]        ; attribute types
extensions wsp ")"          ; extensions followed by a white space and ")"
```

The following extensions are specific to the PingDirectory server and aren't defined in RFC 4512.

```
extensions = /
"X-ORIGIN" /             ; Specifies where the attribute type is defined
"X-SCHEMA-FILE" /        ; Specifies which schema file contains the definition
"X-READ-ONLY"            ; True or False. Specifies if the file that contains
                         ;   the schema element is marked as read-only in
                         ;   the server configuration.
```

## Viewing name forms

### Steps

* To view the `nameForms` attribute, run `ldapsearch`.

  |   |                                                                                                                                                                    |
  | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  |   | `nameForms` is a multi-valued operational attribute that publishes the definitions on the PingDirectory server. The attribute is stored in the subschema subentry. |

  #### Example:

  ```shell
  $ bin/ldapsearch --baseDN cn=schema --searchScope base \
  "(objectclass=*)" nameForms
  ```
