Commit Graph

1915 Commits

Author SHA1 Message Date
Johan Danielsson
61e743ecc8 use full month name, and add LIBRARY section
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11248 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 14:46:20 +00:00
Jacques A. Vidrine
e8a466e5d8 = Add a knob `dns_lookup_realm' to control global use of dns-locate for
domain to realm mappings.

= Add a special token (`dns_locate') to control use of dns-locate
  on a domain-by-domain basis in the [domain_realms] section.

= Add a knob `dns_lookup_realm_labels' to specify which labels
  to use with dns-locate.  The default is to use only `_kerberos'.
  Set to `dns_lookup_realm_labels = krb5-realm _kerberos' for
  compatibility with previous releases.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 13:36:57 +00:00
Jacques A. Vidrine
1d68b59387 Rename the srv_lookup' option to dns_lookup_kdc'.
`srv_lookup' can still be specified for backwards compatibility.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11244 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 13:36:47 +00:00
Assar Westerlund
7613548436 (krb5_425_conv_principal_ext): lookup AAAA rrs before A ones when
using the resolver to verify a mapping, also use getaddrinfo when
resolver is not available


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11235 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-26 13:31:40 +00:00
Assar Westerlund
f5c091c294 make it use getarg so that it can handle --help and --version (and
thus make check can pass)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11216 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 03:43:18 +00:00
Johan Danielsson
b47783e83f we seem to call KRB5KDC_ERR_KEY_EXP KRB5KDC_ERR_KEY_EXPIRED, so define
the former to the latter


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-22 10:06:20 +00:00
Assar Westerlund
9d521d4e04 add dependencies from the generated source files to the header files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11190 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-21 16:58:58 +00:00
Johan Danielsson
1eedc8c8b0 more krb5_ssize_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-21 12:21:57 +00:00
Johan Danielsson
d62c06839a ssize_t -> krb5_ssize_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11182 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-21 09:08:07 +00:00
Johan Danielsson
879fc6b8bc more, mostly whitespace, fixes from Thomas Klasusner
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 17:07:29 +00:00
Johan Danielsson
8b18192879 correct documentation for verify_ap_req_nofail
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 14:53:03 +00:00
Johan Danielsson
7973bfd426 hmm, back out previous, since it was correct after all
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 14:48:31 +00:00
Johan Danielsson
a6419d60fa (fail_verify_is_ok): correct inverted return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 11:31:01 +00:00
Johan Danielsson
a20fa33afa (verify_common): the nofail option is the logic inverse of the secure
parmeter


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11150 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 11:28:49 +00:00
Johan Danielsson
066ef11056 rename syslog_data to avoid name conflicts (from Mattias Amnefelt)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11148 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 09:49:09 +00:00
Johan Danielsson
d69ee8c06b socklen_t -> krb5_socklen_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 13:51:37 +00:00
Johan Danielsson
4f77dbe6b1 don't bail out if parsing of a file fails, just warn about it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 13:46:10 +00:00
Johan Danielsson
6ab88b50af (krb5_get_default_config_files): ignore duplicate files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11121 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 12:13:15 +00:00
Johan Danielsson
189c0279af turn strings into pointers, so we can assign to them
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 20:52:24 +00:00
Johan Danielsson
ce48668948 (get_addrs_int): initialise res if SCAN_INTERFACES is not set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 20:50:15 +00:00
Johan Danielsson
c84480bd74 fix various borked stuff in previous commits
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 19:42:18 +00:00
Assar Westerlund
d27b1c7b05 removed unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11108 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 19:00:10 +00:00
Jacques A. Vidrine
4f91789b25 If krbhst fails to find an entry for `kpasswd_server', it will
fallback to `admin_server'.  This will wind up returning address
info with SOCK_STREAM type, which will cause the password change to
mysteriously fail (since kpasswd is UDP only).

Hack around the problem by explicitly requesting UDP when we
fallback to `admin_server'.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 18:48:19 +00:00
Johan Danielsson
04e8a9438f check return value of krb5_sockaddr2address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11102 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-15 08:23:07 +00:00
Johan Danielsson
9cc8a49534 get the default keytab from KRB5_KTNAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-15 07:35:48 +00:00
Johan Danielsson
a431d3748e allow parsing of more than one file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11098 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-14 17:45:38 +00:00
Johan Danielsson
0b705c8b67 allow changing config files with the function krb5_set_config_files,
there are also related functions krb5_get_default_config_files and
krb5_free_config_files; these should work similar to their MIT
counterparts


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-14 17:37:05 +00:00
Johan Danielsson
05b5c444ac allow the use of more than one config file by using the new function
krb5_config_parse_file_multi


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11096 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-14 17:35:03 +00:00
Johan Danielsson
2a485ca058 add some code to print the read config file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-13 15:04:28 +00:00
Johan Danielsson
d8d37a8daf on second thoughts, move stdarg to krb5-protos.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11088 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-12 16:24:52 +00:00
Johan Danielsson
1a1c8334df include <stdarg.h> to get va_list
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-12 16:18:15 +00:00
Johan Danielsson
31ad1085bf use sysconfdir
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11080 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-12 15:09:20 +00:00
Johan Danielsson
8630bd9dc8 if the remote address isn't an addrport, don't try comparing to one;
this should make old clients work with new servers


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11073 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-09 17:07:12 +00:00
Johan Danielsson
16a9c7d1a0 actually lower case the lower case instance name (spotted by Derrick
Brashear)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-31 09:39:06 +00:00
Johan Danielsson
5313dd39c6 (krb5_print_address): don't copy size if ret_len == NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11052 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-04 14:29:05 +00:00
Johan Danielsson
1dd4a01be4 make sure we return an error if there are no changepw hosts found
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-06-06 13:33:13 +00:00
Johan Danielsson
09ffce82b8 (krb5_cc_register): break out of loop when the same type is found;
spotted by Wynn Wilkes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-29 16:08:23 +00:00
Johan Danielsson
e76e0dc990 check size of entry before trying to read 32-bit kvno; also fix typo
in previous


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11025 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-28 12:57:27 +00:00
Johan Danielsson
7ec3e75760 (usage2arcfour): don't abort if the usage is unknown
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10953 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-29 16:31:54 +00:00
Johan Danielsson
e20a3066df make it clear that _lrealm modifies the principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-22 16:05:25 +00:00
Johan Danielsson
472538b820 fix typo in error string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10945 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-19 09:47:04 +00:00
Johan Danielsson
10cc0f13c6 include <sys/file.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10940 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 16:17:10 +00:00
Johan Danielsson
9238c90cfa rename acl_string parameter
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10939 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 16:16:24 +00:00
Johan Danielsson
80b8777a0d remove __P from protos, and put parameter names in comments
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 16:15:46 +00:00
Johan Danielsson
6cd4200dd5 storage tweaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 14:04:46 +00:00
Johan Danielsson
ce0ace220b storage tweaks; also try to handle zero sized keytab files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10933 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 14:03:13 +00:00
Johan Danielsson
b6de4e7c52 use KRB5_KT_END instead of KRB5_CC_END
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 14:02:11 +00:00
Johan Danielsson
ce19f448ae make the krb5_storage opaque, and add function wrappers for
store/fetch/seek, and also make the eof-code configurable


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 14:00:44 +00:00
Johan Danielsson
cfa4ac53b6 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 09:59:20 +00:00
Johan Danielsson
ba23bd7ec3 remove unnecessary cast
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10921 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 09:42:03 +00:00