Skip to content

Commit 935556e

Browse files
hosts: Add IPA IPA trust feature detection
1 parent 1f8bf38 commit 935556e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sssd_test_framework/hosts/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def features(self) -> dict[str, bool]:
5454
[ -f "/usr/bin/sss_ssh_knownhosts" ] && echo "knownhosts" || :
5555
systemctl cat sssd.service | grep -q "If service configured to be run under" && echo "non-privileged" || :
5656
strings /usr/lib64/sssd/libsss_ldap_common.so | grep ldap_use_ppolicy && echo "ldap_use_ppolicy" || :
57+
strings /usr/lib64/sssd/libsss_ipa.so | grep -q ipa_ctx_new && echo "ipa-ipa-trust" || :
5758
# enumerate (bool) Feature is only supported for domains with id_provider = ldap or id_provider = proxy.
5859
MANWIDTH=10000 man sssd.conf | grep -q "id_provider = ldap or id_provider = proxy" && \
5960
echo "limited_enumeration" || :
@@ -69,6 +70,7 @@ def features(self) -> dict[str, bool]:
6970
"ldap_use_ppolicy": False,
7071
"knownhosts": False,
7172
"limited_enumeration": False,
73+
"ipa-ipa-trust": False,
7274
}
7375

7476
self._features.update({k: True for k in result.stdout_lines})

sssd_test_framework/hosts/ipa.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,16 @@ def features(self) -> dict[str, bool]:
8585
[ -f "/usr/libexec/sssd/passkey_child" ] && \
8686
ipa help user | grep user-add-passkey 1> /dev/null && \
8787
echo "passkey" || :
88+
ipa trust-add --help | grep 'Trust type' | grep 'ipa' 1> /dev/null && \
89+
echo "ipa-ipa-trust" || :
8890
""",
8991
log_level=ProcessLogLevel.Error,
9092
)
9193

9294
# Set default values
9395
self._features = {
9496
"passkey": False,
97+
"ipa-ipa-trust": False,
9598
}
9699

97100
self._features.update({k: True for k in result.stdout_lines})

0 commit comments

Comments
 (0)