IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Data Backup suggestions DB2 5
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top