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


* 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 
* call was incorrect, the second function argument is "stdin", not 

diff --git a/ipapython/platform/debian/ 
index 020a949..ac168f1 100644
--- a/
+++ b/
@@ -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))
                         args.append("%s" % (option))
+       return args
     def execute(self):
-        env = "DEBCONF_FRONTEND=noninteractive"
+       env = {"DEBIAN_FRONTEND": "noninteractive"}
         args = self.__build_args()
+["/usr/sbin/pam-auth-update"] + args, env = env)

You received this bug notification because you are a member of FreeIPA,
which is subscribed to freeipa in Ubuntu.

  14.04 freeipa ipa-client-install fails

Status in “freeipa” package in Ubuntu:

Bug description:
  Running ipa-client-install --mkhomedir --enable-dns-updates -d
  --force-join ran as previous install had partially failed on install
  and rollback. Had to manually delete some files to get installer to
  run again, --uninstall option did not work.


  This sections seems to be the main point of failure:

  failed to find session_cookie in persistent storage for principal 
  Connection to failed with argument 2 must be 
string or None, not int
  Connection to failed with argument 2 must be 
string or None, not int
  Cannot connect to the server due to generic error: cannot connect to 
'Gettext('any of the configured servers', domain='ipa', localedir=None)':,
  Installation failed. Rolling back changes.

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to