diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_myldap.sh | 2 | ||||
-rwxr-xr-x | tests/test_nsscmds.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_myldap.sh b/tests/test_myldap.sh index afe8ca5..6002b89 100755 --- a/tests/test_myldap.sh +++ b/tests/test_myldap.sh @@ -27,7 +27,7 @@ set -e # get LDAP config cfgfile="$srcdir/nss-ldapd-test.conf" -uri=`sed -n 's/^uri *//p' "$cfgfile"` +uri=`sed -n 's/^uri *//p' "$cfgfile" | head -n 1` base="dc=test,dc=tld" # try to fetch the base DN (fail with exit 77 to indicate problem) diff --git a/tests/test_nsscmds.sh b/tests/test_nsscmds.sh index 06de984..b670ee2 100755 --- a/tests/test_nsscmds.sh +++ b/tests/test_nsscmds.sh @@ -28,7 +28,7 @@ set -e # check if LDAP is configured correctly cfgfile="/etc/nss-ldapd.conf" -uri=`sed -n 's/^uri *//p' "$cfgfile"` +uri=`sed -n 's/^uri *//p' "$cfgfile" | head -n 1` base="dc=test,dc=tld" # try to fetch the base DN (fail with exit 77 to indicate problem) |