File tree Expand file tree Collapse file tree
sssd_test_framework/hosts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,16 +39,18 @@ def features(self) -> dict[str, bool]:
3939 return self ._features
4040
4141 self .logger .info (f"Detecting SSSD's features on { self .hostname } " )
42-
4342 result = self .ssh .run (
4443 """
4544 set -ex
4645
4746 [ -f "/usr/lib64/sssd/libsss_files.so" ] && echo "files-provider" || :
4847 [ -f "/usr/libexec/sssd/passkey_child" ] && echo "passkey" || :
49- [ -f "/usr/bin/sss_ssh_knownhostsproxy" ] && echo "knownhostsproxy" || :
50- man sssd.conf | grep -q "user (string)" && echo "non-privileged" || :
51- man sssd-ldap | grep -q "ldap_use_ppolicy (boolean)" && echo "ldap_use_ppolicy" || :
48+ [ -f "/usr/bin/sss_ssh_knownhosts" ] && echo "knownhosts" || :
49+ systemctl cat sssd.service | grep -q "If service configured to be run under" && echo "non-privileged" || :
50+ strings /usr/lib64/sssd/libsss_ldap_common.so | grep ldap_use_ppolicy && echo "ldap_use_ppolicy" || :
51+ # enumerate (bool) Feature is only supported for domains with id_provider = ldap or id_provider = proxy.
52+ MANWIDTH=10000 man sssd.conf | grep -q "id_provider = ldap or id_provider = proxy" && \
53+ echo "limited_enumeration" || :
5254 """ ,
5355 log_level = SSHLog .Error ,
5456 )
@@ -59,7 +61,8 @@ def features(self) -> dict[str, bool]:
5961 "passkey" : False ,
6062 "non-privileged" : False ,
6163 "ldap_use_ppolicy" : False ,
62- "knownhostsproxy" : False ,
64+ "knownhosts" : False ,
65+ "limited_enumeration" : False ,
6366 }
6467
6568 self ._features .update ({k : True for k in result .stdout_lines })
You can’t perform that action at this time.
0 commit comments