Hello,
While using the archive function in serveradmin (which actually is based on slapconfig -backupdb), and afterwards trying to restore from that archive, I get some errors, the restore seems to be working fine though.
Still, I'd like to know where these errors come from:
As you can see below, first there is this authentication error in hdiutil. Strange, cause it seems to get trough it after all.
hdiutil: attach failed - Authentication error
Second and worse:
at the end I'm getting this error:
2006-03-28 11:55:35 +0200 - Error: command failed with exit code 256: /usr/sbin/slapadd -c -l
while merging the ldap DB
Anyone any ideas?
Thanks
2006-03-28 11:55:27 +0200 - slapconfig -mergedb
2006-03-28 11:55:27 +0200 - command: /usr/bin/hdiutil attach -stdinpass /Archives/budb-20060328.sparseimage -readonly
2006-03-28 11:55:28 +0200 - hdiutil command output:
hdiutil: attach failed - Authentication error
2006-03-28 11:55:28 +0200 - hdiutil command failed with status 1
2006-03-28 11:55:28 +0200 - command: /usr/bin/hdiutil attach -stdinpass /Archives/budb-20060328.sparseimage -readonly
2006-03-28 11:55:30 +0200 - 1 Merging Kerberos database
2006-03-28 11:55:30 +0200 - popen: cd /tmp/slapconfig_restore_stage11204LGMCTH;/usr/bin/tar xzpf /Volumes/ldap_bk/krb5backup.tar.gz, "r"
2006-03-28 11:55:30 +0200 - Copied file from /Volumes/ldap_bk/kdb5dump.bak to /tmp/slapconfig_restore_stage11204LGMCTH/kdb5dump.bak.
2006-03-28 11:55:30 +0200 - command: /usr/sbin/kdb5_util dump -new_mkey_file /tmp/slapconfig_restore_stage11204LGMCTH/var/db/krb5kdc/.k5.LDAP.IDEWE.BE /tmp/slapconfig_restore_stage11204LGMCTH/kdb5backup.bak
2006-03-28 11:55:31 +0200 - Copied directory from /var/db/krb5kdc to /var/db/krb5kdc.pre-merge.
2006-03-28 11:55:31 +0200 - command: /bin/cp /tmp/slapconfig_restore_stage11204LGMCTH/var/db/krb5kdc/.k5.LDAP.IDEWE.BE /var/db/krb5kdc/
2006-03-28 11:55:31 +0200 - command: /usr/sbin/kdb5_util load -update /tmp/slapconfig_restore_stage11204LGMCTH/kdb5dump.bak
2006-03-28 11:55:32 +0200 - command: /usr/sbin/kdb5_util load -update /tmp/slapconfig_restore_stage11204LGMCTH/kdb5backup.bak
2006-03-28 11:55:33 +0200 - 2 Merging Password Server data
2006-03-28 11:55:33 +0200 - command: /usr/sbin/mkpassdb -mergeparent /Volumes/ldap_bk/passwordserver_backup/ /Volumes/ldap_bk/id_omitfile
2006-03-28 11:55:33 +0200 - 3 Merging LDAP database
2006-03-28 11:55:33 +0200 - Stopping LDAP server (slapd)
2006-03-28 11:55:34 +0200 - popen: /usr/sbin/slapadd -c -l /tmp/backup11204.ldif, "w"
2006-03-28 11:55:35 +0200 - Error: command failed with exit code 256: /usr/sbin/slapadd -c -l /tmp/backup11204.ldif
2006-03-28 11:55:35 +0200 - Starting LDAP server (slapd)
2006-03-28 11:55:35 +0200 - command: /usr/bin/hdiutil detach disk4