Asanka C. Herath
880d728e02
Un-const as necessary to silence compiler warnings
2010-11-24 15:33:07 -05:00
Asanka Herath
c6b8fad5dc
Consistency updates for lib/kadm5 and don't check fd_set size if it's not necessary
2009-11-24 10:18:20 -08:00
Asanka Herath
d84119813e
No AF_UNIX on Windows and no SIGPIPE and SIGXCPU
2009-11-24 10:12:44 -08:00
Love Hörnquist Åstrand
11b955ea01
plug memory leak
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-04 17:10:52 +00:00
Love Hörnquist Åstrand
62ae550ab2
don't leak memory
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-04 17:09:39 +00:00
Love Hörnquist Åstrand
32218cc132
use krb5_cc_new_unique, use constants for cache types
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25057 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:07:07 +00:00
Love Hörnquist Åstrand
eb0549ea43
make vno set to a valid, so that in case master disconnects before it sent us any entries, don't print stack value.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:31:50 +00:00
Love Hörnquist Åstrand
3935b4ed34
wrap detach
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24410 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:39:36 +00:00
Love Hörnquist Åstrand
efccbcdeff
init optidx
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24059 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:50:48 +00:00
Love Hörnquist Åstrand
49e70a4c41
Make slave more resiliant to master that go down, make them retry now and then.
...
The client tries connect every "[libdefault] reconnect-min" seconds,
and for every time it failes, it backs down "[libdefault]
reconnect-backoff" seconds until it reaches "[libdefault]
reconnect-max". On successful connect, the start value is reset to [libdefault] reconnect-min.
There are default values that make sense.
This patch was created by Buck Huppmann 2003, and been nursed along by
Alf Wachsmann until I merged it now.
While here, add IPv6 support.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-18 23:55:57 +00:00
Love Hörnquist Åstrand
8cf907f08a
switch to krb5_clear_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-14 02:55:55 +00:00
Love Hörnquist Åstrand
29a746efd7
fix usage
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:32:23 +00:00
Love Hörnquist Åstrand
210cad9123
update(c)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23856 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:32:07 +00:00
Love Hörnquist Åstrand
384d464e85
add master att the end as argument, from harald barth
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23854 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:31:58 +00:00
Love Hörnquist Åstrand
2e1dceceec
s/slave/master/ for some strings, from harald barth.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23853 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:31:53 +00:00
Love Hörnquist Åstrand
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898
switch to utf8 encoding of all files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
e65761aac2
and right num of arguments
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23359 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:24:36 +00:00
Love Hörnquist Åstrand
7e91838407
use the right type for error message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23358 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:24:24 +00:00
Love Hörnquist Åstrand
125f5659a7
Clear context error that is not useful.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-01 22:28:44 +00:00
Love Hörnquist Åstrand
811319445f
warnings on platforms where sig_atomic_t is not a int, from netbsd via Michael van Elst, Havard Eidnes and T K Spindler
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 19:13:46 +00:00
Love Hörnquist Åstrand
284d45bbbc
use hdb_db_dir() and hdb_default_db()
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22211 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 19:27:27 +00:00
Love Hörnquist Åstrand
3a51ba465b
Provide better error why kadm5_log_replay failed.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21832 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-07 17:35:49 +00:00
Love Hörnquist Åstrand
000d2c1e6a
Print what version the client starts at.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 14:17:52 +00:00
Love Hörnquist Åstrand
2991c6378d
make more sane.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 14:16:24 +00:00
Love Hörnquist Åstrand
5bdb1c0e7f
always update log version, because that is whats happning in reality.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21812 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 14:09:54 +00:00
Love Hörnquist Åstrand
2d7c7670b0
more paranoid check that the log entires are self consistant
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21809 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 13:59:14 +00:00
Love Hörnquist Åstrand
a569fb65a4
Spelling.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-02 11:54:33 +00:00
Love Hörnquist Åstrand
0382061b7b
add configuration for signal file and acl file, let user select hostname, catch signals and print why we are quiting, make nop cause one new version, not two
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21756 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 22:15:08 +00:00
Love Hörnquist Åstrand
f23e5f1e58
More comments and some more error checking.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21715 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-27 16:13:09 +00:00
Love Hörnquist Åstrand
e37759c4b1
Catch return value from krb5_program_setup. From Steven Luo.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21209 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 07:01:27 +00:00
Love Hörnquist Åstrand
ece5f9603e
Make krb5_get_init_creds_opt_free take a context argument.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-20 18:12:41 +00:00
Love Hörnquist Åstrand
cb704efeeb
Rename u_intXX_t to uintXX_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:37:46 +00:00
Love Hörnquist Åstrand
0c2369acd0
Wrap hdb_entry with hdb_entry_ex, patch originally from Andrew Bartlet
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16378 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:40:12 +00:00
Love Hörnquist Åstrand
1a8b054bbc
avoid shadowing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15486 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-17 05:27:46 +00:00
Love Hörnquist Åstrand
af6eb0f463
Don't test HAVE_DAEMON since roken supplies it.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15213 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-23 17:39:35 +00:00
Love Hörnquist Åstrand
32b515fccb
add the documented option --port
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14964 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-25 19:23:15 +00:00
Johan Danielsson
209ac33571
(ihave): use krb5_write_priv_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14265 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-24 11:27:58 +00:00
Johan Danielsson
1f57648d35
add --detach
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-18 16:59:03 +00:00
Love Hörnquist Åstrand
8ae4ac8c04
stop using krb5 lib private byte-frobbing functions and replace them
...
with with krb5_storage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-23 06:23:28 +00:00
Love Hörnquist Åstrand
f00c4ac492
(receive_loop): when seeking over the entries we already have, skip
...
over the trailer.
From: Jeffrey Hutzelman <jhutz@cmu.edu >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-19 03:21:31 +00:00
Love Hörnquist Åstrand
ef7b3a72f6
(main): parse kdc.conf
...
From: Jeffrey Hutzelman <jhutz@cmu.edu >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-18 23:19:26 +00:00
Love Hörnquist Åstrand
0540f13b86
prefix all struct HDB elements with hdb_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 00:25:35 +00:00
Love Hörnquist Åstrand
5d190295aa
add context argument to krb5_get_init_creds_opt_alloc
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:28:20 +00:00
Love Hörnquist Åstrand
61e14619de
use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:31:42 +00:00
Love Hörnquist Åstrand
835c5e70a6
(receive_everything): switch close and rename
...
From: Alf Wachsmann <alfw@SLAC.Stanford.EDU >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-24 14:49:45 +00:00
Love Hörnquist Åstrand
715020f048
Add probing from the server that the client is still there, also make
...
the client check that the server is probing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-03 13:36:09 +00:00
Johan Danielsson
1c74114ff4
(from Derrick Brashear): Propagating a large database without this
...
means the slave kdcs can get erroneous HDB_NOENTRY and return the
resulting errors. This creates a new db handle, populates it, and
moves it into place.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 15:51:44 +00:00
Assar Westerlund
7b9c9dcd4f
(receive_everything): type-correctness calling _krb5_get_int
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-26 13:29:37 +00:00
Johan Danielsson
4fa94362ee
fix for storage change
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-24 15:23:43 +00:00