https://fedorahosted.org/freeipa/ticket/5759

Patch attached.
From 7e6ad6bbc6b6300f93cf3a971bb1fe226b144ecc Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Thu, 31 Mar 2016 09:37:36 +0200
Subject: [PATCH] Add missing pre_common_callback to stageuser_add

This pre_callback contains method to preprocessing usercertificate that
was not called during stageuser-add. This commit adds missing
pre_common_callback call to stageuser_add.

https://fedorahosted.org/freeipa/ticket/5759
---
 ipalib/plugins/stageuser.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ipalib/plugins/stageuser.py b/ipalib/plugins/stageuser.py
index 9b40adf1c514e491543ace86ba10630f115a4c57..d34d6c0218e3b49614a67e3bfab72c77e962552b 100644
--- a/ipalib/plugins/stageuser.py
+++ b/ipalib/plugins/stageuser.py
@@ -374,6 +374,8 @@ class stageuser_add(baseuser_add):
                 answer = self.api.Object['radiusproxy'].get_dn_if_exists(cl)
                 entry_attrs['ipatokenradiusconfiglink'] = answer
 
+        self.pre_common_callback(ldap, dn, entry_attrs, **options)
+
         return dn
 
     def post_callback(self, ldap, dn, entry_attrs, *keys, **options):
-- 
2.5.5

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to