-
All replies
-
Helpful answers
-
-
Jun 11, 2015 12:29 PM in response to TheLostLibraryby MarkyMarkQuebec,Open directory now starting just fine and all is good but I lost all my users in the process ? I did:
sudo launchctl unload /System/LIbrary/LaunchDaemons/org.openldap.slapd.plist
diskutil repairPermissions /
sudo cp /var/db/openldap/authdata/id2entry.bdb /var/db/openldap/authdata/id2entry.bdb.backup
sudo db_recover -cv -h /var/db/openldap/openldap-data/
sudo /usr/libexec/slapd -Tt
sudo db_recover -cv -h /var/db/openldap/authdata/
sudo /usr/libexec/slapd -Tt
sudo launchctl load /System/LIbrary/LaunchDaemons/org.openldap.slapd.plist
Can I retrieve my users and profiles ?
-
Jul 20, 2015 10:37 PM in response to francisfromhavertownby young.m,Don’t use launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist to stop/start LDAP server, use slapconfig -stopldapserver or -startldapserver instead.
Don’t use diskutil repairPermissions / repair disk permissions where server.app is running on. It will mess up your server permissions. diskutil repairPermissions / is only run on a systems without Server.app installed.
-----
sudo slapconfig -stopldapserver
db_recover -cv -h /var/db/openldap/authdata/
sudo /usr/libexec/slapd -Tt
if error
db_recover -cv -h /var/db/openldap/openldap-data/
sudo /usr/libexec/slapd -Tt
sudo slapconfig -startldapserver
-
Aug 27, 2015 12:43 AM in response to neocodesoftwareby GSVNotInventedHere,To neocodesoftware:
Thanks very much.
This instruction set fixed my OD database after a Server and OS upgrade from:
OS 10.10.3 -> 10.10.5
Server 4.0.3 -> 4.1.5
Aug 2015
-
Oct 20, 2015 3:42 AM in response to TheLostLibraryby Currawong,Though "Repair permissions" doesn't exist in 10.11, this worked after cloning a server drive to a new drive caused Open Directory to screw up.
-
May 13, 2016 6:21 AM in response to neocodesoftwareby gilbert,The recovering of the database did not work for me. So I replaced step 3 - step 6 by just restoring the whole database from a backup I did when configuring my server.
so, instead of step 3 - step 6, try :
sudo rm -rf /var/db/openldap
sudo cp -pR /Volumes/YourBackupVolume/var/db/openldap /var/db
after doing this, step 7 & 8 went smoothly and everything worked again.
gilbert