mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
parent
7bd3b3e121
commit
59c2e0fbd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user