-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In situations where the FreeIPA server is configured with
different domain and realm values, we will fail to test for the
admin account in the ipa-client-install script. With this patch,
we will correctly run 'getent passwd admin@DOMAIN'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIowI8ACgkQeiVVYja6o6ORiwCgnX1uVtWTktYpKdrVxuVTyQjZ
WCsAn0ULhTR0TsfcCsEpknVwgkAN0d7F
=KpH4
-----END PGP SIGNATURE-----
>From c679c8c00f1ac208c190482f7b46384bb5e5dc3f Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <[email protected]>
Date: Thu, 5 Sep 2013 13:21:53 -0400
Subject: [PATCH] IPA-CLIENT: NSS test needs to check against the domain name

In situations where the FreeIPA server is configured with
different domain and realm values, we will fail to test for the
admin account in the ipa-client-install script. With this patch,
we will correctly run 'getent passwd admin@DOMAIN'
---
 ipa-client/ipa-install/ipa-client-install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 3bfd5a4455c786d638a8ab1984f780dd537a103d..3b35cf1d8b00b82782a4600124aa20d828a37426 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -2500,7 +2500,7 @@ def install(options, env, fstore, statestore):
             # Particulary, SSSD might take longer than 6-8 seconds.
             while n < 10 and not found:
                 try:
-                    ipautil.run(["getent", "passwd", "admin@%s" % cli_realm])
+                    ipautil.run(["getent", "passwd", "admin@%s" % cli_domain])
                     found = True
                 except Exception, e:
                     time.sleep(1)
-- 
1.8.3.1

Attachment: 0001-IPA-CLIENT-NSS-test-needs-to-check-against-the-domai.patch.sig
Description: PGP signature

_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to