Bug 2075525
Summary: | Failing to create online backup under a sub-directory of /root | ||
---|---|---|---|
Product: | Red Hat Directory Server | Reporter: | Têko Mihinto <tmihinto> |
Component: | Doc-administration-guide | Assignee: | Evgenia Martynyuk <emartyny> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | LDAP QA Team <idm-ds-qe-bugs> |
Severity: | medium | Docs Contact: | Evgenia Martynyuk <emartyny> |
Priority: | medium | ||
Version: | 12.2 | CC: | emartyny, gfialova, idm-ds-dev-bugs, mpershin, mreynolds, radrao, rhel-docs |
Target Milestone: | --- | Keywords: | Documentation, Triaged |
Target Release: | dirsrv-12.2 | ||
Hardware: | x86_64 | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Known Issue | |
Doc Text: |
.Directory Server can import LDIF files only from `/var/lib/dirsrv/slapd-__instance_name__/ldif/`
Since RHEL 8.3, Red Hat Directory Server (RHDS) uses its own private directories and the *PrivateTmp* systemd directive is enabled by default for the LDAP services. As a result, RHDS can only import LDIF files from the `/var/lib/dirsrv/slapd-__instance_name__/ldif/` directory. If the LDIF file is stored in a different directory, such as `/var/tmp`, `/tmp`, or `/root`, the import fails with an error similar to the following:
----
Could not open LDIF file "/tmp/example.ldif", errno 2 (No such file or directory)
----
To work around this problem, complete the following steps:
. Move the LDIF file to the `/var/lib/dirsrv/slapd-__instance_name__/ldif/` directory:
+
[literal,subs="+quotes"]
....
# **mv __/tmp/__example.ldif__ /var/lib/dirsrv/slapd-__instance_name__/ldif/**
....
. Set permissions that allow the `dirsrv` user to read the file:
+
[literal,subs="+quotes"]
....
# **chown dirsrv /var/lib/dirsrv/slapd-__instance_name__/ldif/__example.ldif__**
....
. Restore the SELinux context:
+
[literal,subs="+quotes"]
....
# **restorecon -Rv /var/lib/dirsrv/slapd-__instance_name__/ldif/**
....
For more information, see the solution article link:https://access.redhat.com/solutions/5707881[LDAP Service cannot access files under the host's /tmp and /var/tmp directories].
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2023-06-14 15:37:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Têko Mihinto
2022-04-14 12:34:25 UTC
Perhaps this is better documented in the release notes then trying to add these checks internally (might not be portable/unnecessary with other distributions)... Changing to doc bug, once documented we can then look at enhancing the CLI Assigning this bug to @Mugdha Soni. Maria Pershina has kindly agreed to review the KI test. Thanks Masha! |