Error creating Open Directory Replica OS X 10.8.5

Nolf's picture
Forums: 

Good afternoon. Need help in creating Open Directory Replica. At the moment there are 2 servers (os x 10.8.5) Some server 10.0.0.1 master OD, the second 10.0.0.2 want to set up Open Directory Replica.

slapconfig -ver (master od):
[code]admin $ sudo slapconfig-ver
2013-10-11 08:43:34 +0000 command: / usr / libexec / slapd-T cat-c-f / etc / openldap / slapd.conf-s ou = macosxodconfig, cn = config, dc = test249, dc = home
2013-10-11 08:43:34 +0000 Error execing slapcat: slapcat: slap_init no backend for "ou = macosxodconfig, cn = config, dc = test249, dc = home"
LDAP Setup Tool (slapconfig), Apple, Inc., Version 1.2/code
slapconfig-ver ( future replica od):
[code]admin $ sudo slapconfig -ver
2013-10-11 08:43:34 +0000 command: / usr / libexec / slapd-T cat-c-f / etc / openldap / slapd.conf-s ou = macosxodconfig, cn = config, dc = test249, dc = home
2013-10-11 08:43:34 +0000 Error execing slapcat: slapcat: slap_init no backend for "ou = macosxodconfig, cn = config, dc = test249, dc = home"
LDAP Setup Tool (slapconfig), Apple, Inc., Version 1.2
/code
changeip-chackhostname (master od):
[code]Primary address = 10.0.0.1

Current HostName = tech-p**.pr***
DNS HostName = tech-p**.pr***

The names match. There is nothing to change.
dirserv: success = "success"
/code
changeip-chackhostname ( future replica od):
[code]Primary address = 10.0.0.2

Current HostName = tech-s**.pr***
DNS HostName = tech-s**.pr***

The names match. There is nothing to change.
dirserv: success = "success"/code

On the master node configuration was no problem but when I tried to connect a replica error:
[code]admin $ sudo / usr / sbin / slapconfig-preflightreplica tech-p**.pr***diradmin
master.net Password:
2013-10-11 08:52:06 +0000 NSMutableDictionary * _getRootDSE (const char *): rootDSE not found
2013-10-11 08:52:06 +0000 Error: Unable to determine the master's software version./code

Nolf's picture

Log slapconfig.log

Quote:
2013-10-11 13:44:25 +0000 command: /usr/sbin/sso_util info -r /LDAPv3/ldap://tech-***.pr*** -p
2013-10-11 13:44:27 +0000 command: /usr/sbin/sso_util info -r /LDAPv3/ldap://tech-***.pr*** -p
2013-10-11 13:44:27 +0000 slapconfig -createreplica
2013-10-11 13:44:27 +0000 command: /usr/sbin/sso_util info -r /LDAPv3/ldap://tech-***.pr*** -p
2013-10-11 13:44:28 +0000 1 Creating computer record for replica
2013-10-11 13:44:42 +0000 command: /usr/sbin/slapconfig -delkeychain /LDAPv3/127.0.0.1 tech-***.pr***$
2013-10-11 13:44:42 +0000 slapconfig -delkeychain
2013-10-11 13:44:42 +0000 Added computer password to keychain
2013-10-11 13:44:42 +0000 2 Creating ldap replicator user
2013-10-11 13:44:42 +0000 _ldap_replicator exists from previous replica - migrating
2013-10-11 13:44:42 +0000 NSString *_getReplicatorPasswordWithNode(ODNode *): no syncrepl attribute found in results
2013-10-11 13:44:42 +0000 Unable to get replicator password, recreating replicator
2013-10-11 13:44:45 +0000 ServerID for this replica 7
2013-10-11 13:44:47 +0000 command: /usr/bin/sntp -s time.euro.apple.com.
2013-10-11 13:45:18 +0000 BOOL _syncClockWithSNTP(NSString *): Error invoking sntp -s time.euro.apple.com.
2013-10-11 13:45:18 +0000 on_wire failed for server 17.72.148.52!
on_wire failed for server 17.72.148.53!
2013-10-11 13:45:18 +0000 Error synchronizing clocks with the master.
2013-10-11 13:45:18 +0000 3 Updating local replica configuration
2013-10-11 13:45:18 +0000 4 Gathering replication data from the master
2013-10-11 13:45:18 +0000 5 Copying master database to new replica
2013-10-11 13:45:18 +0000 Removed directory at path /var/db/openldap/openldap-data.
2013-10-11 13:45:18 +0000 Starting LDAP server (slapd)
2013-10-11 13:45:18 +0000 Waiting for slapd to start
2013-10-11 13:45:20 +0000 slapd started
2013-10-11 13:45:20 +0000 Stopping LDAP server (slapd)
2013-10-11 13:45:24 +0000 command: /usr/sbin/slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
2013-10-11 13:45:24 +0000 command: /usr/sbin/slapadd -c -w -l /var/db/openldap/openldap-data/backup.ldif
2013-10-11 13:45:25 +0000 command: /usr/sbin/slapadd -c -w -b cn=authdata -l /var/db/openldap/authdata/authdata.ldif
2013-10-11 13:45:25 +0000
2013-10-11 13:45:25 +0000 525800f5 slapd is running in import mode - only use if importing large data
525800f5 bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
2013-10-11 13:45:25 +0000 6 Starting new replica
2013-10-11 13:45:25 +0000 Starting LDAP server (slapd)
2013-10-11 13:45:25 +0000 Waiting for slapd to start
2013-10-11 13:45:25 +0000 slapd started
2013-10-11 13:45:25 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
2013-10-11 13:45:25 +0000 command: /usr/bin/ldapsearch -x -LLL -H ldapi://%2Fvar%2Frun%2Fldapi -b cn=config -s base olcServerID
2013-10-11 13:45:25 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
2013-10-11 13:45:25 +0000 Starting password server
2013-10-11 13:45:26 +0000 7 Enabling local Kerberos server
2013-10-11 13:45:26 +0000 Configuring Kerberos server, realm is TECH-***.LOCAL
2013-10-11 13:45:26 +0000 command: /usr/sbin/sso_util configure -x -k -r TECH-***.LOCAL -f /LDAPv3/ldapi://%2Fvar%2Frun%2Fldapi -a diradmin -p **** -v 1 all
2013-10-11 13:45:27 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
2013-10-11 13:45:27 +0000 Stopping LDAP server (slapd)
2013-10-11 13:45:28 +0000 Starting LDAP server (slapd)
2013-10-11 13:45:28 +0000 Waiting for slapd to start
2013-10-11 13:45:28 +0000 slapd started
2013-10-11 13:45:28 +0000 8 Enabling syncprov overlay on the replica
2013-10-11 13:45:28 +0000 command: /usr/bin/ldapsearch -x -LLL -H ldapi://%2Fvar%2Frun%2Fldapi -b cn=config objectClass=olcSyncProvConfig dn
2013-10-11 13:45:28 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
2013-10-11 13:45:28 +0000 adding new entry "olcOverlay=syncprov,olcDatabase={1}bdb,cn=config"
2013-10-11 13:45:28 +0000 command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi
2013-10-11 13:45:28 +0000 adding new entry "olcOverlay=syncprov,olcDatabase={2}bdb,cn=config"
2013-10-11 13:45:28 +0000 9 Adding replica to master
2013-10-11 13:45:29 +0000 int _addLDAPReplicaWithNode(ODNode *, NSDictionary *, const char *, const char *, const char *): Cannot retrieve parent ServerID for (tech-***.pr***), exiting
2013-10-11 13:45:29 +0000 Unable to add Replica to parent/master
2013-10-11 13:45:29 +0000 Unable to add Replica to parent/master (error = 73)
2013-10-11 13:45:29 +0000 Deleting Cert Authority related data
2013-10-11 13:45:29 +0000 No intCAIdentity, not removing int CA from keychain
2013-10-11 13:45:29 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertd.plist
2013-10-11 13:45:29 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertd-helper.plist
2013-10-11 13:45:29 +0000 command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertadmin.plist
2013-10-11 13:45:29 +0000 Updating ldapreplicas on primary master
2013-10-11 13:45:39 +0000 ODNode *CopyPrimaryMasterNode(BOOL): Unable to set credentials: 2100 Connection failed to the directory server.
2013-10-11 13:45:39 +0000 Primary master node is nil!
2013-10-11 13:45:39 +0000 Unable to locate ldapreplicas record: 0 (null)
2013-10-11 13:45:39 +0000 Error setting read ldap replicas array: 0 (null)
2013-10-11 13:45:39 +0000 Error setting write ldap replicas array: 0 (null)
2013-10-11 13:45:39 +0000 ODRecord *_getODRecord(ODNode *, NSString *, NSString *, NSArray *): ODNodeRef parameter error
2013-10-11 13:45:39 +0000 int _removeReplicaFromConfigRecord(ODNode *, NSString *): ODRecord not found
2013-10-11 13:45:39 +0000 Error synchronizing ldapreplicas: 0 (null)
2013-10-11 13:45:39 +0000 Removing self from the database
2013-10-11 13:45:39 +0000 Warning: An error occurred while re-enabling GSSAPI.
2013-10-11 13:45:40 +0000 Stopping LDAP server (slapd)
2013-10-11 13:45:44 +0000 Stopping password server
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/__db.001.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/__db.002.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/__db.003.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/__db.004.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/__db.005.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/__db.006.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/altSecurityIdentities.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/apple-config-realname.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/apple-generateduid.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/apple-group-memberguid.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/apple-group-nestedgroup.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/apple-group-realname.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/apple-hwuuid.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/apple-locale-subnets.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/cn.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/DB_CONFIG.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/dn2id.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/entryCSN.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/entryUUID.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/gidNumber.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/givenName.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/id2entry.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/ipHostNumber.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/log.0000000001.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/macAddress.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/memberUid.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/objectClass.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/ou.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/sn.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/uid.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/openldap-data/uidNumber.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/__db.001.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/__db.002.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/__db.003.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/__db.004.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/__db.005.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/__db.006.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/alock.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/authdata.ldif.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/authGUID.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/DB_CONFIG.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/dn2id.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/draft-krbPrincipalAliases.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/draft-krbPrincipalName.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/entryCSN.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/entryUUID.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/id2entry.bdb.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/log.0000000001.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/openldap/authdata/objectClass.bdb.
2013-10-11 13:45:44 +0000 Removed directory at path /var/db/openldap/authdata.
2013-10-11 13:45:44 +0000 Removed file at path /etc/openldap/slapd_macosxserver.conf.
2013-10-11 13:45:44 +0000 Removed file at path /etc/openldap/slapd.conf.
2013-10-11 13:45:44 +0000 Removed file at path /etc/openldap/rootDSE.ldif.
2013-10-11 13:45:44 +0000 Removed file at path /var/db/dslocal/nodes/Default/groups/com.apple.access_dsproxy.plist.
2013-10-11 13:45:44 +0000 Removed directory at path /etc/openldap/slapd.d/cn=config.
2013-10-11 13:45:44 +0000 Removed file at path /etc/openldap/slapd.d/cn=config.ldif.
2013-10-11 13:45:44 +0000 Removed directory at path /etc/openldap/slapd.d.
2013-10-11 13:45:44 +0000 Removed directory at path /etc/openldap/slapd.d.backup/cn=config.
2013-10-11 13:45:44 +0000 Removed file at path /etc/openldap/slapd.d.backup/cn=config.ldif.
2013-10-11 13:45:44 +0000 Removed directory at path /etc/openldap/slapd.d.backup.
2013-10-11 13:45:44 +0000 Stopping password server
2013-10-11 13:45:44 +0000 Removed file at path /etc/ntp_opendirectory.conf.
2013-10-11 13:45:44 +0000 Removed file at path /Library/Preferences/com.apple.openldap.plist./quote