summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/dsinstance.py
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2013-12-16 16:19:08 -0500
committerroot <root@ipa-01.t.vda.li>2014-02-10 19:13:21 +0200
commitab00dce3f50042062f7171c6a6ab5ea8f494790f (patch)
tree3907e751fb76376b99566f7fbd28f865513b3e99 /ipaserver/install/dsinstance.py
parent28630d550ff1f756fadc00a81595cd69c8b11ab6 (diff)
downloadfreeipa-ab00dce3f50042062f7171c6a6ab5ea8f494790f.tar.gz
freeipa-ab00dce3f50042062f7171c6a6ab5ea8f494790f.tar.xz
freeipa-ab00dce3f50042062f7171c6a6ab5ea8f494790f.zip
Add OTP last token plugin
This plugin prevents the deletion or deactivation of the last valid token for a user. This prevents the user from migrating back to single factor authentication once OTP has been enabled. Thanks to Mark Reynolds for helping me with this patch.
Diffstat (limited to 'ipaserver/install/dsinstance.py')
-rw-r--r--ipaserver/install/dsinstance.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index de804059c..8fa900f8d 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -270,6 +270,7 @@ class DsInstance(service.Service):
self.step("configuring DNS plugin", self.__config_dns_module)
self.step("enabling entryUSN plugin", self.__enable_entryusn)
self.step("configuring lockout plugin", self.__config_lockout_module)
+ self.step("configuring OTP last token plugin", self.__config_otp_lasttoken_module)
self.step("creating indices", self.__create_indices)
self.step("enabling referential integrity plugin", self.__add_referint_module)
if enable_ssl:
@@ -571,6 +572,9 @@ class DsInstance(service.Service):
def __config_lockout_module(self):
self._ldap_mod("lockout-conf.ldif")
+ def __config_otp_lasttoken_module(self):
+ self._ldap_mod("otp-lasttoken-conf.ldif")
+
def __repoint_managed_entries(self):
self._ldap_mod("repoint-managed-entries.ldif", self.sub_dict)