summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-09-18 13:18:37 +0200
committerPetr Viktorin <pviktori@redhat.com>2013-09-20 09:56:27 +0200
commit316a9c215982527814089dc02be95fe14e635006 (patch)
tree4e54518a65912cb18e13fa8bb0e9309a849360c0 /ipa-client
parent8c03b1dbcdf75ba76b96ccfcc148afe0e134e2d3 (diff)
downloadfreeipa-316a9c215982527814089dc02be95fe14e635006.tar.gz
freeipa-316a9c215982527814089dc02be95fe14e635006.tar.xz
freeipa-316a9c215982527814089dc02be95fe14e635006.zip
Use getent admin@domain for nss check in ipa-client-install
Use 'getent admin@domain' rather than 'getent admin@REALM' to check if nss is working properly since admin@REALM check fails in case the domain and the realm name does not match. https://fedorahosted.org/freeipa/ticket/3906
Diffstat (limited to 'ipa-client')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 59381fe97..7e474bd59 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -2502,7 +2502,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)
@@ -2511,7 +2511,7 @@ def install(options, env, fstore, statestore):
if not found:
root_logger.error(
"Unable to find 'admin' user with "
- "'getent passwd admin@%s'!" % cli_realm)
+ "'getent passwd admin@%s'!" % cli_domain)
if conf:
root_logger.info("Recognized configuration: %s", conf)
else: