linux - How do I clone an OpenLDAP database -
I know this is more like a server-wide question than a stack overflow question, but because the server is not yet Here I go:
I have to move one application from one redhat server to another, and for the very good knowledge of the internal workings of the application, how do I openLDAP database from one machine to another I can move in, with Schema and everyone.
Which files will I need to copy? I believe setup is very standard.
The problem with the answer is that slapcat (8) is not guaranteed Gives the order that the data for ldapadd (1) / ldapmodify (1) is given. From the man page:
This device-generated LDIF is suitable for use with slappad (8). As the entries are in database order, they are not better than before, they can be loaded with no preloaded ldapadd (1).
Uses backend files using plus tools to dump the database, and then the use of LDF loading equipment via LDF is not very consistent.
I suggest the slapcat (8) / slapadd (8) OR ldapsearch (1) / Use ldapmodify (1) . My preference will be in the latter part because it does not require Shell access for the LidAP server or there is no need to move the file around. For example, dump database from master server under DC = Master, DC = com and load it in backup server
The above-W flag indicates the LDAP Administrator_master password, though we redirect the output to a file You are not able to see the prompt Just move a blank line and type your LDAP admin_master password and it will work.
The last sign is a hard link for ldapadd (1) on. -a (add) flag With ldapmodify (1)
Comments
Post a Comment