Page created: 6 Nov 2019
|
Page updated: 25 Mar 2020
| 1 min read
8.0 Product PingDirectory Product documentation Content Type Administration User task IT Administrator Administrator Audience Software Deployment Method LDAP Standards, specifications, and protocols Directory Capability
-
Create an LDIF file with the new attribute definition using a text editor. Save
the file as myschema.ldif.
dn: cn=schema changetype: modify add: attributeTypes attributeTypes: ( contractorStatus-OID NAME 'contractorStatus' EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE USAGE userApplications X-ALLOWED-VALUES ’Y’ ’N’ ’y’ ’n’ X-ORIGIN 'PingDirectory Server Example' )
-
Use ldapmodify to add the attribute.
$ bin/ldapmodify --filename myschema.ldif
-
Verify the addition by displaying the attribute using
ldapsearch.
$ bin/ldapsearch --baseDN cn=schema --searchScope base \ --dontwrap "(objectclass=*)" attributeTypes | grep 'contractorStatus'
-
You can view the custom schema file at
<server-root>/config/schema/99-user.ldif. You should
see the following:
dn: cn=schema objectClass: top objectClass: ldapSubentry objectClass: subschema cn: schema attributeTypes: ( contractorStatus-OID NAME 'contractorStatus' EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE USAGE userApplications X-ORIGIN 'PingDirectory Server Example' )