[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapadd problems with 2.1.16

--On Wednesday, March 26, 2003 9:49 AM -0500 Diego Julian Remolina <dijuremo@math.gatech.edu> wrote:


I updated from openldap 2.1.12 to 2.1.16 and now when I try to create a
database with slapadd I get the following error:

hilbert:/etc/openldap/ldiff # which slapadd
hilbert:/etc/openldap/ldiff # ls -l /usr/local/sbin/slapadd
lrwxrwxrwx   1 root     root          37 Mar 25 13:33
/usr/local/sbin/slapadd -> ../encap/openldap-2.1.16/sbin/slapadd
hilbert:/etc/openldap/ldiff # slapadd -l entries.ldif
slapadd: dn="dc=math,dc=gatech,dc=edu" (line=8): (16) value of naming
attribute 'dc' is not present in entry
hilbert:/etc/openldap/ldiff #

My entries.ldiff file is:
hilbert:/etc/openldap/ldiff # cat entries.ldif
# School of Mathematics Ldap Entry
dn: dc=math,dc=gatech,dc=edu
objectClass: dcObject
objectClass: organization
dc: math.gatech
o: School of Mathematics - Georgia Institute of Technology
description: School of Mathematics - Georgia Tech LDAP Database

# Administrative user for SoM Ldap database
dn: cn=Manager,dc=math,dc=gatech,dc=edu
objectClass: organizationalRole
cn: Manager
description: SuperUser for Ldap Services

But if I use slapadd from 2.1.12 then:
hilbert:/etc/openldap/ldiff #
/usr/local/encap/openldap-2.1.12/sbin/slapadd -l entries.ldif
hilbert:/etc/openldap/ldiff #

no errors..........

The database created with slapadd from 2.1.16 does not have any
information while the one created with slapadd 2.1.12 has all the entries.

Any ideas?

Sure, slapadd on 2.1.16 is smarter and does better error checking. Your dc attribute does not match the name you declared (dc=math.gatech != dc=math).

I ran into the same issue after upgrading to 2.1.14, caught a typo we had in one of our files.


-- Quanah Gibson-Mount Senior Systems Administrator ITSS/TSS/Computing Systems Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html