diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-21 09:48:23 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-21 09:48:23 +0000 |
commit | 2e5557e77644b915f5d0773e7b37d1741c3c7ef6 (patch) | |
tree | 2cc6c8d441c6a39d788c94800a8d8e77271ec920 /tests | |
parent | 87f962cb4993a497c6635f04bb9b89dbf743af57 (diff) |
only test the first URI in the configfile
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@513 ef36b2f9-881f-0410-afb5-c4e39611909c
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) |