This discussion is archived
8604 Views 4 Replies Latest reply: Oct 3, 2008 8:25 PM by davidh
Currently Being ModeratedSep 29, 2008 9:10 AM (in response to whistl)Hello,
today we had the same problem on our server. You saved our life. Thank you very much!
haukeMac OS X (10.5.5)
Currently Being ModeratedOct 3, 2008 12:13 PM (in response to whistl)I have the same problem.
With your tip the server works fine.
Thanks robMac OS X (10.5.5)
Currently Being ModeratedOct 3, 2008 1:25 PM (in response to whistl)Here's a backup script for ldap that also backs up the kerberos portion of open directory. it'ss the command line equivalent of the open directory backup in Server Admin, so you can restore the files through the GUI as well:
echo "dirserv:backupArchiveParams:archivePassword = $PASSWD" > $od_backup
echo "dirserv:backupArchiveParams:archivePath = $PATH/od-$DATE" >> $od_backup
echo "dirserv:command = backupArchive" >> $od_backup
echo "" >> $od_backup
/usr/sbin/serveradmin command < $od_backup
Currently Being ModeratedOct 3, 2008 8:25 PM (in response to fcghstdfshdf)An excellent tip and hopefully helpful to a few.
However, it's worth noting that - depending on circumstances - a repair is not going to work and a restore from backup will be necessary.
"service org.openldap.slapd stop" is handy but rather mute/non-verbose.
I strongly recommend using
(sudo) launchctl unload /System/Library/LaunchDaemons/<name of plist for service>
(without the actual .plist at the end, similar to "service" ).
unload/load , as the case may be.
There is more information, discussion and other OD backup script options to be found at
Finally, OpenDirectory is patently not just OpenLDAP, as evidenced by your most recent post above (re: Kerberos). Yes, OD include Apple's implementation of OpenLDAP but that's not all it is.
http://developer.apple.com/DOCUMENTATION/Networking/Conceptual/OpenDir_Plugin/Introduction/chapter_1_section1.htmlMac OS X (10.5.4), ACMT, ACTC (10.2) ACSA (10.4)