search cancel

Can I search for and extract the schema that is loaded by a DSA?

book

Article ID: 54046

calendar_today

Updated On:

Products

CA Directory CA Security Command Center CA Data Protection (DataMinder) CA User Activity Reporting

Issue/Introduction

Description:

Yes, you can. By querying the rootDSE schema object, you can list the schema that a DSA has loaded.

Solution:

For CA Directory r12.0 SP1

Use the following command to query a DSA to list the running schema:

dxsearch -h {hostname|IPaddress} -p {TCP Port} -b "cn=schema" -s base "(objectclass=*)" attributeTypes objectClasses ldapSyntaxes matchingRules

The Resulting Output

The output from the dxsearch command will look like the below. Your output might be larger as it is dependant upon the amount of schema that your DSA has loaded.

# extended LDIF
#
# LDAPv3
# base <cn=schema> with scope baseObject
# filter: (objectclass=*)
# requesting: attributeTypes objectClasses ldapSyntaxes matchingRules 
#
 
# schema
dn: cn=schema
cn: schema
attributeTypes: ( 1.3.6.1.4.1.3327.6.2 NAME 'dxEntryCount' SYNTAX 1.3.6.1.4.1.
 1466.115.121.1.27 NO-USER-MODIFICATION )
attributeTypes: ( 1.3.6.1.4.1.3327.6.5 NAME 'dxDynamicAccess' EQUALITY caseIgn
 oreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
attributeTypes: ( 1.3.6.1.4.1.3327.6.19 NAME 'dxAttrRdnValue' SYNTAX 1.3.6.1.4
 .1.1466.115.121.1.12 SINGLE-VALUE NO-USER-MODIFICATION )
objectClasses: ( 2.5.6.10 NAME 'residentialPerson' SUP ( person ) STRUCTURAL M
 UST ( l ) MAY ( st $ street $ physicalDeliveryOfficeName $ postalAddress $ po
 stalCode $ postOfficeBox $ street $ preferredDeliveryMethod $ facsimileTeleph
 oneNumber $ internationaliSDNNumber $ telephoneNumber $ teletexTerminalIdenti
 fier $ telexNumber $ preferredDeliveryMethod $ destinationIndicator $ registe
 redAddress $ x121Address $ businessCategory ) )
objectClasses: ( 2.5.6.11 NAME 'applicationProcess' SUP ( top ) STRUCTURAL MUS
 T ( cn ) MAY ( description $ l $ ou $ seeAlso ) )
objectClasses: ( 2.5.6.12 NAME 'applicationEntity' SUP ( top ) STRUCTURAL MUST
  ( cn $ presentationAddress ) MAY ( description $ l $ o $ ou $ seeAlso $ supp
 ortedApplicationContext ) )
ldapSyntaxes: ( 1.3.6.1.4.1.1466.115.121.1.4 DESC 'Audio' )
ldapSyntaxes: ( 1.3.6.1.4.1.1466.115.121.1.5 DESC 'Binary' )
ldapSyntaxes: ( 1.3.6.1.4.1.1466.115.121.1.7 DESC 'Boolean' )
# search result
search: 2
result: 0 Success
 
# numResponses: 2
# numEntries: 1

Environment

Release:
Component: ETRDIR