diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2014-03-10 21:54:42 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2014-03-10 23:00:38 +0100 |
commit | 77444ac1328b4538a6e21d2af4c07a69e52e903d (patch) | |
tree | 9802f7d9dad2184403f35a0d37a505457ed68c6c | |
parent | 96e41711eee37ef3bd341690dff38867251b075f (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.
-rwxr-xr-x | tests/test_myldap.sh | 3 |
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" |