Does Open Directory Archive/Restore or slapconfig backupdb/restoredb reconstructs the OD databases?
I am having occasional issue when I can't do a network login because OD / Password Service complains:
-[AuthDBFile getPasswordRec:putItHere:unObfuscate:]: user with slot XXXXX not found. Result: -5 Timed out
pwsf_CopySearchBase: ldap_search_ext_s returned -5 Timed out
pwsf_isMember: searchbase not found
If I wait for anywhere from a few minutes to less than half-an-hour, it will resolve itself, or if I am impatient, I just toggle off and then on the Directory services. I have tried "db_recover" both "authdata" and "openldap-data" directories but it doesn't seem to work. Also, slapd -Tt doesn't report any data corruption on the databases.
So I am thinking of doing a Open Directory Archive/Restore or slapconfig backupdb/restoredb on the OD databases. My question is during the Restore phase, does the OD databases get reconstructed record-by-record, or it just simply a whole file restore? Also, do I need to do a slapconfig destroyldapserver before the Restore? Will the Restore completely restore all the settings correctly for all server services (e.g. Certificates, Mail, Web, etc.) to function normally, assuming of course there is no data corruption?
Mac mini, OS X Server, OS X 10.10.5 / OS X Server 4.1.5