ok, after a lot of hours, i think i have a workaround....
it seems, that some parts of the syntax of the ldap.ldif file, created by ebox, are wrong.
i had to delete 3 user entries in the ldif, before it worked.
the export of one of the passwords (only numbers) failed too. instead of the password, ebox exported the hash.
my scenario:i ported an ebox from ubuntu 8.04 32bit to ubuntu 8.04 64bit, with 12 users and some network shares.
i have installed "
ebox-samba" with his dependencies.
as the configuration restore failed, i got a little desperated, so i tried the 32bit version again, because i thought "maybe there are 2 different versions of ldap in 32bit and 64bit" but it wasn't - the restore failed too.
so i got a nice weekend to get the server running again...
At first, it's the ldif file, created by ebox causes the problems.
its a "try and error" routine, to find out, whats wrong in the ldif file.
you have to pass the next following steps until
"slapadd -l" if slapadd tells you something like
"error line xxx"
you must delete this entry in the ldif file (the whole section of the user, not only the line)
i also deleted the first entry in the ldif file:
dn: dc=ebox
objectClass: top
objectClass: dcObject
objectClass: organization
o: warp
dc: ebox
structuralObjectClass: organization
entryUUID: 9a79842c-088d-102d-8807-35d6366187c8
creatorsName: cn=admin,dc=ebox
createTimestamp: 20080827141010Z
entryCSN: 20080827141010.204442Z#000000#000#000000
modifiersName: cn=admin,dc=ebox
modifyTimestamp: 20080827141010Z
after restoring ebox you must add the deleted users by hand....
you find the ldif file in the tar archive in files.tgz -> users.bakthere is also a list of backuped modules in the tar archive under "modules"if your ldif file seems to be ok, it's a good idea to setup the machine again (FIRST, SAVE THE FILE TO ANOTHER COMPUTER!!!)
here is the workaround (i had a fresh ubuntu 8.04 64bit):i installed "ebox-samba"
aptitude install ebox-samba
i installed
phpldapadmin to check the entries in ldap and delete it, if something went wrong
aptitude install phpldapadmin
i found an interesting article in the ebox trac, what to do, when ebox restore fails:
http://trac.ebox-platform.com/wiki/Document/HowTo/WhatToDoWhenRestoringABackupFailsstop the slapd
/etc/init.d/slapd stop
now, use the cleaned up ldif file and restore the users, groups and computers to ldap
slapadd -l file.ldif
start the slapd again
/etc/init.d/slapd start
then you have to restore the modules except the modules "users"
in my case i restored:
/usr/share/ebox/ebox-restore-backup --module sysinfo --module network --module samba --module objects --module apache --module services --module global --module events eboxbackup.tar
now check your entries with phpldapadmin (eg: under Computers the sambaNTpassword)
http://yourserver/phpldapadmin
you will find the password for ldap in
/etc/ldap/slapd.conf
and look for the entry
rootpw
copy and paste the password to your phpldapadmin login.
if there are some problems delete with phpldapadmin ALL entries, except of
"dc=ebox"and do the following steps again:
stop the slapd
/etc/init.d/slapd stop
now, use the cleaned up ldif file and restore the users, groups and computers to ldap
slapadd -l file.ldif
start the slapd again
/etc/init.d/slapd start
so, thats it!
i hope this can help somebody else....