Giffaux.com

  • Home
  • À propos
  • Famille
  • Plongée
  • Voyage
  • Citations favorites

Monthly Archives: janvier 2016

Repair MacOS X server Open Directory Yosemite

Publié le 9 janvier 2016 par Olivier Publié dans Non classé

I had to do a hard reboot and then the open directory wouldn’t start. So the network users couldn’t connect to the server. Based on this page I used the following instructions to restore de database

First login as root using su or add sudo before each command

1- Verify the problème

/usr/libexec/slapd -Tt

2- Try to stop LDAP on Open Directory Master server

launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist

3- Repair disk permissions to make sure everything is ok

diskutil repairPermissions /

4- Backup the database

cp /var/db/openldap/authdata/id2entry.bdb /var/db/openldap/authdata/id2entry.bdb.backup

5- Repair the database

db_recover -cv -h /var/db/openldap/openldap-data/

6- Repairing again to make sure it’s ok

/usr/libexec/slapd -Tt

7- Restart the Open Directory service

launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.plist

 

Problem solved:

Capture d’écran 2016-01-09 à 18.08.30

 

 

 

 

 

Articles récents

  • Protégé : Mount Rushmore 1995
  • Protégé : Rockies Mountains 1995
  • Protégé : Great Salt Lake 1995
  • Protégé : Zion 1995
  • Protégé : Lake Powell 1995
janvier 2016
L M M J V S D
 123
45678910
11121314151617
18192021222324
25262728293031
« Fév   Mar »

Archives

  • août 2020
  • mars 2018
  • janvier 2016
  • février 2015
  • juillet 2011
  • janvier 2010
  • novembre 2009
CyberChimps ©2023