summaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove test pass that exercises AES256 over UDP, since we also haveKen Raeburn2007-03-141-12/+0
| | | | | | one that exercises the same configuration over TCP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19224 dc483132-0cff-0310-8789-dd5450dbe970
* Remove from unused_passes a configuration also listed in the default passesKen Raeburn2007-03-091-12/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19215 dc483132-0cff-0310-8789-dd5450dbe970
* Do use valgrind on /bin/sh commands, since that's how we launch kadmind ↵Ken Raeburn2007-03-061-1/+2
| | | | | | currently git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19212 dc483132-0cff-0310-8789-dd5450dbe970
* Delete more stuff for 'clean' and 'distclean' targetsKen Raeburn2007-03-021-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19198 dc483132-0cff-0310-8789-dd5450dbe970
* Conditionalize more bits that might not be defined by the OSKen Raeburn2007-02-161-0/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19167 dc483132-0cff-0310-8789-dd5450dbe970
* Don't need to register WRFILE: keytab type, it's already in the compiled-inKen Raeburn2007-02-011-10/+0
| | | | | | list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19132 dc483132-0cff-0310-8789-dd5450dbe970
* Memory leak in tests/gssapi/t_imp_name.cEzra Peisach2006-12-311-1/+3
| | | | | | | | | Memory leak by not releasing name_oid from gss_display_name(). (conditional on GSSAPI_V2 being defined). ticket:new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19024 dc483132-0cff-0310-8789-dd5450dbe970
* Inovke krb5_rc_close to shutdown cache - and check for memory leaksEzra Peisach2006-12-181-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18960 dc483132-0cff-0310-8789-dd5450dbe970
* Free allocated memory when no longer usedEzra Peisach2006-10-181-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18726 dc483132-0cff-0310-8789-dd5450dbe970
* Invoke krb5_free_principal to remove memory leakEzra Peisach2006-10-181-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18725 dc483132-0cff-0310-8789-dd5450dbe970
* Call freeaddrinfo at end - memory leakEzra Peisach2006-10-181-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18724 dc483132-0cff-0310-8789-dd5450dbe970
* Pass VALGRIND in to runtest. When it's set, redefine spawn to use it forKen Raeburn2006-10-152-2/+41
| | | | | | most commands starting with "/" but not "/bin/sh" and certain others. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18710 dc483132-0cff-0310-8789-dd5450dbe970
* Use $(VALGRIND) when running programs using $(KRB5_RUN_ENV) orKen Raeburn2006-10-137-28/+26
| | | | | | | | | | | | | | | | | | $(RUN_SETUP). Replaces old hack with MAYBE_VALGRIND added to RUN_ENV in a way that would break in some of the tests. Set VALGRIND in site.exp in tests/dejagnu. (Not used yet.) Runs some shell scripts under valgrind, rather than changing them to run only the executables under valgrind; this is mostly okay, just creates lots of extra log data, and requires --trace-children=yes. This should work for any instrumentation program invocation that gets followed immediately by the name and argument list for the program being instrumented. For example, VALGRIND="env LD_PRELOAD=..." should work, though I haven't tested it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18699 dc483132-0cff-0310-8789-dd5450dbe970
* Add a policy to the database, then after the dump and restore, checkKen Raeburn2006-10-121-0/+31
| | | | | | | | | | that it's still there. ticket: 4355 tags: pullup target_version: 1.5.2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18691 dc483132-0cff-0310-8789-dd5450dbe970
* skip over verbose (protocol trace) debugging outputKen Raeburn2006-10-111-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18678 dc483132-0cff-0310-8789-dd5450dbe970
* make dependTom Yu2006-10-064-17/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18652 dc483132-0cff-0310-8789-dd5450dbe970
* work around failure to load into nonexistent dbTom Yu2006-07-011-0/+5
| | | | | | | | | | | | | * src/tests/Makefile.in (kdb_check): Run kdb5_util create after destroying to work around a behavior change from DAL integration. ticket: new target_version: 1.5 tags: pullup version_reported: 1.5 component: test git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18313 dc483132-0cff-0310-8789-dd5450dbe970
* test kdb5_util dump/load functionality in dejagnuKen Raeburn2006-06-301-0/+58
| | | | | | | | | | | | | | | This new test just dumps and reloads the database. It doesn't examine the resulting database, but kinit and other tests are run after it, using the reloaded database. * standalone.exp (dump_and_reload): New proc. (doit): Invoke it. ticket: new target_version: 1.5 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18308 dc483132-0cff-0310-8789-dd5450dbe970
* * kdc/network.c (make_toolong_error): New function.Ken Raeburn2006-06-261-0/+32
| | | | | | | | | | | | | (process_tcp_connection): If the specified length exceeds the internal limit, stop reading and send back a FIELD_TOOLONG error. * tests/dejagnu/krb-standalone/standalone.exp (doit): When testing TCP mode, connect to the KDC and send a length of -1, and check that it sends back a non-empty message. ticket: 3923 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18233 dc483132-0cff-0310-8789-dd5450dbe970
* Spawn ftp client with "-d" and "-v" for better debuggingKen Raeburn2006-06-211-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18186 dc483132-0cff-0310-8789-dd5450dbe970
* Change a bunch of calls to ctype macros (those cited by Jeff, and aKen Raeburn2006-06-161-2/+2
| | | | | | | | few others) to cast the character values to unsigned char. ticket: 3445 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18156 dc483132-0cff-0310-8789-dd5450dbe970
* Merge from branches/mechglue. Initial integration of Sun-donatedTom Yu2006-06-141-1/+1
| | | | | | | | | | | | | | | | mechglue and SPNEGO implementations. Additional changes outside of src/lib/gssapi: * src/configure.in: Add lib/gssapi/mechglue and lib/gssapi/spnego to list of directories to output Makefile in. * src/lib/rpc/unit-test/rpc_test.0/expire.exp (expired): Update regexp for mechglue. * src/tests/dejagnu/krb-standalone/v4gssftp.exp (v4ftp_test): Update "Miscellaneous failure" regexp for mechglue. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18131 dc483132-0cff-0310-8789-dd5450dbe970
* Rename locate.h to locate_plugin.h. Change references, update dependenciesKen Raeburn2006-05-244-7/+7
| | | | | | ticket: 3784 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18037 dc483132-0cff-0310-8789-dd5450dbe970
* install headers into include/krb5Ken Raeburn2006-05-235-40/+43
| | | | | | | | | | | Create include/krb5 directory, and put krb5.h and (k5-)locate.h there in the build tree. Stub krb5.h in main include directory just includes krb5/krb5.h. Update dependencies, and add dependencies in a couple Makefiles that didn't have them. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18030 dc483132-0cff-0310-8789-dd5450dbe970
* * tests/dejagnu/config/default.exp (setup_krb5_conf): Don't add suffix toKen Raeburn2006-05-111-1/+1
| | | | | | | | library name in generated config file. * kadmin/testing/proto/krb5.conf.proto: Drop suffix from library name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17999 dc483132-0cff-0310-8789-dd5450dbe970
* Change kdb plugin code to use the new plugin support instead ofKen Raeburn2006-04-251-1/+1
| | | | | | | directly calling dlopen and friends. Change the test config files to refer to "db2.so" instead of "db2". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17961 dc483132-0cff-0310-8789-dd5450dbe970
* Set myfulldirKen Raeburn2006-04-251-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17953 dc483132-0cff-0310-8789-dd5450dbe970
* Partial merge from Novell LDAP integration branch, not including theKen Raeburn2006-04-132-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | actual LDAP bits: * include/kdb.h (krb5_db_entry_new): Add MASK field indicating what's changed. (KRB5_KDB_SRV_TYPE_*): New macros indicating which type of service is accessing the database. * lib/kadm5/srv/svr_principal.c: Set mask field. * lib/kadm5/srv/server_misc.c, server_init.c: Pass service type to krb5_db_open. * kadmin/dbutil/kdb5_stash.c (kdb5_stash): Pass service type to krb5_db_open. * kadmin/dbutil/kdb5_util.c (open_db_and_mkey): Pass service type to krb5_db_open. * kdc/main.c (init_realm): Pass service type to krb5_db_open. * lib/kadm5/srv/svr_principal.c: Set mask field. * kadmin/dbutil/dump.c (load_db): Pass service type to krb5_db_open. * lib/kdb/kdb5.h (KRB5_KDB_SRV_TYPE_*): New macros. * lib/kdb/err_handle.{c,h}: Deleted. * lib/kadm5/clnt/err_handle.{c,h}: Deleted. (krb5_db_clr_error): Declaration deleted. * lib/kdb/Makefile.in, lib/kadm5/clnt/Makefile.in: Don't build them. * lib/kdb/kdb5.c, lib/kadm5/clnt, lib/kadm5/srv: Use new error-message API. * kdc/do_tgs_req.c (process_tgs_req): Use new error-message API. * kdc/kdc_preauth.c (check_padata) * kdc/do_as_req.c (process_as_req): * kdc/main.c (init_realm): * kadmin/server/ovsec_kadmd.c (main, do_schpw): * schpw.c (process_chpw_request): * kadmin/server/server_stubs.c: * kadmin/cli/kadmin.c (extended_com_err_fn): New function. (kadmin_startup): Tell com_err library to use it, for kadmin.local. * lib/kdb/libkdb5.exports: Don't export krb5_db_clr_error. * lib/kdb/Makefile.in: (SRCS, STLIBOBJS): Don't build err_handle.c. * lib/kdb/kdb5.c (kdb_load_library): Don't pass argument to init_library. (krb5_db_clr_error): Function deleted. * lib/kdb/kdb5.h (struct _kdb_vftabl): Remove argument from init_library field. * lib/kadm5/logger.c (krb5_klog_init): Save the krb5_context pointer. (klog_com_err_proc): Use it, and call new error-message API. * lib/kadm5/srv/svr_principal.c: Use new error-message API. * kadmin/dbutil/kdb5_util.c (extended_com_err_fn): New function. (main): Tell com_err library to use it. * plugins/kdb/db2: Use new error-message APIs and updated DAL interface. * lib/kadm5/kadm_rpc.h: Delete err_str fields. * lib/kadm5/kadm_rpc_xdr.c: Don't process them. * kadmin/server/server_stubs.c: Don't use ret.err_str field. * include/k5-thread.h (k5_key_t): Deleted unused values. * lib/kdb/kdb5.h (KDB_MODULE_SECTION): Change db_modules to dbmodules. (KDB_MODULE_DEF_SECTION): New macro. * tests/Makefile.in (krb5.conf): Rename db_modules to dbmodules. * tests/dejagnu/config/default.exp (setup_krb5_conf): Likewise. * kadmin/testing/proto/krb5.conf.proto: Likewise. * lib/kdb/libkdb5.exports: Do export krb5_def_store_mkey. * lib/kadm5/admin.h (KADM5_CPW_FUNCTION, KADM5_RANDKEY_USED): New macros. (struct _kadm5_config_params): New field kpasswd_server. * lib/krb5/error_tables/kdb5_err.et (KRB5_KDB_SERVER_INTERNAL_ERR): New error code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17899 dc483132-0cff-0310-8789-dd5450dbe970
* Don't include kdb.h from k5-int.h; instead, include it in the handfulKen Raeburn2006-04-134-18/+17
| | | | | | of places where it's actually needed. Update dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17898 dc483132-0cff-0310-8789-dd5450dbe970
* Remove ChangeLog files from the source tree. From now on, theSam Hartman2006-04-1115-3016/+0
| | | | | | | subversion commit log entry needs to include information that would have been in the changelog. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17893 dc483132-0cff-0310-8789-dd5450dbe970
* Remove .Sanitize and .rconf files, no longer usedKen Raeburn2006-04-1112-464/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17888 dc483132-0cff-0310-8789-dd5450dbe970
* make depend, now with dependency sortingKen Raeburn2006-03-3110-74/+79
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17811 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2006-03-274-18/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17786 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (krb5.conf): New target. Use config-files/krb5.conf, butKen Raeburn2006-03-142-2/+14
| | | | | | | | add db_module_dir tag. (kdb_check): Depend on it. (RUN_SETUP): Use it for KRB5_CONFIG. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17739 dc483132-0cff-0310-8789-dd5450dbe970
* Instead of arbitrary division of headers into include and include/krb5, withKen Raeburn2006-03-1115-28/+42
| | | | | | | | | | | | include directives sometimes using krb5/foo.h and sometimes using foo.h, and -I options always given for both directories in both source and build trees, push include/krb5/* up a level and drop the krb5 directory (except, for the moment, the change log). Updated #include directives, -I options, and dependencies accordingly, and deleted one or two bits of old, unused code that was noticed in the process. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17730 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2006-03-084-7/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17708 dc483132-0cff-0310-8789-dd5450dbe970
* Include krb5.h after k5-int.hSam Hartman2005-12-202-1/+36
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17572 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (test_getpw.$(OBJEXT)): New intermediate target.Ken Raeburn2005-11-292-2/+10
| | | | | | | (test_getpw): Don't build directly from source. (test_getsockname): New target. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17511 dc483132-0cff-0310-8789-dd5450dbe970
* * test_getsockname.c: Include autoconf.h.Ken Raeburn2005-11-292-1/+8
| | | | | | (main): Fix type of variable 'i' used for size of socket address. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17510 dc483132-0cff-0310-8789-dd5450dbe970
* make dependTom Yu2005-11-297-40/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17505 dc483132-0cff-0310-8789-dd5450dbe970
* Fix additional cases where krb5.h is included before k5-int.h. In most cases,Ken Raeburn2005-11-183-2/+6
| | | | | | | | | | | it suffices to remove the inclusion of k5-int.h, sometimes including errno.h or another header. In a couple cases, include order has been changed, or k5-int.h has been included instead of krb5.h. ticket: 3236 status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17494 dc483132-0cff-0310-8789-dd5450dbe970
* This fixes an all-too-frequent nightly-testing failure on Tru64Ken Raeburn2005-10-192-2/+13
| | | | | | | * default.exp (setup_krb5_conf): Don't include a non-listening KDC port in the client's config file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17434 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (resolve, addrinfo-test, fake-addrinfo-test): Don't use "$<"Ken Raeburn2005-10-072-3/+8
| | | | | | outside of implicit rules. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17412 dc483132-0cff-0310-8789-dd5450dbe970
* * create/kdb5_mkdums.c (set_dbname_help): Set default realm and construct anKen Raeburn2005-10-044-20/+48
| | | | | | | argument vector describing the database pathname, before calling krb5_db_open. * verify/kdb5_verify.c (set_dbname_help): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17401 dc483132-0cff-0310-8789-dd5450dbe970
* mine:Ken Raeburn2005-09-094-14/+67
| | | | | | | | | | | | | | | | | | | | | * fake-addrinfo-test.c: New file. * Makefile.in (check): Do pass arguments to addrinfo-test invocation added by Marc's patch. (fake-addrinfo-test): New target. (all): Depend on it. (SRCS): Fix typo in last change. Add fake-addrinfo-test.c. (OBJS): Add fake-addrinfo-test.o. from Marc Aurele La France: * Makefile.in: Build addrinfo-test. * addrinfo-test.c (main): 'numeric' -> 'numerichost'; Add -n option to set AI_NUMERICSERV (if available); print usage message when no arguments are given. ticket: 3176 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17379 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Initialize can_get_root to yes.Ken Raeburn2005-09-082-0/+25
| | | | | | | (setup_root_shell): If can_get_root is "no", log a message and return, without making another attempt. On failing attempts, set can_get_root to "no". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17375 dc483132-0cff-0310-8789-dd5450dbe970
* Delete .cvsignore files; contents have already been Sam Hartman2005-08-248-14/+0
| | | | | | set on svn:ignore properties. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17353 dc483132-0cff-0310-8789-dd5450dbe970
* All configure.in scripts: Use K5_AC_INIT instead of AC_INITKen Raeburn2005-08-202-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17342 dc483132-0cff-0310-8789-dd5450dbe970
* Fix to last change: Add the new db info lines to krb5.conf files always, notKen Raeburn2005-08-172-12/+8
| | | | | | | just kdc file, so kadmin.local (etc) invocations using other config files still see them. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17334 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (site.exp): Write KRB5_DB_MODULE_DIR setting into site.exp.Ken Raeburn2005-08-174-2/+28
| | | | | | | | | | Depend on Makefile. * config/default.exp (setup_kerberos_files): Don't write database_name entry into KDC config file. (setup_krb5_conf): Write new config lines for the realm into the krb5.conf file for the KDC. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17333 dc483132-0cff-0310-8789-dd5450dbe970