Skip to content
Snippets Groups Projects
Commit 82f8dae5 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipaclient_setup_nss: paths.GETENT is not available before freeipa-4.6.90.pre1

Fallback for older releases has been added to use '/usr/bin/getent' if
paths.GETENT is not defined.
parent 184f6f08
No related branches found
No related tags found
No related merge requests found
......@@ -460,6 +460,10 @@ def main():
# It can sometimes take a few seconds to connect to the remote
# provider.
# Particulary, SSSD might take longer than 6-8 seconds.
if hasattr(paths, "GETENT"):
getent_cmd = paths.GETENT
else:
getent_cmd = '/usr/bin/getent'
while n < 10 and not found:
try:
ipautil.run([getent_cmd, "passwd", user])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment