From 77444ac1328b4538a6e21d2af4c07a69e52e903d Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 10 Mar 2014 21:54:42 +0100 Subject: 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. --- tests/test_myldap.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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" -- cgit v1.2.3