export data from openldap

Issues related to software problems.
Post Reply
sub320
Posts: 23
Joined: 2016/01/21 15:57:05

export data from openldap

Post by sub320 » 2016/02/08 02:45:35

I am new to openldap , would advise if I want to export all data from openldap for backup , what is the command to do that ?

thanks

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: export data from openldap

Post by TrevorH » 2016/02/08 08:26:39

ldapsearch
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

sub320
Posts: 23
Joined: 2016/01/21 15:57:05

Re: export data from openldap

Post by sub320 » 2016/02/08 15:47:06

TrevorH wrote:ldapsearch

I know ldapsearch and slapcat can do that , which one is better ? thanks

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: export data from openldap

Post by aks » 2016/02/08 19:02:03

For what?
slapcat puts out the entire context while with ldapsearch you can filter & have more control.

sub320
Posts: 23
Joined: 2016/01/21 15:57:05

Re: export data from openldap

Post by sub320 » 2016/02/09 08:02:25

aks wrote:For what?
slapcat puts out the entire context while with ldapsearch you can filter & have more control.
thanks reply ,

do you mean ldapsearch can not export all data ?

thanks

gulikoza
Posts: 188
Joined: 2007/05/06 20:15:23

Re: export data from openldap

Post by gulikoza » 2016/02/09 08:42:39

You need root (ldap) login for ldapsearch to show all data if you have protected fields (like passwords - which you should).
Slapcat will make complete dump without any password needed. Although I'm not entirely sure C5 has all the patches needed to run slapcat while ldap is running. I know some fixes were backported to C6...

sub320
Posts: 23
Joined: 2016/01/21 15:57:05

Re: export data from openldap

Post by sub320 » 2016/02/09 10:45:08

gulikoza wrote:You need root (ldap) login for ldapsearch to show all data if you have protected fields (like passwords - which you should).
Slapcat will make complete dump without any password needed. Although I'm not entirely sure C5 has all the patches needed to run slapcat while ldap is running. I know some fixes were backported to C6...
thanks reply ,

that mean if no password issue , all field are open , I can use ldapsearch to export all data ? thanks

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: export data from openldap

Post by aks » 2016/02/09 17:07:37

Do you wish to export the encrypted passwords and import them to another LDAP server? If so that probably won't work 'cause of the salt applied to the passwords (well it depends on what encryption scheme is configured for the passwords).

Post Reply