summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2014-03-10 21:54:42 +0100
committerArthur de Jong <arthur@arthurdejong.org>2014-03-10 23:00:38 +0100
commit77444ac1328b4538a6e21d2af4c07a69e52e903d (patch)
tree9802f7d9dad2184403f35a0d37a505457ed68c6c /tests
parent96e41711eee37ef3bd341690dff38867251b075f (diff)
Fix nslcd-test.conf permissions for test
This ensures that configuration file is not world readable when the tests are run. This avoids test failure for the use of the rootpwmodpw option.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_myldap.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_myldap.sh b/tests/test_myldap.sh
index 4f48d19..fa94eac 100755
--- a/tests/test_myldap.sh
+++ b/tests/test_myldap.sh
@@ -34,6 +34,9 @@ base="dc=test,dc=tld"
# try to fetch the base DN (fail with exit 77 to indicate problem)
"$srcdir/testenv.sh" check_ldap "$uri" "$base" || exit 77
+# fix configuration file permissions for test to pass
+chmod o-rwx "$cfgfile"
+
# just execute test_myldap
export srcdir
exec "$srcdir/test_myldap"