You are not logged in.
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
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
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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