Hyder Khan wrote: > Greetings fellow LDAPpers! > > Here is iPlanet's official documentation on the use of the db2ldif > command utlity for iPlanet Directory Server 5.0. (I'm using WinNT but > I'm sure that UNIX users could benefit / contribute by participating > in this thread: > > http://docs.iplanet.com/docs/manuals/directory/50/html/cli/scripts.htm#23620 > > However, is it just me being clueless or does the documentation never > provide any EXAMPLES on HOW to use this command? I have no idea what > the command is looking for in terms of the '-n' or the '-s' parameter.
First of all, it would be more appropriate to post this message to secnews.netscape.com:netscape.server.directory - for Netscape Directory Server 6.0 and later OR http://softwareforum.sun.com/ - for Netcape DS 4.x and iPlanet Directory Server > Can anyone please provide any concrete examples of the proper syntax? > > 1) I'm trying to export EVERYTHING from LDAP into an LDIF file. -n is the name of the database backend e.g. -n userRoot -s is a suffix e.g. -n "o=myorganization,c=us" You first have to know what a suffix is and how to get a list of suffixes you care about. Then db2ldif -s "mysuffix1" -a mysuffix1.ldif db2ldif -s "mysuffix2" -a mysuffix2.ldif ... > 2) I would also like to know how to export only a SUBTREE from LDAP to > LDIF. > (eg- ou=myorganizationalunit,o=myorganization,c=us) You cannot, unless you first partition your database so that ou=myorganizationalunit,o=myorganization,c=us resides it its own database. > > > Thanks! > Hyder Khan
