I am trying to write a Windows batch file to automatically backup entries in my OID on a weekly basis. I am using the ldifwrite tool (ldapsearch -L doesn't give me the output I need). The problem I am having is that the ldifwrite tool prompts for the OID password after calling the program. There is no way (that I can find) to supply this password automatically. I am looking at the documentation here: http://download.oracle.com/docs/cd/B14099_19/idmanage.1012/b15883/syntax_datamngmnt015.htm#OIMUR0316.
Is there a way to include the password in the ldifwrite command itself, or perhaps by specifying a parameter file? If not, is it possible to write my batch file in such a way to automatically enter the password when prompted? I can use the Cygwin *nix emulator, if needed.