Here's the fix for the final error in
"ipapython/platform/debian/auth.py". After applying this patch, the
whole installation process works like a charm.

Changes:

* Need to import ipautil
* Use continue to remove extra '--package ' args from empty strings
* Need to return args at the end of the function. args was always 'None' before 
this change
* The correct env var is DEBIAN_FRONTEND, the debian docs were incorrect for a 
while
* ipautil.run call was incorrect, the second function argument is "stdin", not 
"env".


diff --git a/ipapython/platform/debian/auth.py 
b/ipapython/platform/debian/auth.py
index 020a949..ac168f1 100644
--- a/auth-orig.py
+++ b/auth.py
@@ -1,4 +1,5 @@
 from ipapython.platform import base
+from ipapython import ipautil
 
 class DebianAuthConfig(base.AuthConfig):
     """
@@ -21,7 +22,7 @@ class DebianAuthConfig(base.AuthConfig):
                 option = "sss"
             # only sssd supported, filter the dupe
             elif option in ["sssd", "krb5", "ldap", "update"]:
-                 option = ""
+                 continue
             if type(value) is bool:
                 if value:
                     if not "package" in args:
@@ -33,10 +34,11 @@ class DebianAuthConfig(base.AuthConfig):
                         args.append("--remove %s" % (option))
                     else:
                         args.append("%s" % (option))
+       return args
 
 
     def execute(self):
-        env = "DEBCONF_FRONTEND=noninteractive"
+       env = {"DEBIAN_FRONTEND": "noninteractive"}
         args = self.__build_args()
-        ipautil.run(["/usr/sbin/pam-auth-update"]+args,env)
+        ipautil.run(["/usr/sbin/pam-auth-update"] + args, env = env)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1282818

Title:
  14.04 freeipa ipa-client-install fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeipa/+bug/1282818/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to