[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slapcat and slapadd
- To: openldap-technical@openldap.org
- Subject: slapcat and slapadd
- From: Andreas Laesser <andreas.laesser@tugraz.at>
- Date: Fri, 20 Jan 2012 11:21:09 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tugraz.at; s=mailrelay; t=1327054877; bh=An6Z+SorQ+mvIoNolczbnuDwhrD3Yc96juJF9UFpd5s=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=cqNCoXzAujpuhXq/gvTqH3fw379hWOvda1bv4XYBMeWfU4zf0owBWNvu4fEuNomBv UT9ASY+HaVdGr4uH1ZUt3prI0pD2Oh9LerqA0tvwZDaBlyaVYKbCnD+CMKkGGJzqmM wu8sgfivLWgcKcaJkw+3aavrp1Ram2oNKsYBN14g=
- User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi @all,
I've a problem doing a slapcat and adding the dump again to another
(empty) ldap server...
doing a slapcat on my "master" gives me a file with:
<snip>
root@foobar /etc/ldap # head -100 ldapFullCat.ldif
dn:
objectClass: top
objectClass: dcObject
objectClass: organization
o: spsc.tugraz.at
dc: spsc
structuralObjectClass: organization
entryUUID: 292ab862-cb04-1030-9e71-dd10406d8585
creatorsName: cn=admin,dc=spsc,dc=tugraz,dc=at
createTimestamp: 20120104094228Z
entryCSN: 20120104094228.808452Z#000000#000#000000
modifiersName: cn=admin,dc=spsc,dc=tugraz,dc=at
modifyTimestamp: 20120104094228Z
dn:
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword:: e1NTSEF9WlQ5UmdyUFpJVDVuM3ByS0ErM3M5TFplU0RHcnFMN3g=
structuralObjectClass: organizationalRole
entryUUID: 292b04fc-cb04-1030-9e72-dd10406d8585
creatorsName: cn=admin,dc=spsc,dc=tugraz,dc=at
createTimestamp: 20120104094228Z
entryCSN: 20120104094228.810430Z#000000#000#000000
modifiersName: cn=admin,dc=spsc,dc=tugraz,dc=at
modifyTimestamp: 20120104094228Z
dn: dc=SPSC,dc=TUGRAZ,dc=AT
dc: SPSC
objectClass: dcObject
objectClass: organizationalUnit
ou: SPSC
structuralObjectClass: organizationalUnit
entryUUID: ffae9024-9a0c-1028-8a8f-881a13d527c4
creatorsName: cn=admin,dc=SPSC,dc=TUGRAZ,dc=AT
createTimestamp: 20040913201236Z
entryCSN: 20040913201236.000000Z#000001#000#000000
modifiersName: cn=admin,dc=SPSC,dc=TUGRAZ,dc=AT
modifyTimestamp: 20040913201236Z
contextCSN: 20120119135137.038345Z#000000#000#000000
contextCSN: 20120120100955.690312Z#000000#001#000000
dn: ou=people,dc=SPSC,dc=TUGRAZ,dc=AT
ou: people
objectClass: organizationalUnit
structuralObjectClass: organizationalUnit
entryUUID: ffc2d0b6-9a0c-1028-8a90-881a13d527c4
creatorsName: cn=admin,dc=SPSC,dc=TUGRAZ,dc=AT
createTimestamp: 20040913201236Z
entryCSN: 20040913201236.000000Z#000002#000#000000
modifiersName: cn=admin,dc=SPSC,dc=TUGRAZ,dc=AT
modifyTimestamp: 20040913201236Z
....
</snip>
But if I want to add this file at my other server, it gives me:
root@barfoo /etc/ldap # slapadd -l ldapFullCat.ldif -f ./slapd.conf
slapadd: line 1: cannot add entry with empty dn=""
_ 0.02% eta elapsed none spd
3.0 M/s
Closing DB...
Any Ideas? Of course, if I delete the first two entries it works, but
then the ldap didn't work correctly.
thanks and regards
Andreas
- --
=========================================================================
_____________
/ ___________/ Andreas Laesser
/ //_// /____/ Signal Proc.& Speech Communication Lab.
__/ /___/ / __ Graz University of Technology
/___//____//___/ Inffeldgasse 16c/EG | A-8010 Graz | Austria
http://www.spsc.tugraz.at Tel: +43 (0)316 873 -4443 Fax: DW 104439
=========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAk8ZQBUACgkQ1nmbrmNF2lObwQCeKnF+elTztwQCu9DhjbN4eKhB
8nQAn2CuBh2WNyjlTfWZhbzMeh6IFXbg
=xheX
-----END PGP SIGNATURE-----