LDAP Server dont start

After updating to 10.6.8 update 1.1 the Open dorectory is corrupt. LDAP dont start.


Any ideas


2011-08-28 12:10:22 +0200 - slapconfig -createldapmasterandadmin

2011-08-28 12:10:22 +0200 - Creating password server slot

2011-08-28 12:10:22 +0200 - command: /usr/sbin/mkpassdb -a -u diradmin -p -q

2011-08-28 12:10:22 +0200 - command: /usr/sbin/mkpassdb -a -u root -p -q

2011-08-28 12:10:22 +0200 - command: /usr/sbin/mkpassdb -a -u mail.hutdesign.at$ -p -q

2011-08-28 12:10:22 +0200 - command: /usr/sbin/mkpassdb -setcomputeraccount 0x4e5a140e6b8b45670000000400000004

2011-08-28 12:10:22 +0200 - Setting SASL realm to <mail.hutdesign.at>

2011-08-28 12:10:22 +0200 - command: /usr/sbin/mkpassdb -setrealm mail.hutdesign.at

2011-08-28 12:10:22 +0200 - command: /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.PasswordService.plist

2011-08-28 12:10:23 +0200 - command: /usr/bin/net getlocalsid

2011-08-28 12:10:24 +0200 - Starting LDAP server (slapd)

2011-08-28 12:10:24 +0200 - command: /usr/bin/ldapadd -c -x -H ldapi://%2Fvar%2Frun%2Fldapi

2011-08-28 12:10:24 +0200 - ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

2011-08-28 12:10:24 +0200 - command: /usr/sbin/slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d

2011-08-28 12:10:25 +0200 - Stopping LDAP server (slapd)

2011-08-28 12:10:27 +0200 - Starting LDAP server (slapd)

2011-08-28 12:10:27 +0200 - command: /usr/bin/ldapmodify -c -x -H ldapi://%2Fvar%2Frun%2Fldapi

2011-08-28 12:10:27 +0200 - ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

2011-08-28 12:10:27 +0200 - command: /usr/bin/ldapadd -c -x -H ldapi://%2Fvar%2Frun%2Fldapi

2011-08-28 12:10:27 +0200 - ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

2011-08-28 12:10:27 +0200 - Could not create the dsproxy record - Unable to create record com.apple.access_dsproxy in /Local/Default.

2011-08-28 12:10:27 +0200 - Attempting to open /LDAPv3/127.0.0.1 node

2011-08-28 12:10:27 +0200 - Opened /LDAPv3/127.0.0.1 node

2011-08-28 12:10:27 +0200 - Authentication to LDAP failed with error - Unable to set node credentials for /LDAPv3/127.0.0.1 with the record name root.

2011-08-28 12:10:27 +0200 - editing ldapreplicas record failed with error Unable to set node credentials for /LDAPv3/127.0.0.1 with the record name root.

2011-08-28 12:10:27 +0200 - command: /usr/sbin/sso_util info -r /LDAPv3/127.0.0.1 -p

2011-08-28 12:10:27 +0200 - sso_util command failed with status 2

2011-08-28 12:10:27 +0200 - removing LDAP admins from local admin group failed with error -14483

2011-08-28 12:10:27 +0200 - Stopping LDAP server (slapd)

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/__db.001.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/__db.002.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/__db.003.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/__db.004.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/__db.005.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/__db.006.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/DB_CONFIG.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/dn2id.bdb.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/id2entry.bdb.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/openldap/openldap-data/log.0000000001.

2011-08-28 12:10:29 +0200 - Removed file at path /etc/openldap/slapd_macosxserver.conf.

2011-08-28 12:10:29 +0200 - Removed file at path /etc/openldap/slapd.conf.

2011-08-28 12:10:29 +0200 - Removed file at path /var/db/dslocal/nodes/Default/groups/com.apple.access_dsproxy.plist.

2011-08-28 12:10:29 +0200 - Removed directory at path /etc/openldap/slapd.d/cn=config.

2011-08-28 12:10:29 +0200 - Removed file at path /etc/openldap/slapd.d/cn=config.ldif.

2011-08-28 12:10:29 +0200 - Removed directory at path /etc/openldap/slapd.d.

2011-08-28 12:10:29 +0200 - Removed directory at path /etc/openldap/slapd.d.backup/cn=config.

2011-08-28 12:10:29 +0200 - Removed file at path /etc/openldap/slapd.d.backup/cn=config.ldif.

2011-08-28 12:10:29 +0200 - Removed directory at path /etc/openldap/slapd.d.backup.

2011-08-28 12:10:29 +0200 - Removed file at path /Library/Preferences/com.apple.openldap.plist.

2011-08-28 12:10:29 +0200 - command: /usr/sbin/kdcsetup -e

2011-08-28 12:10:29 +0200 - command: /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.PasswordService.plist

2011-08-28 12:10:33 +0200 - command: /usr/sbin/mkpassdb -u disabled-slot-0x1 -p -q

2011-08-28 12:10:34 +0200 - command: /usr/sbin/mkpassdb -key

2011-08-28 12:10:34 +0200 - Removed file at path /Library/Preferences/com.apple.passwordserver.plist.

2011-08-28 12:10:34 +0200 - Removed file at path /var/run/slapconfig.lock.

Mac OS X (10.7)

Posted on Aug 28, 2011 3:20 AM

Reply
10 replies

Aug 28, 2011 11:48 AM in response to peterkoch

The server was up and running perfectly over month. Just in preparation for the Lion Update we have installed the update 1.1 over 10.6-8 and finally the OD was broken. Unfortunately we dont have a backup from before the update.


In my opinion there are some congig files missing lige the sladp congig files but we are not sure.


The DNS is set up correctly. We cant access Wikis Blogs neither can we start the links within the Server admin. MAybe because the LDAP and OD are not running.


Very frustrating.

Aug 28, 2011 3:52 PM in response to peterkoch

In Server Admin, Open Directory Service > Settings Pane > General Tab, next to where it says "Role: Open Directory Master" you'll see a button that says "Change..." From there, you will switch to a Standalone directory, rebbot the server, and then change it back to an OD Master.


Once you do this, you will need to set up all of your users and groups from scratch.

Aug 29, 2011 12:16 AM in response to peterkoch

that where the problem starts. the protocoll above shows that when ever you create a new OD Master it fails because of


Starting LDAP server (slapd)

2011-08-28 12:10:24 +0200 - command: /usr/bin/ldapadd -c -x -H ldapi://%2Fvar%2Frun%2Fldapi

2011-08-28 12:10:24 +0200 - ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)


If you do it manualy in the terminal window it states that there are insuffient directory rights to access, even as root.


Is there a way to reinstal just the OD part of the server system and set up everything new?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

LDAP Server dont start

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