This bug is created as a clone of upstream ticket:
Assuming <filename> is not a full path,
1) db2ldif -a <filename> tries to create the file in /usr/sbin, which usually fails since the server user ("nobody" by default) does not have the right to write in /usr/sbin.
2) db2ldif.pl -a <filename> creates the file in the log directory /var/log/dirsrv/slapd-ID, which is not expected.
The exported file is supposed to be placed in the current directory where the command-line is executed if "-a <filename>" is specified.
Thanks to Asha for reporting the bug.
moving all ON_QA bugs to MODIFIED in order to add them to the errata (can't add bugs in the ON_QA state to an errata). When the errata is created, the bugs should be automatically moved back to ON_QA.
[root@dhcp201-149 export]# ls -al export1.ldif
-rwxr-xr-x. 1 root root 0 Jan 9 17:03 export1.ldif
[root@dhcp201-149 export]# db2ldif.pl -D "cn=Directory Manager" -w Secret123 -Z slapd-dhcp201-149 -n userRoot -a export1.ldif
Exporting to ldif file: /export/export1.ldif
Successfully added task entry "cn=export_2014_1_9_17_5_52, cn=export, cn=tasks, cn=config"
[root@dhcp201-149 export]# db2ldif -Z slapd-dhcp201-149 -n userRoot -a exported.ldif
Exported ldif file: /export/exported.ldif
[09/Jan/2014:17:02:26 +051800] - export userRoot: Processed 9 entries (100%).
[09/Jan/2014:17:02:26 +051800] - All database threads now stopped
[root@dhcp201-149 export]# rpm -qa | grep 389
Hence marking bug as VERIFIED.
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.