9.4. Turning Schema Checking On and Off

9.4. Turning Schema Checking On and Off

When schema checking is on, the Directory Server ensures three things:

Schema checking is turned on by default in the Directory Server, and the Directory Server should always run with schema checking turned on. The only situation where is may be beneficial to turn schema checking off is to accelerate LDAP import operations. However, there is a risk of importing entries that do not conform to the schema. Consequently, it is impossible to search for these entries.

To turn schema checking on and off, do the following:

  1. In the Directory Server Console, select the Configuration tab.

  2. Highlight the server icon at the top of the navigation tree, then select the Settings tab in the right pane.

  3. To enable schema checking, check the Enable Schema Checking checkbox; clear it to turn off schema checking.

  4. Click Save.

To turn schema checking on and off using LDAP commands, edit the value of the nsslapd-schemacheck attribute. For example:

ldapmodify -h myserver -p 389 -D "cn=directory manager" -w secretpwd

dn: cn=config 
changetype: modify 
replace: nsslapd-schemacheck: on 
nsslapd-schemacheck: off

For information, see the Directory Server Configuration, Command, and File Reference.


Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.