diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-11-01 14:55:41 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-11-01 14:55:41 +0000 |
commit | ab510c2f3e690041b14ebf916fd6de56b64e2a58 (patch) | |
tree | de4b76a3fa63834aca8188a672fb42e2d5aa115b /tests | |
parent | c6aa1fa8ad2eae5e47eb907400c64694c2e67e2f (diff) |
add test case for comma in DN attribute value
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1015 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.ldif.gz | bin | 188713 -> 181044 bytes | |||
-rwxr-xr-x | tests/test_nsscmds.sh | 12 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/test.ldif.gz b/tests/test.ldif.gz Binary files differindex a050d5c..b43ab12 100644 --- a/tests/test.ldif.gz +++ b/tests/test.ldif.gz diff --git a/tests/test_nsscmds.sh b/tests/test_nsscmds.sh index d9399e9..cb88857 100755 --- a/tests/test_nsscmds.sh +++ b/tests/test_nsscmds.sh @@ -149,7 +149,7 @@ EOM echo "test_nsscmds.sh: testing group..." check "getent group testgroup" << EOM -testgroup:*:6100:arthur,test +testgroup:*:6100:arthur,test,testuser4 EOM # this does not work because users is in /etc/group but it would @@ -163,16 +163,20 @@ check "getent group TESTGROUP" << EOM EOM check "getent group 6100" << EOM -testgroup:*:6100:arthur,test +testgroup:*:6100:arthur,test,testuser4 EOM check "groups arthur | sed 's/^.*://'" << EOM users testgroup testgroup2 EOM +check "groups testuser4 | sed 's/^.*://'" << EOM +users testgroup testgroup2 +EOM + check "getent group | egrep '^(testgroup|users):'" << EOM users:x:100: -testgroup:*:6100:arthur,test +testgroup:*:6100:arthur,test,testuser4 users:*:100:arthur,test EOM @@ -416,7 +420,7 @@ ecordas:*::::7:2::0 EOM check "getent shadow arthur" << EOM -arthur:*::100:200:7:2::0 +arthur:*::1000:200:7:2::0 EOM # check case-sensitivity |