summaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* * resolve.c (main): Make error message note that misconfigurationTom Yu2001-06-122-2/+19
| | | | | | | of /etc/hosts, as well as problems with resolver library, are all likely to cause failure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13343 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: During test, set KRB5CCNAME to a non-existantEzra Peisach2001-06-082-0/+31
| | | | | | | | cache. Restore at end to previous setting. This prevents failures caused when the krb5 cache contains valid information - as in the case of this test being run immediately after the gssftp.exp test. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13313 dc483132-0cff-0310-8789-dd5450dbe970
* * gssftp.exp: Invocation of ftpd changed to use -U /dev/null andMitchell Berger2001-06-083-8/+28
| | | | | | | | | | | -a so that the test may successfully be run by root without failing (i.e. root is granted ftp access) and without opening the running ftpd to a password attack (i.e. authorization is required). Check for successful login messages added. * v4gssftp.exp: Same changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13304 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: Allow for "decrypt integrity check failed" errorEzra Peisach2001-06-062-0/+6
| | | | | | minor code from GSSAPI as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13277 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: Allow for "no credentials cache found" error minorTom Yu2001-04-272-1/+9
| | | | | | code from GSSAPI. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13212 dc483132-0cff-0310-8789-dd5450dbe970
* assume ANSI C: delete no-volatile support, and most no-prototype supportKen Raeburn2001-04-262-16/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13201 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: For Kerberos 4 tests, use a different ticket fileEzra Peisach2001-04-252-1/+6
| | | | | | name from the V5 tests. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13188 dc483132-0cff-0310-8789-dd5450dbe970
* * trval.c: Add prototypes for trval() and trval2()Ezra Peisach2001-02-182-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13009 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Change KRB4_DEJAGNU_TEST variable to KRBIV fromTom Yu2000-11-082-2/+7
| | | | | | KRB4; dejagnu-1.3 doesn't like digits in passed-in variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12862 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Use $KRBIV rather than $KRB4 since dejagnu-1.3Tom Yu2000-11-082-3/+8
| | | | | | doesn't deal with digits in passed-in variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12861 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: Fix to handle some cases of krb4 failure prior toTom Yu2000-11-082-3/+10
| | | | | | timing out. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12860 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST and AC_TYPE_SIGNAL instead ofEzra Peisach2000-11-012-2/+7
| | | | | | AC_RETSIGTYPE and AC_TYPE_SIGNAL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12838 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): Add new test cases for indefiniteTom Yu2000-10-262-10/+111
| | | | | | | length ticket and as_rep. Fix up calls to decode_run() to have the modifier be in the description parameter. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12817 dc483132-0cff-0310-8789-dd5450dbe970
* * ktest.c (ktest_make_sample_etype_info): Use KRB5_ETYPE_NO_SALTEzra Peisach2000-10-176-9/+31
| | | | | | | | | | | | | | | | | | | | | instead of -1. * ktest_equal.c (ktest_equal_krb5_etype_info_entry): Test for KRB5_ETYPE_NO_SALT. ktest_equal_array_of_octet() and ktest_equal_array_of_char take unsigned int lengths. * ktest_equal.h: Add len_unsigned_array macro for a prototype of a function taking an unsigned int count. ktest_equal_array_of_octet() is one of these. ktest_equal_array_of_char() takes an unsigned int as length. * trval.c (trval): Unsigned/signed int fix. * utility.c (asn1_krb5_data_unparse): Better test for krb5_data length being less than zero. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12789 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Add dict_file entry (and create one) for kdc.confEzra Peisach2000-10-122-0/+12
| | | | | | | | | Since the warning message about missing dictionary is now going to the proper place (instead of simply syslogging), the logic to detect kadmind startup is getting confused by the warning message of a dictionary not being in place. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12754 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (decode_run): If the ASN1 decoder returns anEzra Peisach2000-09-262-0/+9
| | | | | | | | | | | | | error, add one to the error count so there will be a non-zero exit. Sometimes, the decoded structure is complete enoght to pass the test, even with an ASN.1 error - which can easilly get missed in the output run. The indefinite lengths encryption key test (w/ trailing [2] integer) fails under linux and SGI - but works on other platforms - probably due to luck stack problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12677 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: New tests for the krb4 compatible interface to gssftpEzra Peisach2000-08-222-0/+403
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12627 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Create a properly formatted krb.conf file. AlsoEzra Peisach2000-08-222-0/+8
| | | | | | | | provide a krb4_srvtab stanza (even though we are falling back on the keytab file) so the tests do not try to access an installed systems /etc/srvtab file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12626 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Create a properly formatted krb.conf fileEzra Peisach2000-08-221-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12623 dc483132-0cff-0310-8789-dd5450dbe970
* * rlogin.exp: Change RLOGIN to KRLOGIN so we do not use theEzra Peisach2000-08-102-5/+10
| | | | | | incorrect binary as used for the root login in default.exp. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12619 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Add an eof clause to avoid breakage if rlogin exitsTom Yu2000-08-092-0/+11
| | | | | | too quickly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12618 dc483132-0cff-0310-8789-dd5450dbe970
* Quoting of lists in mutipass variable assigments is unnecessaryEzra Peisach2000-08-082-6/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12616 dc483132-0cff-0310-8789-dd5450dbe970
* * v4standalone.exp: New set of tests for basic V4 functionalityEzra Peisach2000-08-082-0/+139
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12615 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Create krb.conf and krb.realms files for v4Ezra Peisach2000-08-082-1/+91
| | | | | | | | | compatibility. Set KRBTKFILE environment variable. Add v4_compatible_enctype() proc to test if krb4 tests are being run and if the current encryption type being tested is compatible with V4. Added v4kinit() proc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12614 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (KRB4_RUNTESTFLAGS): Set from configure.in and passEzra Peisach2000-08-082-1/+7
| | | | | | to runtest if krb4 compatibility is enabled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12613 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Define KRB4_DEJAGNU_TEST depending on if krb4Ezra Peisach2000-08-082-0/+12
| | | | | | support is enabled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12612 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Protect Quote quotation marks in multipass variableEzra Peisach2000-08-072-12/+17
| | | | | | assignments. Dejagnu (June 1999 release) fails overwise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12610 dc483132-0cff-0310-8789-dd5450dbe970
* * reference_encode.out, trval_reference.out: Test encoding ofEzra Peisach2000-08-074-8/+26
| | | | | | | | | | | negative lr_type field. * krb5_decode_test.c: Fix enc_kdc_rep_part tests to trully handle a negative lr_type in a krb5_last_req_entry structure. If KRB5_GENEROUS_LR_TYPE is defined, do a backwards compatibility test as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12609 dc483132-0cff-0310-8789-dd5450dbe970
* * utility.c: Add casts on types being sent to internal functionsEzra Peisach2000-07-295-22/+39
| | | | | | | | | | * krb5_encode_test.c: Declare internal functions as static. * ktest.c: Remove unused functions. Clean up compiler warnings. * trval.c: Add proper prototype for declared functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12590 dc483132-0cff-0310-8789-dd5450dbe970
* kdb5_mkdums.c: Remove unused quit() and compiler warning cleanupEzra Peisach2000-07-282-13/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12589 dc483132-0cff-0310-8789-dd5450dbe970
* * kdc5_hammer.c: Move global (to file) enctype into main to preventEzra Peisach2000-07-282-10/+7
| | | | | | being shadowed in other routines. Remove unused krb5_parse_lifetime(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12588 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_verify.c (check_princ): Compiler warning cleanup. Get ridEzra Peisach2000-07-282-14/+8
| | | | | | of unused function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12587 dc483132-0cff-0310-8789-dd5450dbe970
* t_imp_name.c: Profide full prototypes for internal functionsEzra Peisach2000-07-282-4/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12586 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Add code to handle setting of PASS to constrainTom Yu2000-07-232-9/+24
| | | | | | | | | | | multipass testing to particular passes. dejagnu-1.3 doesn't have support for PASS, so we kludge it here, though some later versions handle it by themselves. (krb_exit): Add new proc to clean up on exit. (kinit): Remove "expect \r" since "expect eof" will drain the pty buffer properly anyway. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12583 dc483132-0cff-0310-8789-dd5450dbe970
* * rsh.exp: Drain buffers on klist test to avoid wedging rsh onTom Yu2000-07-052-2/+9
| | | | | | exit under HP/UX. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12533 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi.exp: Rework significantly to deal with HP/UX lossage thatTom Yu2000-07-042-381/+105
| | | | | | | | | probably resulted from when either the client or the server wound up blocking on tty output. Abstract things a little more. Remove dead duplicate code that used to deal with "-v2". Should figure out why the "-v2" stuff disappeared mysteriously. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12530 dc483132-0cff-0310-8789-dd5450dbe970
* t_imp_name.c: Define GSSAPI_V2 for proper variable typesEzra Peisach2000-07-032-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12514 dc483132-0cff-0310-8789-dd5450dbe970
* kdb5_mkdums.c: Remove unused variableEzra Peisach2000-07-032-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12513 dc483132-0cff-0310-8789-dd5450dbe970
* kdb5_verify.c: Remove unused variableEzra Peisach2000-07-032-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12512 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Add rudimentary support for multiple passes. ForTom Yu2000-07-022-73/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | now, iterate over a few combinations of des_krbtgt and assorted enctype lists. Will eventually allow for separate krb5.conf files for clients and servers. Add varibles RLOGIN and RLOGIN_FLAGS to permit run-time configuration of rlogin program if necessary. Set up an onexit handler that calls stop_kerberos_daemons. Replace many uses of doubled-up send_log and verbose with single calls to verbose -log. Replace instances of send_error with perror where appropriate, since this will cause successor test to fail, which is usually what we want. (setup_root_shell): Replace calls to untested with calls to unsupported; also use note for explanatory text previously printed using untested. Add match string for "connection refused" and collapse common code into a single expect clause by using the -re flag. (start_kerberos_daemons): Conditionalize calls to fail based on $standalone; in the !$standalone case, call perror instead. Calls to fail and pass for a given test should have consistent strings, and extraneous calls to fail should not be made in order to keep the total number of passed and failed tests constant regardless of success of setup steps. Much remains to be done in this area though. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12509 dc483132-0cff-0310-8789-dd5450dbe970
* merge from krb5-1-2-beta4Ken Raeburn2000-06-238-13/+51
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12427 dc483132-0cff-0310-8789-dd5450dbe970
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-018-16/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.exp: Use $KDESTROY -5 to deal with changed behaviorTom Yu2000-02-072-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12020 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Remove default_tgs_enctypes for now as it wasTom Yu2000-02-072-1/+7
| | | | | | | causing tests to fail when the tgt is DES3. Need to investigate further. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12018 dc483132-0cff-0310-8789-dd5450dbe970
* * standalone.exp: Use $KLIST -5 and $KDESTROY -5 to deal withTom Yu2000-02-064-7/+19
| | | | | | | | | | | changed behavior in these programs. Wait for eof in some cases to avoid hanging. * rsh.exp: Wait for eof to prevent hanging. * gssapi.exp: Use $KINIT -5 to deal with new kinit behavior. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12004 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Use $KINIT -5 to deal with modified kinitTom Yu2000-02-062-1/+6
| | | | | | behavior. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12003 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): Add test case for zero-lengthTom Yu1999-11-012-0/+9
| | | | | | SequenceOfType. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11891 dc483132-0cff-0310-8789-dd5450dbe970
* lost date/name line in last checkinKen Raeburn1999-10-261-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11880 dc483132-0cff-0310-8789-dd5450dbe970
* * trval.c (print_tag_type): Use fputs when there's no formatting to doKen Raeburn1999-10-262-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11879 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-268-0/+56
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970