Johan Danielsson
3c09910254
don't use NULL where we mean 0
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 11:52:06 +00:00
Johan Danielsson
0cf3d16107
put referral test code in separate function, and test for
...
KRB5_NT_SRV_INST
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 11:30:11 +00:00
Assar Westerlund
0cf2f48820
(configure): call free_getarg_strings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9881 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:34:33 +00:00
Assar Westerlund
25ad02d691
mdoc fixes from ru@freebsd.org
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9830 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-02 08:59:23 +00:00
Assar Westerlund
06d2baa47b
(tgs_rep2): return a reference to a krbtgt for the right realm if we
...
fail to find a non-krbtgt service in the database and the second
component does a succesful non-dns lookup to get the real realm (which
has to be different from the originally-supplied realm). this should
help windows 2000 clients that always start their lookups in `their'
realm and do not have any idea of how to map hostnames into realms
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9824 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-29 11:02:49 +00:00
Assar Westerlund
b06fd720d9
(is_krbtgt): rename to get_krbtgt_realm
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-29 10:41:48 +00:00
Assar Westerlund
63b7a66e28
(tgs_rep): call tgs_rep2 properly
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-26 03:01:58 +00:00
Assar Westerlund
dd38d687f6
(tgs_rep2): try to set sec and usec in error replies
...
(*): update callers of krb5_km_error
(check_tgs_flags): handle renews requesting non-renewable tickets
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9763 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-26 00:55:15 +00:00
Assar Westerlund
67422a6b02
s/[gs]et_progname/[gs]etprogname/
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund
594fe33695
fix a few kdc_log format types
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9684 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:29:18 +00:00
Assar Westerlund
2aefcf796c
try to use handle using openssl instead of libdes better. based on patches from GOMBAS Gabor <gombasg@inf.elte.hu> and Brian May <bam@snoopy.apana.org.au>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:20:54 +00:00
Assar Westerlund
28160c99b9
printf format fixes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9672 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-12 17:13:13 +00:00
Assar Westerlund
8aac280e14
update to new db_fetch4
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9636 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 10:49:43 +00:00
Assar Westerlund
9451280638
(v4_get_masterkey): check kdb_verify_master_key properly
...
(kdb_prop): decrypt key properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 03:40:00 +00:00
Assar Westerlund
d2ae43cdc4
handle building with KRB4
...
always try to decrypt v4 data with the master key
leave it up to the v5 how to encrypt with that master key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9628 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 03:05:31 +00:00
Assar Westerlund
74fd83ce59
include file name in error messages
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9621 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 17:08:35 +00:00
Assar Westerlund
57de673572
fix a typo and check some more return values
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9620 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 17:07:39 +00:00
Assar Westerlund
5e2632d9dc
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 04:18:41 +00:00
Assar Westerlund
91be6656d6
(main): check for file being specified
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9616 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 04:15:50 +00:00
Assar Westerlund
4f287022ce
(db_fetch): return better error code
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9615 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 03:54:21 +00:00
Assar Westerlund
ddb37f32c6
(db_fetch): HDB_ERR_NOENTRY makes more sense than ENOENT
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 03:27:09 +00:00
Assar Westerlund
d4263fdf0d
adapt to new db_fetch, and try to print useful error messages when it fails
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9600 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 01:44:08 +00:00
Assar Westerlund
fbfc71a0b6
not used
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9599 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 01:43:43 +00:00
Assar Westerlund
03056efa09
(db_fetch): return an error code. change callers to look at this and
...
try to print it in log messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9598 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 01:43:07 +00:00
Assar Westerlund
e6daaae55c
(v5_prop): adapt to new hdb_seal_keys and hdb_unseal_keys
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9596 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 01:25:19 +00:00
Assar Westerlund
8b46590eac
(realm_buf): move it so it becomes properly conditional on KRB4
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9580 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-29 21:21:50 +00:00
Assar Westerlund
81fbeb826f
(as_rep): be paranoid and check krb5_enctype_to_string for failure,
...
noted by <lha@stacken.kth.se >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9553 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-28 22:57:47 +00:00
Assar Westerlund
7a63c28b48
(do_getticket): check length of ticket. noted by <lha@stacken.kth.se>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9542 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-28 21:51:05 +00:00
Assar Westerlund
123f083d26
mdoc fixed from ru@freebsd.org
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9512 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-26 22:46:29 +00:00
Johan Danielsson
5cc4b6ccf4
make it possible to convert a v4 dump file without having any v4
...
libraries; the kdb backend still require them
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9507 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-26 15:57:46 +00:00
Johan Danielsson
1d71425d11
include shadow definition of kdb Principal, so we don't have to depend
...
on any v4 libraries
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9506 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-26 15:55:07 +00:00
Assar Westerlund
49eff91b5b
(main): initalize fd_out for extra clarity
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-25 12:37:39 +00:00
Assar Westerlund
b912d83410
(main): handle EOF when reading from stdin
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-03 01:49:36 +00:00
Assar Westerlund
633782864b
(main): handle krb5_init_context failure consistently
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Assar Westerlund
f33d7d5bac
(tgs_rep2): adapt to new krb5_verify_ap_req2
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9191 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 23:09:02 +00:00
Assar Westerlund
baebf953a8
use LIB_des
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:51:14 +00:00
Johan Danielsson
7c3f84a25d
remove extra .Xc
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-12 15:37:33 +00:00
Johan Danielsson
de36c5eb53
fix log messge
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-10 06:53:58 +00:00
Assar Westerlund
5d25e7e3ef
(add_new_tcp): check for the socket fd being too large to selct on
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 21:36:29 +00:00
Assar Westerlund
21c29c4974
(loop): check that the socket fd is not too large to select on
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 18:37:08 +00:00
Assar Westerlund
8c87a006a4
(do_authenticate): check for time skew
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 18:35:19 +00:00
Assar Westerlund
620646d0f7
(set_address): allocate memory for storing addresses in if the
...
original request had an empty set of addresses
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-01 00:38:18 +00:00
Assar Westerlund
67693d72ed
(set_address): fix bad return of pointer to automatic data
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-23 18:04:49 +00:00
Johan Danielsson
f9825804e7
use DEFAULT_LOG_DEST
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9050 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 19:27:29 +00:00
Johan Danielsson
9a352cb0f8
use _PATH_KDC_CONF
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 19:27:17 +00:00
Johan Danielsson
5793cb0646
add macro constants for kdc.conf, and kdc.log
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9048 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 19:27:04 +00:00
Assar Westerlund
5a0952ca19
re-organize
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 14:48:23 +00:00
Assar Westerlund
66a76923b5
add printf attributes on kdc_log*
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 14:45:06 +00:00
Assar Westerlund
93c798134c
update prototypes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9034 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 14:18:44 +00:00
Assar Westerlund
735d459976
(tgs_rep2): try to avoid leaking auth_context
...
use free_ent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9033 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 14:17:36 +00:00