[Date Prev][Date Next]
Re: Schema violations not caught (ITS#398)
At 08:32 PM 12/14/99 GMT, firstname.lastname@example.org wrote:
>Full_Name: Christopher DuPuis
>Version: 1.2.7 and 1.2.8
>OS: Solaris 2.6 (both x86 and Sparc)
>Submission from: (NULL) (18.104.22.168)
>It is possible to add badly formed entries using either ldif2ldbm
ldif2ldbm doesn't do any schema checks. It's a bulk loader.
> or ldapadd,
ldapadd should do schema checks (if enabled).
>regardless of whether or not "schemacheck" is set to "on" or "off".
>In slapd.conf, I changed schemacheck to "on", changed the suffix to "dc=syntax,
>and changed rootDN to "cn=manager, dc=syntax, dc=com".
>Then, I used ldif2ldbm to load the following LDIF into the directory:
>dn: dc=syntax, dc=com
>dn: cn=blargfoo, dc=syntax, dc=com
>The second entry should cause an error, since I am using only the default oc and
>However, this succeeded. ldapsearch shows that both objects are in the
>I can also add "cn=blargfoo, dc=syntax, dc=com", as above, to a running
>directory using ldapadd.
Retest with fresh database in which all entries are added using
ldapadd(1) (as outlined in the Quick Start Guide).
Kurt D. Zeilenga <email@example.com>
Net Boolean Incorporated <http://www.boolean.net/>