Skip to content

Commit

Permalink
Fix the ipa user library cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgePantelakis committed Feb 5, 2024
1 parent b1dd350 commit 203dbd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SCAutolib/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def __init__(self, config: Union[Path, str], params: {} = None):
if LIB_DUMP_CAS.joinpath("local_ca.json").exists():
self.local_ca = BaseCA.load(LIB_DUMP_CAS.joinpath("local_ca.json"))

if LIB_DUMP_CAS.joinpath("ipa.json").exists():
self.ipa_ca = BaseCA.load(LIB_DUMP_CAS.joinpath("ipa.json"))
if LIB_DUMP_CAS.joinpath("ipa-server.json").exists():
self.ipa_ca = BaseCA.load(LIB_DUMP_CAS.joinpath("ipa-server.json"))

def prepare(self, force: bool, gdm: bool, install_missing: bool,
graphical: bool):
Expand Down Expand Up @@ -405,7 +405,7 @@ def cleanup(self):
users = {}

for user_file in LIB_DUMP_USERS.iterdir():
usr = user.User.load(user_file)
usr = user.User.load(user_file, ipa_server=self.ipa_ca)
users[usr.username] = usr
if usr.username != "root":
usr.delete_user()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

setup(
name="SCAutolib",
version="3.1.1",
version="3.1.2",
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 203dbd9

Please sign in to comment.