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

Can't import ldif file



Hello - apologies if this is a dumb question, I am an LDAP newbie.  I have
an LDAP server on another machine and I need to duplicate it, but I am
having trouble importing the ldif file.

I do a dump of the LDAP data with this command:

nice slapcat > /home/upadmin/uportal_ldap_backups/`date
+%m%d%Y_%H%M`_ldap_backup.ldif


I move the resulting ldif file to my other server and test the import:

slapadd -v -u -c -f /usr/local/etc/openldap/slapd.conf -l
/root/08052009_0647_ldap_backup.ldif

The output seems good - I get:

added: "dc=sbceoportal,dc=org"
added: "ou=Users,dc=sbceoportal,dc=org"
added: "ou=Groups,dc=sbceoportal,dc=org"
added: "ou=System,dc=sbceoportal,dc=org"
added: "cn=LDAP Admins,ou=Groups,dc=sbceoportal,dc=org"
.#################### 100.00% eta   none elapsed            none fast!

Then I run the command to do the real import:

slapadd -v -f /usr/local/etc/openldap/slapd.conf -l
/root/08052009_0647_ldap_backup.ldif

And the import hangs on the first record.  This is the output I get:

bdb_monitor_db_open: monitoring disabled; configure monitor database to
enable
added: "dc=sbceoportal,dc=org" (00000001)


And it just seems to sit there and never finish.  Anyone have any idea what
is going on or anything I can do to troubleshoot this?

Thanks so much!
Kristen

PS
This is a snippet from the top of the ldif file I am using to import:

dn: dc=sbceoportal,dc=org
description: Sbceoportal.org - the greatest Portal ever!
dc: sbceoportal
o: Sbceoportal.org
objectClass: top
objectClass: dcObject
objectClass: organization
structuralObjectClass: organization
entryUUID: e15a62b4-0264-102d-91f5-e7cc24931947
creatorsName: cn=Manager,dc=sbceoportal,dc=org
createTimestamp: 20080819180332Z
entryCSN: 20080819180332Z#000000#00#000000
modifiersName: cn=Manager,dc=sbceoportal,dc=org
modifyTimestamp: 20080819180332Z

dn: ou=Users,dc=sbceoportal,dc=org
ou: Users
description: Example.Com Users
objectClass: organizationalUnit
structuralObjectClass: organizationalUnit
entryUUID: e16778d2-0264-102d-91f6-e7cc24931947
creatorsName: cn=Manager,dc=sbceoportal,dc=org
createTimestamp: 20080819180332Z
entryCSN: 20080819180332Z#000001#00#000000
modifiersName: cn=Manager,dc=sbceoportal,dc=org
modifyTimestamp: 20080819180332Z

dn: ou=Groups,dc=sbceoportal,dc=org
ou: Groups
description: Example.Com Groups
objectClass: organizationalUnit
structuralObjectClass: organizationalUnit
entryUUID: e16a9990-0264-102d-91f7-e7cc24931947
creatorsName: cn=Manager,dc=sbceoportal,dc=org
createTimestamp: 20080819180332Z
entryCSN: 20080819180332Z#000002#00#000000
modifiersName: cn=Manager,dc=sbceoportal,dc=org
modifyTimestamp: 20080819180332Z


--
Kristen Walker

Digital Media Resources Developer
Instructional Media Services
Santa Barbara County Education Office
4400 Cathedral Oaks Road
P.O. Box 6307
Santa Barbara, CA 93160-6307
(805)964-4711 ext. 5244/FAX (805)683-3597
kwalker@sbceo.org
http://www.sbceoportal.org