[Date Prev][Date Next]
Re: Emergency recovery strategy needed by novice
- To: email@example.com
- Subject: Re: Emergency recovery strategy needed by novice
- From: Emmanuel Lecharny <firstname.lastname@example.org>
- Date: Fri, 07 Jan 2011 20:17:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=VtAJk/wcR8Hg7/+Bv7AUh9mAJSOOqoUJ3EzOPIj9wXo=; b=Xq46RgNhC2Lmabon/FABsqKi1x78xJhBRZaJls3aH3Nm64omki9GrY6QgJziBDfO8x S6ZGnHvqVovVD8WQz2KWVkhFDUtHSIzHZLzs+P15NGdbv9pB0KHYoWMNfxULCFgryncU HUmyAEUBD9GrBY0LrmD7f8cvKjk6JsFPE+qPg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=cunC3OfA1MS/ixT707gFhH+wdG1ZWD/UrZe//ui1+mqs1tv6yWPqoJetZpvT05vLnQ /ALL0+biD3rnX6kx6GGdw4Ym+sbOY7xAfp7JNSfWOS4tqY9z8o3+Kp9W0K9EQUsJkdAC QQR1FLPsQtQJngohaPdG+AhkE5FY0EEQYFyb8=
- In-reply-to: <Pine.LNX.email@example.com>
- References: <Pine.LNX.firstname.lastname@example.org>
- User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:18.104.22.168) Gecko/20101207 Thunderbird/3.1.7
On 1/7/11 8:17 PM, Richard Troy wrote:
On Fri, 7 Jan 2011, Chris Jacobs wrote:
slapcat -l [ldif file]
Add from dump, with slapd off:
slapadd -l [ldif file]
If you're using BDB (typical backend), you can move the contents of the dbdir specified by your config first.
THANK YOU, Chris.
However, I can't login to the troubled server. When I try and login via
ssh, I get the password prompt, then nothing and it eventually times out
with simply, "connection lost."
I do have a connection from our application server to slapd which is
visible via 'netstat -lT' as ldaps ("ESTABLISHED") - I presume this is via
some kind of library available via Java as it's a EJB based application.
Further thoughts? Can I harness the ability to connect to get the data out
even when I don't know the first thing about the data I want to fetch,
similar to the slapcat command above?
*if* you can connect to the LDAP server, then you can also fetch all the
Data as LDIF. You just have to know the admin user (and password) to be
sure you get all the data from the LDAP server.
You'll then just have to inject them in your slave server.
Now, there are more than just the entries, you'll have to deal with the
server configuration : schemas, index, etc.
If you just want to get back the data, then using a tool like Apache
Directory Studio, LdapBrower, JExplore, etc could help. They all allows
you to connect using only LDAP, and get back the data. You can even use
a command line tool like ldapsearch, which can be installed easily - if
it's not already present.
Hope it helps, because your story sounds like a nightmare ...