diff options
| author | Timo Aaltonen <tjaalton@debian.org> | 2017-01-05 12:41:08 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2017-01-19 16:45:42 +0100 |
| commit | e04b75cb9e71fb2b9faa49aea7f2244b01fddbcb (patch) | |
| tree | 63841f42f9e361918337ce6983530169db01bd3e /ipaplatform/debian/tasks.py | |
| parent | 822a119100f8ab93aacdb14b982609f1dc69531d (diff) | |
| download | freeipa-e04b75cb9e71fb2b9faa49aea7f2244b01fddbcb.tar.gz freeipa-e04b75cb9e71fb2b9faa49aea7f2244b01fddbcb.tar.xz freeipa-e04b75cb9e71fb2b9faa49aea7f2244b01fddbcb.zip | |
ipaplatform: Add Debian platform module.
v2:
- use redhat_services.redhat_system_units.copy
- don't use wildcard imports
- add some empty lines to make pep8 happy
v3:
- make parse_ipa_version static
v4:
- make more methods static
v5:
- fix pylint issues
- use syntax that doesn't break with python3
v6:
- remove IPA_GETKEYTAB from paths, it's the same across distros
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'ipaplatform/debian/tasks.py')
| -rw-r--r-- | ipaplatform/debian/tasks.py | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ipaplatform/debian/tasks.py b/ipaplatform/debian/tasks.py new file mode 100644 index 000000000..6c41a35e7 --- /dev/null +++ b/ipaplatform/debian/tasks.py @@ -0,0 +1,50 @@ +# +# Copyright (C) 2017 FreeIPA Contributors see COPYING for license +# + +""" +This module contains default Debian-specific implementations of system tasks. +""" + +from ipaplatform.base.tasks import BaseTaskNamespace +from ipaplatform.redhat.tasks import RedHatTaskNamespace + + +class DebianTaskNamespace(RedHatTaskNamespace): + @staticmethod + def restore_pre_ipa_client_configuration(fstore, statestore, + was_sssd_installed, + was_sssd_configured): + # Debian doesn't use authconfig, nothing to restore + return True + + @staticmethod + def set_nisdomain(nisdomain): + # Debian doesn't use authconfig, nothing to set + return True + + @staticmethod + def modify_nsswitch_pam_stack(sssd, mkhomedir, statestore): + # Debian doesn't use authconfig, this is handled by pam-auth-update + return True + + @staticmethod + def modify_pam_to_use_krb5(statestore): + # Debian doesn't use authconfig, this is handled by pam-auth-update + return True + + @staticmethod + def backup_auth_configuration(path): + # Debian doesn't use authconfig, nothing to backup + return True + + @staticmethod + def restore_auth_configuration(path): + # Debian doesn't use authconfig, nothing to restore + return True + + @staticmethod + def parse_ipa_version(version): + return BaseTaskNamespace.parse_ipa_version(version) + +tasks = DebianTaskNamespace() |
