You are not logged in.

#1 2010-11-23 20:07:02

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

[solved] I still can't dump a whole LDAP

Hi everyone,

It is my first time working with LDAP and I have to dump a whole database.
I've been doing some research about doing this and apparently I have to use LDIF files and slapcat and what not.
The thing is, all this seems only to work with local LDAPs, the one I have to dump is on a remote server I haven't access to.

I am completely lost here. Does anyone have an idea ?

Thank you in advance,

yms

EDIT: I also tried to do it programmatically with python-ldap but all I have managed to do is find out how we search for specific entries.

Last edited by yms (2010-11-24 09:45:03)


Sorry for any English mistakes, I am not a native speaker.

Offline

#2 2010-11-24 04:46:02

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: [solved] I still can't dump a whole LDAP

When I need to dump LDAP from a remote server, I use the following command:

ldapsearch -x -b DC=example,DC=com -D "CN=myuser,CN=Users,DC=example,DC=com" -w MyUberSecurePassword -h ldap.example.com > ldap.dump

Offline

#3 2010-11-24 09:44:45

yms
Member
From: Switzerland
Registered: 2009-06-05
Posts: 64

Re: [solved] I still can't dump a whole LDAP

Thanks, this did work. I was getting the impression that you can not specify remote hosts with ldapsearch (which seemed weird), but your command did work.


Sorry for any English mistakes, I am not a native speaker.

Offline

Board footer

Powered by FluxBB