Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How to back up Server LDAP database?

How to back up Server LDAP database?
Thread Tools
Mac Enthusiast
Join Date: Jan 2001
Location: Leesburg, Virginia
Status: Offline
Reply With Quote
Feb 16, 2004, 04:32 PM
 
I just had to reinstall my Panther Server operating system. With the various trial and error steps in attempting to salvage (from a tape backup) my LDAP database, I'm actually now on the third reinstall and have given up on trying to do a restore of the LDAP database. I'll have to bite the bullet and redo all the users by hand.

In order to avoid this in the future (no one can guarantee that I won't have to ever reinstall the server again), I am wondering whether there is a proven way to back up the LDAP database, so that it can be dropped into an otherwise clean install. Any ideas?

At any rate just copying /private/var/db/openldap/ from tape back to the boot drive and restarting slapd does not work. I have no way of knowing, whether my backed up database was corrupted already, or whether, just as with any other database its files aren't in sync with one another, when they get backed up while the database is running.

The manifestations of not being able to use the backup are that either

1) I can't authenticate and get into the /LDAPv3/127.0.0.1 database while running Workgroup Manager as admin or

2) Workgroup Manager won't let me see the LDAP-based user records with an Error -14002.

Dominik
     
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
Feb 16, 2004, 05:12 PM
 
In Workgroup Manager (Panther) can't you simply "Export" the information and then simly "Import" into a fresh install if necessary? I know under Jaguar Server the choices show up under the "Server" menu of Workgroup Manager to Export/Import....

I've used this myself a few times and it's worked beautifully.
     
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Feb 16, 2004, 09:13 PM
 
There's a whole section in the admin guide on how to back up directory services in Panther. The problem you're probably running into is that you did not also restore the password database. Thus, you can't login to Workgroup Manager after restoring LDAP.


Edit:

Page 118 of the Open Directory Admin pdf explains how to backup and restore directory services in Panther.
(Last edited by Art Vandelay; Feb 17, 2004 at 01:45 PM. )
Vandelay Industries
     
Dedicated MacNNer
Join Date: Jul 2000
Location: Texas
Status: Offline
Reply With Quote
Feb 17, 2004, 11:46 AM
 
Originally posted by gorickey:
In Workgroup Manager (Panther) can't you simply "Export" the information and then simly "Import" into a fresh install if necessary? I know under Jaguar Server the choices show up under the "Server" menu of Workgroup Manager to Export/Import....

I've used this myself a few times and it's worked beautifully.
For a few records this works fine, however, as soon as you hit 1000-1200 the export/import function becomes buggy, slugish and crashes often. Atleast in my experience
---
One XP Box, One Suse Box, One Blue & White,
One ibook, One iMac 17 FP, one 30 gig iPod and a mini
happy .mac customer, os9 free since 3/24/01
     
Professional Poster
Join Date: May 2000
Location: Urbandale, IA
Status: Offline
Reply With Quote
Feb 18, 2004, 07:45 PM
 
The Export/Import option also doesn't export/import everything.

Automounts, Computer Lists, etc (basically anything that isn't a user or a group) doesn't get transferred.

A Big Pain In The Butt.
"Yields a falsehood when preceded by its quotation" yields a falsehood when preceded by its quotation.
     
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Feb 18, 2004, 08:32 PM
 
Originally posted by Oneota:
The Export/Import option also doesn't export/import everything.

Automounts, Computer Lists, etc (basically anything that isn't a user or a group) doesn't get transferred.

A Big Pain In The Butt.
That's why you follow the instructions on page 118 of the Open Directory Admin pdf.
Vandelay Industries
     
Professional Poster
Join Date: May 2000
Location: Urbandale, IA
Status: Offline
Reply With Quote
Feb 18, 2004, 08:51 PM
 
Originally posted by Art Vandelay:
That's why you follow the instructions on page 118 of the Open Directory Admin pdf.
Interesting...this may save our butts...Thankee!

(Our Parent server, which hosts the Open Directory master containing 4000+ user records, has a messed-up Password Server and is in need of rebuilding. It's not allowing us to create new replicas, or become a Primary Domain Controller...it's being a pain)
"Yields a falsehood when preceded by its quotation" yields a falsehood when preceded by its quotation.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:49 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2