summaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* * default.exp (setup_krb5_conf): Default to not using SRV recordsTom Yu2004-06-172-0/+6
| | | | | | to look up KDCs, to avoid timeouts on KRBTEST.COM's DNS servers. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16478 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_mkdums.c (main): Fix memory leak of master principal at exitEzra Peisach2004-05-242-0/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16352 dc483132-0cff-0310-8789-dd5450dbe970
* * debug.h (test): Macro renamed from "assert".Ken Raeburn2004-04-294-10/+15
| | | | | | * krb5_decode_test.c, krb5_encode_test.c: Callers updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16283 dc483132-0cff-0310-8789-dd5450dbe970
* updated dependenciesKen Raeburn2004-04-244-24/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16269 dc483132-0cff-0310-8789-dd5450dbe970
* Set new variable portbase to supplied $PORTBASE or a default.Ken Raeburn2004-03-1513-49/+104
| | | | | | | | | Use it to compute all port numbers. This should help reduce conflicts between multiple simultaneous test runs, if they supply different $PORTBASE values. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16169 dc483132-0cff-0310-8789-dd5450dbe970
* * rcp.exp (stop_rsh_daemon): Check for any output before eof, causing any suchKen Raeburn2004-02-263-2/+18
| | | | | | | info to be dumped into the debug log. * rsh.exp (stop_rsh_daemon): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16127 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi.exp (doit): Fix typo in log messageKen Raeburn2004-02-262-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16126 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (passes): Add "mode=udp" to existing pass specifications. Add aKen Raeburn2004-02-262-1/+48
| | | | | | | | | | | new pass which does AES and "mode=tcp". (setup_kerberos_files, setup_krb5_conf): Check global var "mode" and use it to force UDP or TCP communication between client and KDC. Also, have clients try another random port where we don't expect anything to be listening. ticket: 2285 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16125 dc483132-0cff-0310-8789-dd5450dbe970
* Change PRIOCNTL_HACK code to use "==" rather than "eq", as "eq" is notTom Yu2004-02-132-3/+8
| | | | | | | | | | available in tcl-8.3. ticket: new target_version: 1.3.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16071 dc483132-0cff-0310-8789-dd5450dbe970
* priocntl workaround for Solaris 9 pty-close bugTom Yu2004-02-136-1/+54
| | | | | | | | | | | | Implement gross hack to use priocntl to work around the Solaris 9 pty-close bug. Run expect at a higher class "FX" priority than spawned processes, which run at a lower class "FX" priority. "make check" needs to start from a process which has FX priority >= 30 and FX priority limit >= 30. Thanks to Bill Sommerfeld for the hints. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16069 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi.exp (doit): Run server with additional options to export and re-importKen Raeburn2004-02-102-1/+7
| | | | | | | | | the GSSAPI context, and log info to a file in tmpdir. ticket: 2166 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16049 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2003-12-154-23/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15928 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (passes): Add an AES-only pass.Ken Raeburn2003-12-132-1/+46
| | | | | | | | | | | | (start_kerberos_daemons): Check for error "No principal in keytab matches desired name". (dump_db): New proc, for debugging. (spawn_xterm): Add GSSCLIENT to list of exported variables. ticket: 2066 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15915 dc483132-0cff-0310-8789-dd5450dbe970
* * telnet.exp: Skip tests if no DES key types are enabledKen Raeburn2003-12-132-0/+10
| | | | | | | ticket: 2066 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15914 dc483132-0cff-0310-8789-dd5450dbe970
* * gssftp.exp (ftp_test): Look for "GSSAPI authentication failed" errorKen Raeburn2003-12-132-0/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15913 dc483132-0cff-0310-8789-dd5450dbe970
* Send generalstring not octetstring in etype_info2. Accept eitherSam Hartman2003-07-222-5/+5
| | | | | | | | | | | | form. Also, if a etype_info fails to decode, skip it rather than failing to process the AS reply. Ticket: 1681 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15723 dc483132-0cff-0310-8789-dd5450dbe970
* * resolve.c (main): If gethostbyname fails, report the failing hostnameKen Raeburn2003-07-222-1/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15711 dc483132-0cff-0310-8789-dd5450dbe970
* be more flexible in handling failures getting root access in test suiteKen Raeburn2003-06-052-2/+10
| | | | | | | | | | | * default.exp (setup_root_shell): Check for "not authorized". Map eof to unsupported. ticket: new target_version: 1.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15582 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (setup_root_shell): Don't try to use the procedureTom Yu2003-06-042-3/+6
| | | | | | "-" when handling error messages from rlogin. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15563 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (kdb_check): Remove uses of "dump -old", etc., sinceTom Yu2003-06-042-9/+6
| | | | | | | | | | it doesn't work anymore given the new default for triple-DES master keys. ticket: 1190 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15562 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (start_kerberos_daemons): "cannont" => "cannot"Ken Raeburn2003-06-032-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15555 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (setup_root_shell): Handle error messages indicating "-x" isn'tKen Raeburn2003-06-032-1/+15
| | | | | | supported. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15545 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Default RLOGIN_FLAGS to "-x".Ken Raeburn2003-06-012-1/+33
| | | | | | | | | (start_kerberos_daemons): Watch for "Cannot bind server socket" and log it. Watch for "no sockets set up" and report an error. (setup_root_shell): Watch for "Cannot assign requested address", log it and give up. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15541 dc483132-0cff-0310-8789-dd5450dbe970
* make-depend updatesKen Raeburn2003-05-244-19/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15490 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_mkdums.c (main): When attempting to register writableEzra Peisach2003-05-222-2/+9
| | | | | | | | | | keytab, do not fail if error is KRB5_KT_TYPE_EXISTS. Ticket: 1501 Target_Version: 1.3 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15464 dc483132-0cff-0310-8789-dd5450dbe970
* Set length correctly in krb5_get_in_tkt_with_password if password isTom Yu2003-05-214-17/+27
| | | | | | | | | | actually passed in. Also, fix test suite to be more lenient about password prompts, which changed under the previous patches for this ticket. ticket: 1480 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15463 dc483132-0cff-0310-8789-dd5450dbe970
* Sequence numbers are now unsigned. Implement lenient parser forTom Yu2003-05-183-25/+207
| | | | | | | | | | | sequence numbers which folds received negative sequence numbers into positive unsigned numbers. Constrain the space of initial sequence numbers to facilitate backwards compatibility. ticket: 1262 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15457 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (spawn_xterm): Add KPASSWD and REALMNAME to the list of exportedKen Raeburn2003-05-172-1/+6
| | | | | | variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15452 dc483132-0cff-0310-8789-dd5450dbe970
* Cleanup memory in asn.1 testsuite to allow for leak checkingEzra Peisach2003-05-126-94/+623
| | | | | | | | | | | | | | | | | | | | | | | * krb5_decode_test.c: Modify decode_run macro to take a cleanup handler to free allocated memory. Add static handlers to free krb5_alt_method, passwd_phrase_element and krb5_enc_data as the krb5 library does not handle at this time. * krb5_encode_test.c: Free krb5_context at end. Utilize the many ktest_empty and detroy functions to cleanup memory. * ktest.h, ktest.c: Add many ktest free and empty functions to cleanup allocated structures in tests. * utility.c (krb5_data_hex_parse): Free temporary data. With these changes, one can then test for memory leaks in the asn.1 and krb5_free functions. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15413 dc483132-0cff-0310-8789-dd5450dbe970
* Implement encoders for etype_info2 and add support to s2kparams forSam Hartman2003-05-066-0/+105
| | | | | | | | | decoders. Ticket: 1454 Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15393 dc483132-0cff-0310-8789-dd5450dbe970
* Test AES. ** Not all tests pass at present. **Ken Raeburn2003-04-182-15/+57
| | | | | | | | | | | | | | * default.exp: Add passes for testing AES. (start_kerberos_daemons): Add a small delay between starting the "tail -f" processes and appending the markers to their files. (spawn_xterm): Add RLOGIN, RLOGIND, FTP, and FTPD to the list of variables to export to the environment. Check that variables are defined before exporting them. ticket: 1418 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15361 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (start_kerberos_daemons): If we get a timeoutTom Yu2003-03-282-0/+9
| | | | | | | looking for the mark, log out the last 10 lines of the kdc logfile. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15309 dc483132-0cff-0310-8789-dd5450dbe970
* fix test suite to reflect loss of des3-krb4Tom Yu2003-03-266-86/+42
| | | | | | | | | | | | | | Fix a few things broken by fix for MITKRB5-SA-2003-004, since kiniting to a des3 TGT intentionally no longer works. Remove code to set up kadmind srvtab, as it's not needed anymore. ticket: new status: open target_version: 1.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15303 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (setup_root_shell): If we get connection refused messages,Ken Raeburn2003-03-142-1/+16
| | | | | | | followed by no unrecognized errors and then eof, report it as an unsupported test. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15279 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (start_kerberos_daemons): Use correct argument toTom Yu2003-02-052-1/+6
| | | | | | "-4" flag. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15152 dc483132-0cff-0310-8789-dd5450dbe970
* disable krb4 by defaultSam Hartman2003-02-042-1/+5
| | | | | | | | | | | | By default, we disable krb4 in the KDC. This means that -4 none is the default mode. Krb4 is reenabled for the dejagnu tests. ticket: new Tags: enhancement git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15149 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (start_kerberos_daemons): Record more information when "tail -f"Ken Raeburn2003-01-232-4/+20
| | | | | | | | | doesn't show the mark written to the log file. Look for and discard non-matching lines. (setup_root_shell): Ignore the message displayed by rlogin when a connection is refused to one address but other addresses are available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15132 dc483132-0cff-0310-8789-dd5450dbe970
* * kdc5_hammer.c (verify_cs_pair): Use krb5_free_creds() instead ofEzra Peisach2003-01-122-2/+7
| | | | | | krb5_free_cred_contents() to cleanup memory leak. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15112 dc483132-0cff-0310-8789-dd5450dbe970
* Use markers in Makefile.in rather than rules in configure.in to indicate whenKen Raeburn2003-01-102-9/+6
| | | | | | | | to use the lib.in and libobj.in makefile fragments. Pushing this per-directory info into Makefile.in will make it a little easier to work on combining configure scripts for multiple directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15107 dc483132-0cff-0310-8789-dd5450dbe970
* Only system headers should declare errnoSam Hartman2003-01-052-1/+4
| | | | | | | | | | | | | Many parts of krb5 declare errno in source files using extern int errno. This has not been needed in ANSI C for a long time, and actively breaks modern versions of glibc. So these declarations are removed and errno.h included where necessary. Ticket: new Component: krb5-build git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15082 dc483132-0cff-0310-8789-dd5450dbe970
* * standalone.exp: Only run the keytab to srvtab tests if kerberos 4Ezra Peisach2003-01-012-1/+8
| | | | | | support is compiled into the source tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15076 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesTom Yu2002-12-121-7/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15047 dc483132-0cff-0310-8789-dd5450dbe970
* Oops, missed a few checks for eofTom Yu2002-11-092-8/+6
| | | | | | | ticket: 1249 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14986 dc483132-0cff-0310-8789-dd5450dbe970
* tests/dejagnu leaks ptysTom Yu2002-11-092-4/+38
| | | | | | | | | | | * default.exp: Add (disabled) debugging code for catching leaking ptys. expect eof from the correct spawn_ids when killing kdc and kadmind to avoid leaking ptys. ticket: new status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14984 dc483132-0cff-0310-8789-dd5450dbe970
* For sam_challenge do not encode optional strings if string not present.Ezra Peisach2002-11-074-3/+16
| | | | | | | | Previously, a string of length zero was transmitted. ticket: 1224 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14974 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (stop_kerberos_daemons): Kill, expect eof, wait, inTom Yu2002-10-072-2/+8
| | | | | | | that order. Avoids delivery of multiple signals (HUP+TERM) to KDC daemons when shutting down. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14911 dc483132-0cff-0310-8789-dd5450dbe970
* * rsh.exp (rsh_test): Explicitly call stop_rsh_daemon upon passTom Yu2002-09-302-0/+6
| | | | | | for "encrypted rsh" test, to avoid zombies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14908 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp (start_kerberos_daemons): Fix to use "tail -f" toTom Yu2002-09-292-74/+99
| | | | | | | check for setup messages from daemons; this avoids a few race conditions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14907 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (mydir): Add missing mydir linesEzra Peisach2002-09-242-0/+5
| | | | | | ticket: 1188 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14894 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-08-294-12/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14791 dc483132-0cff-0310-8789-dd5450dbe970