mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-27 00:26:33 -06:00
Changed ownership of ldiffile to DS_USER
Resolves: https://pagure.io/freeipa/issue/7010 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
342f72140f
commit
e8358eaea9
@ -545,6 +545,10 @@ class Restore(admintool.AdminTool):
|
||||
ldif_parser = RemoveRUVParser(in_file, ldif_writer, self.log)
|
||||
ldif_parser.parse()
|
||||
|
||||
# Make sure the modified ldiffile is owned by DS_USER
|
||||
pent = pwd.getpwnam(constants.DS_USER)
|
||||
os.chown(ldiffile, pent.pw_uid, pent.pw_gid)
|
||||
|
||||
if online:
|
||||
conn = self.get_connection()
|
||||
ent = conn.make_entry(
|
||||
|
Loading…
Reference in New Issue
Block a user