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.
Over a year later for response, but I wanted to put it out there for others.
I had same issue, but on solaris:
welcome1 being the password
ldifwrite connect="OIDDB" basedn="cn=user001, cn=Users,dc=ptl,dc=oracle,dc=com" ldiffile="/home/oracle/user001.ldif" <<EOF