summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add man pages for fakeka and k524initRuss Allbery2006-06-124-0/+161
| | | | | | | | | | | | | | Ticket: 3013 Version_Reported: 1.3.6 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18109 dc483132-0cff-0310-8789-dd5450dbe970
* | krb5.conf option name is udp_preference_limit, not udp_preference_listRuss Allbery2006-06-121-2/+2
| | | | | | | | | | | | | | Ticket: 3468 Version_Reported: 1.4.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18108 dc483132-0cff-0310-8789-dd5450dbe970
* | Fix minor nroff man page problems (stray space, bad cross reference)Russ Allbery2006-06-122-2/+2
| | | | | | | | | | | | | | Ticket: 3010 Version_Reported: 1.4.2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18107 dc483132-0cff-0310-8789-dd5450dbe970
* | Since it appears we don't actually set the conf_tgs_ktypes field except in thisKen Raeburn2006-06-102-23/+2
| | | | | | | | | | | | | | | | | | initial allocation of zero elements, it can be deleted, along with conf_tgs_ktypes_count and the associated code... ticket: 2786 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18105 dc483132-0cff-0310-8789-dd5450dbe970
* | Fix stupid typo in last changeKen Raeburn2006-06-101-1/+1
| | | | | | | | | | | | ticket: 3233 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18104 dc483132-0cff-0310-8789-dd5450dbe970
* | Use new macro FILE_OWNER_OK to examine uid of .k5login file.Ken Raeburn2006-06-101-1/+8
| | | | | | | | | | | | | | | | | | On Mac, define this to accept UNKNOWNUID as well as 0. ticket: 3233 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18103 dc483132-0cff-0310-8789-dd5450dbe970
* | Call krb5_set_error_message any time multiple errno values are translated toKen Raeburn2006-06-091-15/+59
| | | | | | | | | | | | one KRB5_RC_* error code, and a few other places. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18102 dc483132-0cff-0310-8789-dd5450dbe970
* | Don't use GNU linker option --as-needed yetKen Raeburn2006-06-091-1/+1
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18101 dc483132-0cff-0310-8789-dd5450dbe970
* | Free requested-enctype list when freeing up credentials. Reported by RainerKen Raeburn2006-06-081-0/+4
| | | | | | | | | | | | | | | | Weikusat. ticket: 3790 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18093 dc483132-0cff-0310-8789-dd5450dbe970
* | Fixed by having krb5_fcc_interpret call krb5_set_error_message to incorporateKen Raeburn2006-06-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | the lower-level error message into the message displayed by kinit, which has already been changed to use krb5_get_error_message. For example, "kinit(v5): Credentials cache I/O operation failed (No space left on device) when initializing cache". ticket: 3438 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18091 dc483132-0cff-0310-8789-dd5450dbe970
* | copyright noticeKen Raeburn2006-06-081-1/+27
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18090 dc483132-0cff-0310-8789-dd5450dbe970
* | Don't call k5_mutex_destroy when krb5_rc_resolve_type fails, because that'sKen Raeburn2006-06-081-2/+0
| | | | | | | | | | | | | | | | where the mutex would've been initialized. Reported by Shawn Emery. ticket: 3332 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18089 dc483132-0cff-0310-8789-dd5450dbe970
* | Avoid memory leak in error path. Reported by Rainer WeikusatKen Raeburn2006-06-081-1/+3
| | | | | | | | | | | | ticket: 3791 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18088 dc483132-0cff-0310-8789-dd5450dbe970
* | Updated CCAPI version of krb4int_save_credentials_addr toAlexandra Ellwood2006-06-061-1/+1
| | | | | | | | | | | | | | | | | | match the prototype in the headers. ticket: new target-version: 1.5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18084 dc483132-0cff-0310-8789-dd5450dbe970
* | Re-disable python plugin configuration accidentally enabled in an earlier ↵Ken Raeburn2006-06-021-1/+1
| | | | | | | | | | | | checkin git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18077 dc483132-0cff-0310-8789-dd5450dbe970
* | Patch from Alejandro R. Sedeno and Jeffrey Hutzelman to allow krb4 toSam Hartman2006-06-024-16/+326
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | read 32-bit and 64-bit ticket files on 32-bit and 64-bit systems. Previously the ticket file format depended on the ABI. Significant backward compatibility is maintained; the patch works by writing alignment records that are valid (but meaningless) ticket file entries but that allow systems to get realigned. As a consequence an old library will see additional meaningless ticket file entries when it reads a ticket file produced by the new code. These entries are harmless and will be ignored. ticket: 1288 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18076 dc483132-0cff-0310-8789-dd5450dbe970
* | move var decl before codeKen Raeburn2006-06-011-1/+1
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18073 dc483132-0cff-0310-8789-dd5450dbe970
* | krb5 1.5 alpha - memory leaks in krb5kdc due to not freeing error messages Ezra Peisach2006-06-014-11/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the kdc and lib/kadm5/logger.c, krb5_get_error_message needs to be paired with krb5_free_error_message to release returned memory. Essentially a memory leak was introduced for every principal requested that did not exist in the database. Identified by valgrind on the kdc - running kdc_hammer and specifying more principals than are present in the db. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18072 dc483132-0cff-0310-8789-dd5450dbe970
* | Missed a reference to + sizeof() vs * sizeof(). Pointed out byEzra Peisach2006-06-011-1/+1
| | | | | | | | | | | | | | | | | | william fiveash. ticket: 3825 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18071 dc483132-0cff-0310-8789-dd5450dbe970
* | krb5int_get_plugin_dir_data() uses + instead of * in reallocEzra Peisach2006-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In line 570, in reallocating the plugin tree - the memory allocated is (count + 1) + sizeof(*p) instead of (count +1 ) * sizeof(*p) Detected while running the krb5kdc under valgrind with memcheck. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18070 dc483132-0cff-0310-8789-dd5450dbe970
* | Merge about 1/3 of the remaining configure scripts into the top level. ThisKen Raeburn2006-05-3134-390/+330
| | | | | | | | | | | | still leaves out appl and tests, and static library and plugin directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18068 dc483132-0cff-0310-8789-dd5450dbe970
* | krb5-1.5-alpha1-postreleaseTom Yu2006-05-301-1/+1
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18066 dc483132-0cff-0310-8789-dd5450dbe970
* | krb5-1.5-alpha1Tom Yu2006-05-301-1/+1
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18064 dc483132-0cff-0310-8789-dd5450dbe970
* | Build lib/krb4 makefile at top levelKen Raeburn2006-05-263-26/+21
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18046 dc483132-0cff-0310-8789-dd5450dbe970
* | Add copyright noticeKen Raeburn2006-05-261-0/+29
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18045 dc483132-0cff-0310-8789-dd5450dbe970
* | Don't define MODULE_PATHKen Raeburn2006-05-251-1/+0
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18044 dc483132-0cff-0310-8789-dd5450dbe970
* | Properly recognize Mac environments, and set {KRB5,KDB5}_PLUGIN_BUNDLE_DIRKen Raeburn2006-05-251-0/+6
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18043 dc483132-0cff-0310-8789-dd5450dbe970
* | Create crypto, des425 Makefiles from top levelKen Raeburn2006-05-2519-54/+34
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18042 dc483132-0cff-0310-8789-dd5450dbe970
* | Rename locate.h to locate_plugin.h. Change references, update dependenciesKen Raeburn2006-05-2452-390/+390
| | | | | | | | | | | | ticket: 3784 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18037 dc483132-0cff-0310-8789-dd5450dbe970
* | Drop major version number from service-locator function table structure.Ken Raeburn2006-05-242-7/+8
| | | | | | | | | | | | | | Add a typedef name for the structure. Change multiple-inclusion macro name. Add a comment indicating desired symbol name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18036 dc483132-0cff-0310-8789-dd5450dbe970
* | Don't output krb5_config_prefix commands into config.status; do the ↵Ken Raeburn2006-05-241-11/+4
| | | | | | | | | | | | | | | | substitutions in the configure script. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18035 dc483132-0cff-0310-8789-dd5450dbe970
* | Mention the python plugin stuff in configure.in, but inside an "if false"Ken Raeburn2006-05-231-0/+5
| | | | | | | | | | | | | | block, so reconf will build a configure script and it'll be easy to enable for testing. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18034 dc483132-0cff-0310-8789-dd5450dbe970
* | update dependenciesKen Raeburn2006-05-231-7/+7
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18033 dc483132-0cff-0310-8789-dd5450dbe970
* | Include k5-platform.h and fake-addrinfo.h, but not k5-int.hKen Raeburn2006-05-231-1/+2
| | | | | | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18032 dc483132-0cff-0310-8789-dd5450dbe970
* | service location plugin interface needs header installedKen Raeburn2006-05-231-0/+1
| | | | | | | | | | | | | | | | Install <krb5/locate.h>. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18031 dc483132-0cff-0310-8789-dd5450dbe970
* | install headers into include/krb5Ken Raeburn2006-05-2368-2264/+2518
|/ | | | | | | | | | | 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
* Missed change -- don't configure util/profile separatelyKen Raeburn2006-05-181-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18020 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Set and substitute KSU_LIBS, SETENVOBJ, DO_TCL. GenerateKen Raeburn2006-05-1815-108/+42
| | | | | | | | | makefiles for util/et, util/profile, lib/kdb, clients and those clients subdirectories built on UNIX, rather than running configure there. Deleted configure.in scripts for those directories, and changed Makefile.in definitions of thisconfigdir and mydir. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18018 dc483132-0cff-0310-8789-dd5450dbe970
* Remove krb5_init_context macro hack; change all the calls except inKen Raeburn2006-05-1717-18/+16
| | | | | | krb5_gss_init_context to calls to krb5_gss_init_context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18015 dc483132-0cff-0310-8789-dd5450dbe970
* Don't look for pthread_mutexattr_setrobust_npKen Raeburn2006-05-163-14/+8
| | | | | | | | | | Apparently Red Hat's Fedora Core 5 defines it but doesn't declare it, so we'd have to declare it before testing the address. While it was once useful for checking whether the pthread code had been loaded, I think the other tests done now are more effective and this isn't needed any more. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18012 dc483132-0cff-0310-8789-dd5450dbe970
* Add SRCS definition and run make dependKen Raeburn2006-05-166-0/+422
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18011 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2006-05-161-2/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18010 dc483132-0cff-0310-8789-dd5450dbe970
* * lib/kadm5/alt_prof.c (kadm5_get_config_params): Replace filename andKen Raeburn2006-05-1641-189/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | envvar arguments with a flag indicating whether KDC config data should be used. Prototype and all callers changed. (krb5_read_realm_params): Delete config file and env var arguments. Prototype and all callers changed. * lib/kadm5/admin.h (KADM5_CONFIG_PROFILE): Commented out. (struct _kadm5_config_params): Delete field PROFILE. * lib/kadm5/alt_prof.c (kadm5_get_config_params): Don't look at it. (kadm5_free_config_params): Don't free it. * kadmin/testing/tcl/util.t: Remove profile data from config params. * kadmin/testing/util/tcl_kadm5.c (config_mask_flags): Deleted KADM5_CONFIG_PROFILE entry. (parse_config_params): Changed to require 20 parameters instead of 21. * lib/kadm5/unit-test/api.2/init-v2.exp (test100): Deleted. * lib/kadm5/alt_prof.c (krb5_aprof_init): Fetch the list of config files from the library and add the caller-indicated config file to the front of the list. * lib/kadm5/clnt/client_init.c (kadm5_init_krb5_context): New function. * lib/kadm5/clnt/libkadm5clnt.exports: Export it. * lib/kadm5/srv/server_init.c: Include k5-int.h, osconf.h, gssapiP_krb5.h. (kadm5_init_krb5_context): New function. * lib/kadm5/srv/libkadm5srv.exports: Export it. * lib/kadm5/srv/Makefile.in (LOCAL_INCLUDES): Add gssapi directories. * lib/kadm5/admin.h (kadm5_init_krb5_context): Declare it. * kadmin/dbutil/kdb5_destroy.c (kdb5_destroy): Call kadm5_init_krb5_context instead of krb5_init_context. * kadmin/dbutil/dump.c (load_db): Likewise. * kadmin/dbutil/kdb5_util.c (main): Likewise. * kadmin/dbutil/kadm5_create.c (kadm5_create): Likewise. * kadmin/dbutil/kdb5_stash.c (kdb5_stash): Likewise. * kadmin/dbutil/loadv4.c (load_v4db): Likewise. * kadmin/server/ovsec_kadmd.c (main): Likewise. * kadmin/cli/kadmin.c (kadmin_startup): Likewise. * kadmin/testing/util/tcl_ovsec_kadm.c (tcl_ovsec_kadm_init): Likewise. * lib/kadm5/unit-test/lock-test.c (main): Likewise. * lib/kadm5/unit-test/handle-test.c (main): Likewise. * lib/kadm5/unit-test/randkey-test.c (main): Likewise. * lib/kadm5/unit-test/setkey-test.c (main): Likewise. * lib/kadm5/chpass_util.c (_kadm5_chpass_principal_util): Likewise. * lib/kadm5/kadm_rpc_xdr.c (xdr_krb5_principal): Likewise. * lib/krb5/os/init_os_ctx.c (add_kdc_config_file): New function. (os_init_paths): Add new argument KDC; call add_kdc_config_file if true. * lib/krb5/krb/init_ctx.c (krb5int_init_context_kdc): New function. (init_common): Add new argument KDC, passed to krb5_os_init_context. * lib/krb5/libkrb5.exports: Export krb5int_init_context_kdc. * k5-int.h (krb5_os_init_context): Update decl. * lib/kadm5/srv/server_init.c (kadm5_init): Call krb5int_init_context_kdc. * krb524/krb524d.c (main): Likewise. * lib/kadm5/unit-test/api.2/init-v2.exp: Don't run test 154 for error for $KRB5_KDC_PROFILE file not present. * lib/krb5/os/init_os_ctx.c (os_get_default_config_files): Rewrite KLL test so as not to confuse Emacs indentation support. * lib/gssapi/krb5/init_sec_context.c (kg_kdc_flag_mutex, kdc_flag): New variables. (krb5_gss_init_context, krb5_gss_use_kdc_context): New functions. * lib/gssapi/krb5/gssapiP_krb5.h (kg_kdc_flag_mutex): Declare. (krb5_gss_init_context, krb5_gss_use_kdc_context): Declare. (krb5_init_context): Define as macro to invoke krb5_gss_init_context for now. * lib/gssapi/gss_libinit.c (gssint_lib_init): Initialize the mutex. (gssint_lib_fini): Destroy it. * lib/gssapi/libgssapi_krb5.exports: Export krb5_gss_use_kdc_context. * lib/kadm5/srv/server_init.c (kadm5_init): Don't complain if the config files specify an admin server, since we now look at krb5.conf as well. * lib/kadm5/unit-test/api.2/init-v2.exp: Delete test test114 for bad server params. * plugins/kdb/db2/adb_openclose.c (osa_adb_init_db): Use krb5int_init_context_kdc instead of krb5_init_context. * kdc/rtest.c (main): Likewise. * kdc/fakeka.c (main): Likewise. * kdc/main.c (main, init_realm): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18009 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (krb5kdc, rtest): Don't explicitly add kdb5 libs to the linkKen Raeburn2006-05-151-2/+2
| | | | | | command. (And we link against libraries, not dependency lists, anyways...) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18008 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c (initialize_realms): Use precise size allocation for dbname= parameterKen Raeburn2006-05-131-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18007 dc483132-0cff-0310-8789-dd5450dbe970
* Have Tcl script error out if initialization failsKen Raeburn2006-05-131-8/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18006 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Don't create a makefile for posix subdirKen Raeburn2006-05-131-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18005 dc483132-0cff-0310-8789-dd5450dbe970
* * syslog.c: Discard all the non-Windows bits, since we don't build this onKen Raeburn2006-05-131-248/+1
| | | | | | UNIX. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18004 dc483132-0cff-0310-8789-dd5450dbe970
* * getuid.c, memmove.c, sscanf.c, strcasecmp.c, strdup.c, strerror.c,Ken Raeburn2006-05-138-1240/+0
| | | | | | vfprintf.c, vsprintf.c: Remove files we don't compile anywhere. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18003 dc483132-0cff-0310-8789-dd5450dbe970
* Use unsigned char rather than u_int8_t in random_string()Tom Yu2006-05-131-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18002 dc483132-0cff-0310-8789-dd5450dbe970