Under certain circumstances, a replica that you're trying to create may turn back to Stand Alone, or you see errors in the /Library/Logs/slapconfig.log on the replica, such as:
Authentication failed error is -14098
or
GetReplicaSetup = -14103
This can happen after you set a computer from replica, to Stand Alone, then back to replica. To change the replicas back to Stand Alone and clean up the databases, follow the steps below. All commands run from the Terminal must be as root.
NeST -stoppasswordserver mv /var/db/authserver /var/db/authserver.old mv /var/db/krb5kdc /var/db/krb5kdc.old mv /etc/krb5.keytab /etc/krb5.keytab.old mv /Library/Preferences/edu.mit.Kerberos /Library/Preferences/edu.mit.Kerberos.old
cp /var/db/authserver/authserverreplicas /var/db/authserver/authserverreplicas.backup
NeST -stoppasswordserver
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>ID</key> <string>BF0AB54BD2C8D84CE5BC4DFC4D726762</string> <key>Parent</key> <dict> <key>DNS</key> <string>ehsodm.eastonsd.org</string> <key>IDRangeBegin</key> <string>0x000000000000000000000000000010ea</string> <key>IDRangeEnd</key> <string>0x000000000000000000000000000012de</string> <key>IP</key> <string>10.90.10.20</string> <key>LastSyncDate</key> <date>2005-08-22T04:00:57Z</date> <key>ReplicaPolicy</key> <string>SyncAnytime</string> </dict> <key>Replicas</key> <array> <dict> <key>IDRangeBegin</key> <string>0x000000000000000000000000000012f2</string> <key>IDRangeEnd</key> <string>0x000000000000000000000000000014e6</string> <key>IP</key> <string>10.90.10.21</string> <key>LastSyncDate</key> <date>2005-08-22T04:00:57Z</date> <key>LastSyncFailedAttempt</key> <date>2005-06-14T01:41:17Z</date> <key>ReplicaName</key> <string>Replica1</string> </dict> </array> <array> <dict> <key>IDRangeBegin</key> <string>0x000000000000000000000000000014e8</string> <key>IDRangeEnd</key> <string>0x000000000000000000000000000016d6</string> <key>IP</key> <string>10.90.10.24</string> <key>LastSyncDate</key> <date>2005-08-22T04:00:57Z</date> <key>LastSyncFailedAttempt</key> <date>2005-06-14T01:41:17Z</date> <key>ReplicaName</key> <string>Replica2</string> </dict> </array> <key>Status</key> <string>AllowReplication</string> </dict> </plist>
NeST -startpasswordserver
more /var/db/authserver/authserverreplicasIf there is an issue, use the /var/db/authserver/authserverreplicas.backup file and repeat steps 16 to 18. Recheck.