Check spnego error messages too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22601 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -109,23 +109,31 @@ echo "======test unreadable/non existant keytab and its error message" | |||||||
| ${context} --mech-type=krb5 host@lucid.test.h5l.se || \ | ${context} --mech-type=krb5 host@lucid.test.h5l.se || \ | ||||||
| 	{ exitcode=1 ; echo "test failed"; } | 	{ exitcode=1 ; echo "test failed"; } | ||||||
| chmod 0 ${keytabfile} | chmod 0 ${keytabfile} | ||||||
| echo "checking non readable keytabfile" | echo "checking non readable keytabfile (krb5)" | ||||||
| ${context} --mech-type=krb5 host@lucid.test.h5l.se  > test_context.log 2>&1 && \ | ${context} --mech-type=krb5 host@lucid.test.h5l.se  > test_context.log 2>&1 && \ | ||||||
| 	{ exitcode=1 ; echo "test failed"; } | 	{ exitcode=1 ; echo "test failed"; } | ||||||
| grep ${keytabfile} test_context.log > /dev/null || \ | grep ${keytabfile} test_context.log > /dev/null || \ | ||||||
| 	{ exitcode=1 ; echo "test failed"; } | 	{ exitcode=1 ; echo "test failed"; } | ||||||
| #does not work yet | echo "checking non readable keytabfile (spnego)" | ||||||
| #${context} --mech-type=spnego host@lucid.test.h5l.se > test_context.log 2>&1 && \ | ${context} --mech-type=spnego host@lucid.test.h5l.se > test_context.log 2>&1 && \ | ||||||
| #	{ exitcode=1 ; echo "test failed"; } | 	{ exitcode=1 ; echo "test failed"; } | ||||||
| #grep ${keytabfile} test_context.log > /dev/null || \ | grep ${keytabfile} test_context.log > /dev/null || \ | ||||||
| #	{ exitcode=1 ; echo "test failed"; } | 	{ exitcode=1 ; echo "test failed"; } | ||||||
|  |  | ||||||
| chmod 600 ${keytabfile} | chmod 600 ${keytabfile} | ||||||
| echo "checking non existant keytabfile" |  | ||||||
| mv ${keytabfile} ${keytabfile}.no | mv ${keytabfile} ${keytabfile}.no | ||||||
|  |  | ||||||
|  | echo "checking non existant keytabfile (krb5)" | ||||||
| ${context} --mech-type=krb5 host@lucid.test.h5l.se  > test_context.log 2>&1 && \ | ${context} --mech-type=krb5 host@lucid.test.h5l.se  > test_context.log 2>&1 && \ | ||||||
| 	{ exitcode=1 ; echo "test failed"; } | 	{ exitcode=1 ; echo "test failed"; } | ||||||
| grep ${keytabfile} test_context.log > /dev/null || \ | grep ${keytabfile} test_context.log > /dev/null || \ | ||||||
| 	{ exitcode=1 ; echo "test failed"; } | 	{ exitcode=1 ; echo "test failed"; } | ||||||
|  | echo "checking non existant keytabfile (spengo)" | ||||||
|  | ${context} --mech-type=spnego host@lucid.test.h5l.se > test_context.log 2>&1 && \ | ||||||
|  | 	{ exitcode=1 ; echo "test failed"; } | ||||||
|  | grep ${keytabfile} test_context.log > /dev/null || \ | ||||||
|  | 	{ exitcode=1 ; echo "test failed"; } | ||||||
|  |  | ||||||
| mv ${keytabfile}.no ${keytabfile} | mv ${keytabfile}.no ${keytabfile} | ||||||
|  |  | ||||||
| echo "======test naming combinations" | echo "======test naming combinations" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand