#51227 Importing an LDIF from locations other than the LDIF directory fails
Closed: wontfix 3 years ago by mreynolds. Opened 3 years ago by mmuehlfeldrh.

Issue Description

If you try to import an LDIF from a directory other than /var/lib/dirsrv/slapd-instance_name/ldif/, the import fails with "No such file or directory".

Package Version and Platform

389-ds-base-1.4.3.10-1.module+el8dsrv+7006+9b1e3ef3.x86_64

Steps to reproduce

  1. Create an LDIF file, for example, /tmp/example.ldif
  2. Make sure that dirsrv is able to read the file (chown dirsrv /tmp/example.ldif ; chmod 644 /tmp/example.ldif)
  3. Try to import the file.

Actual results

dsconf -D "cn=Directory Manager" ldap://server.example.com backend import userRoot  /tmp/example.ldif 
Enter password for cn=Directory Manager on ldap://server.example.com: 
Error: Import task failed
-------------------------
Beginning import job...
Index buffering enabled with bucket size 17
Could not open LDIF file "/tmp/example.ldif", errno 2 (No such file or directory)
Thread monitoring returned: -23

Aborting all Import threads...
Import threads aborted.
Closing files...
Import failed.

Expected results

Import should succeed.

Additional information

The same works on RHEL 8.2 (389-ds-base-1.4.2.12-2.module+el8dsrv+6428+6e54c518.x86_64).


Metadata Update from @mreynolds:
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Issue close_status updated to: duplicate
- Issue status updated to: Closed (was: Open)

3 years ago

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/4280

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: duplicate)

3 years ago

Login to comment on this ticket.

Metadata