Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Error creating Open Directory Replica in Mountain Lion

Hi All,


I am encountering problems setting up an Open Directory Replica using the Server.app (2.1.0 (127.18)) in Mountain Lion (10.8.2). I receive the below error when it attempts to create the replica

User uploaded file

User uploaded file


As far as I am aware DNS is set up correctly. Running the terminal command sudo changeip -checkhostname on both the Master (serv-OSXod1) and intended replica (serv-OSXod2) return the result;


Primary address = 130.xx.x.xxx


Current HostName = serv-osxod2.xxx.xx.uk

DNS HostName = serv-osxod2.xxx.xx.uk


The names match. There is nothing to change.

dirserv:success = "success".


Looking at the logs;


26/09/2012 09:12:33.176 Server[220]: An error occurred while configuring serv-OSXod2 as a directory replica:

Error Domain=XSActionErrorDomain Code=-1 "A child action failed" UserInfo=0x7fea7db229a0 {XSActionErrorActionsKey=(

"Creating Open Directory replica"

), NSLocalizedDescription=A child action failed}


Another interesting point is when using the slapconfig command in terminal to preflight a replica I receive the following error;


serv-osxod2:~ ladmin$ sudo /usr/sbin/slapconfig -preflightreplica 130.xx.x.xxx diradmin

Password:

130.xx.x.xxx's Password:

2012-09-26 08:39:31 +0000 NSMutableDictionary *_getRootDSE(const char *): rootDSE not found

2012-09-26 08:39:31 +0000 Error: Unable to determine the master's software version.


Any help would be greatly appreciated, Any more info required just let me know.


Thnaks


Chris

Mac mini, OS X Server

Posted on Sep 26, 2012 1:46 AM

Reply
40 replies

May 14, 2013 1:57 PM in response to robertfromsan bernardino

i ran sudo /usr/sbin/slapconfig -ver on my OD master



2013-05-14 20:51:39 +0000 command: /usr/libexec/slapd -T cat -c -f /etc/openldap/slapd.conf -s ou=macosxodconfig,cn=config,dc=test249,dc=home

2013-05-14 20:51:39 +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



https://discussions.apple.com/thread/4547470?start=0&tstart=0

May 20, 2013 4:24 PM in response to chrisgrave

I have been having this error for a couple days now and finally got my head around it. With a little help from Apple. Turns out Open Directory was corrupted entirely. Also, make sure that the server you want to be the replica isnt bound to the Master via System Prefrences-Users and Groups-Login Options. When you make the replica through Server app it will bind there.


Steps we took to fix:


Export an archive of the Open Directory by opening Server app-Open Directory-Click the cog-Archive Open Directory. Save this somewhere you can access it easily, I simply made a folder on the desktop.


Open work group manager-authenticate as diradmin-select all users in the OD EXCEPT for diradmin. Then click Server-Export, again save somewhere you can get to easily. Then do the same for the groups you have created. Now I think this backups passwords as well but it might not so dont quote me on that one. So it might be a good idea to get a list of all users passwords before you do this next step.


Turn off all services running on the server that require user authentication. You can leave DNS and DHCP running if your server is handling those. But nothing else.


Open Terminal and run: sudo slapconfig -destroyldapserver , enter password and this will destroy your current OD. I also did this on the server intended to be the replica, because it seemed in the process of trying to join as a replica it attempted to write the files but then it failed out. So there was a few files that were left; destroying them is a good idea.


Restart both servers. When the master comes back up. Open Server app and go to Open Directory, turn the service on and select the open to "Restore from Open Directory archive" option (its the last option might not have the wording correct). It should restore without any problem and you will have all your users back.


After the OD is restored highlight the master and click + again. Fill in the appropriate fields.


This took about 10 minutes, if that. And it created the OD replica without any errors. After you verify that the replica went through correctly, you can turn back on all services.


Hope this is the solution for you all as well.

Jun 19, 2013 3:54 PM in response to chrisgrave

Still having a probem here creating a replica. I tried the last fix posted but it does not work for me. In fact now it reports the error right away instead of showing users being sent to the server with a status bar. If anyone has any ideas I would appreciate hearing them.


Console output:


6/19/13 5:35:54.162 PM digest-service[858]: label: default

6/19/13 5:35:54.162 PM digest-service[858]: dbname: od:/Local/Default

6/19/13 5:35:54.162 PM digest-service[858]: mkey_file: /var/db/krb5kdc/m-key

6/19/13 5:35:54.162 PM digest-service[858]: acl_file: /var/db/krb5kdc/kadmind.acl

6/19/13 5:35:54.196 PM digest-service[858]: digest-request: uid=0

6/19/13 5:35:54.282 PM digest-service[858]: digest-request: init request

6/19/13 5:35:54.283 PM digest-service[858]: digest-request: init return domain: STU server: STU

6/19/13 5:35:54.318 PM digest-service[858]: digest-request: uid=0

6/19/13 5:35:54.318 PM digest-service[858]: digest-request: init request

6/19/13 5:35:54.320 PM digest-service[858]: digest-request: init return domain: STU server: STU

6/19/13 5:35:54.321 PM digest-service[858]: digest-request: uid=0

6/19/13 5:35:54.322 PM digest-service[858]: digest-request: od failed with 22 proto=lm

6/19/13 5:35:54.322 PM digest-service[858]: digest-request: user=\

6/19/13 5:35:54.322 PM digest-service[858]: digest-request: kdc failed with 22 proto=unknown

6/19/13 5:35:54.323 PM digest-service[858]: digest-request guest: ok user=STU\GUEST proto=lm flags: NEG_KEYEX, ENC_128, NEG_VERSION, NEG_TARGET_INFO, NEG_NTLM2, NEG_ALWAYS_SIGN, NEG_ANONYMOUS, NEG_NTLM, NEG_SIGN, NEG_TARGET, NEG_UNICODE

6/19/13 5:35:54.348 PM smbd[846]: anonymous connected to path /var/rpc/ncacn_np

Jul 22, 2013 10:18 AM in response to carlosribas

No. I gave up. It looked like if I did a clean install on both systems. Exported the users and groups out, imported into a fresh install and ODMaster and reset all the passwords it might work. It worked on a test system, but with this problem I've had things work on test that didn't work in practice. I've already nuked the directory once and had everyone in the company reset their passwords and am unwiling to do that again. Currently I just have a script archiving the directory on a nightly basis.


I have tried manually creating a rootDSE file with the correct entries in /etc/openldap/ and adding a reference to it in /etc/openlodap/slapd.d/cn=config.ldif to no avail.

Error creating Open Directory Replica in Mountain Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.