#50546 Exports from Cockpit can be stored outside of /var/lib/dirsrv/slapd-instance_name/ldif/
Closed: wontfix by mreynolds. Opened by mmuehlfeldrh.

Issue Description

Export from Cockpit can be stored outside of the /var/lib/dirsrv/slapd-instance_name/ldif/ directory. You can use this to override files, such as dse.ldif or to fill the root partition.

Package Version and Platform

389-ds-base-1.4.1.6-20190813git7a24286f1.el8.x86_64

Steps to reproduce

  1. Open 389 DS in Cockpit
  2. Database / Select a suffix / click "Suffix Tasks" / click "Export Suffix"
  3. Enter, for example: ../../../../../etc/dirsrv/slapd-instance_name/dse.ldif to override the dse.ldif file.

Actual results

By using relative paths, you can store files outside of /var/lib/dirsrv/slapd-instance_name/ldif/. This can be used to override other LDIF files (I tired overriding other files on which dirsrv had write permissions, but it only overwrote .ldif files) or you can use it to fill up other file systems.

The example above overrides the dse.ldif file. I know that DS recovers the file from dse.ldif.bak if you restart the service, but it is very scary. Maybe operations might fail until the service has been restarted. I haven't checked this.

Expected results

Exports should only be stored in /var/lib/dirsrv/slapd-instance_name/ldif/


Metadata Update from @mreynolds:
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Issue set to the milestone: 1.4.0

https://pagure.io/389-ds-base/pull-request/50565#

Commit 00403323 relates to this ticket

295ea0724..9b9c7a40b 389-ds-base-1.4.1 -> 389-ds-base-1.4.1

Metadata Update from @mreynolds:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Commit 041f71c2 relates to this ticket

Commit 041f71c relates to this ticket

9b9c7a40b..f8752be0d 389-ds-base-1.4.1 -> 389-ds-base-1.4.1

Fixed a few more minor issues

Commit db876c62 relates to this ticket

Commit db876c6 relates to this ticket

f8752be0d..7ee262688 389-ds-base-1.4.1 -> 389-ds-base-1.4.1

Fix some more issues...

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/3602

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

Metadata
Related Pull Requests