diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 05:31:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 05:31:47 +0000 |
commit | f2f4f7c4b42b0eed0f9f81610e7ef4e93f943dfb (patch) | |
tree | 9cca076b3df5ba0f64e1338da8ea5dcbf5fa5713 /debian/tests/common-tests | |
parent | Adding upstream version 2.9.4. (diff) | |
download | sssd-f2f4f7c4b42b0eed0f9f81610e7ef4e93f943dfb.tar.xz sssd-f2f4f7c4b42b0eed0f9f81610e7ef4e93f943dfb.zip |
Adding debian version 2.9.4-1.debian/2.9.4-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/common-tests')
-rw-r--r-- | debian/tests/common-tests | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/tests/common-tests b/debian/tests/common-tests new file mode 100644 index 0000000..1bb8e1a --- /dev/null +++ b/debian/tests/common-tests @@ -0,0 +1,28 @@ +#!/bin/sh + +run_common_tests() { + echo "Assert local user databases do not have our LDAP test data" + check_local_user "${ldap_user}" + check_local_group "${ldap_user}" + check_local_group "${ldap_group}" + + echo "The LDAP user is known to the system via getent" + check_getent_user "${ldap_user}" + + echo "The LDAP user's private group is known to the system via getent" + check_getent_group "${ldap_user}" + + echo "The LDAP group ${ldap_group} is known to the system via getent" + check_getent_group "${ldap_group}" + + echo "The id(1) command can resolve the group membership of the LDAP user" + #$ id -Gn testuser1 + #testuser1 ldapusers + output=$(id -Gn ${ldap_user}) + # XXX couldn't find a better way to make this comparison using just /bin/sh + if [ "${output}" != "${ldap_user} ${ldap_group}" ]; then + if [ "${output}" != "${ldap_group} ${ldap_user}" ]; then + die "Output doesn't match expected group membership: ${output}" + fi + fi +} |