View previous topic :: View next topic
|
Author |
Message |
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
Hello everyone!
I was just wondering if there is a way to properly backup an LDAP server on z/OS (running in OMVS).
So far, I have an idea to call ldapsearch with specific options which will redirect it's output to an ldiff file. This would be done via a JCL JOB.
Something like...
ldapsearch -b "dc=example,dc=com" -h 127.0.0.1 -D "cn=manager,dc=example,dc=com" -w password "(objectclass=*)" > /path/to/todays_date.ldif
Any ideas? |
|
Back to top |
|
|
Ivan P
New User
Joined: 08 Jun 2009 Posts: 63 Location: Europe
|
|
|
|
*BUMP*
After reading the Directory Server Administration book, it seems the proper way on z/OS is to use ds2ldif (for backup) and ldif2ds (for restore) utils.
They can be found under: /usr/lpp/ldap/sbin
(which isn't in the $PATH var by default)
However, there are some restrictions..
ds2ldif can only be used with TDBM and LDBM backends
ldif2ds can only be used with TDBM backend
Hope this helps someone, in the future. |
|
Back to top |
|
|
|