Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

LDAP backup on z/OS (running in OMVS).

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Thu Jul 09, 2009 6:15 pm    Post subject: LDAP backup on z/OS (running in OMVS).
Reply with quote

Hello everyone! icon_smile.gif

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? icon_smile.gif
Back to top
View user's profile Send private message

Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Thu Jul 09, 2009 7:34 pm    Post subject: Reply to: LDAP backup
Reply with quote

*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. icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts Syntax for running batch history repo... polymathtarun CA Products 1 Tue Jun 21, 2016 1:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us