diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2011-10-11 10:22:16 +0300 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-10-11 10:36:45 +0200 |
commit | 59c2e0fbd10f98a460f11e6bd024741845922562 (patch) | |
tree | 27cf731e5c12afb0af932b38e0b1a36f19a5cee5 /ipa-client | |
parent | 7bd3b3e12147b794c4cf2f4457df5e20638c7b0e (diff) | |
download | freeipa-59c2e0fbd10f98a460f11e6bd024741845922562.tar.gz freeipa-59c2e0fbd10f98a460f11e6bd024741845922562.tar.xz freeipa-59c2e0fbd10f98a460f11e6bd024741845922562.zip |
Increase number of 'getent passwd attempts' to 10
During ipa-client-install SSSD is not always started up properly for some
reason, things like "getent passwd admin" do not work. This is particulary
true for large setups where admin is included in a large set of groups.
https://fedorahosted.org/freeipa/ticket/1774
Diffstat (limited to 'ipa-client')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 55f38ed9..1b9c4884 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -1124,10 +1124,10 @@ def install(options, env, fstore, statestore): if not options.on_master: n = 0 found = False - # Loop for up to 5 seconds to see if nss is working properly. - # It can sometimes take a few seconds to connect to the remote - # provider. - while n < 5 and not found: + # Loop for up to 10 seconds to see if nss is working properly. + # It can sometimes take a few seconds to connect to the remote provider. + # Particulary, SSSD might take longer than 6-8 seconds. + while n < 10 and not found: try: ipautil.run(["getent", "passwd", "admin"]) found = True |