Commit Graph

68 Commits

Author SHA1 Message Date
Love Hornquist Astrand
d3d9e5ecb5 free sp on error/full send 2009-10-06 11:19:27 -07:00
Love Hornquist Astrand
ff87429593 Make LDAP code fetch less attributes from LDAP server when KDC is asking
Johan Gadsjö did a awesome analysis of the LDAP access pattens
and sent us a patch that reduced the calls the ldap server by 4
times as many. The patch was adopted and change to avoid compile
time depencies and make the determination runtime instead. Thanks!
2009-10-03 13:20:41 -07:00
Love Hornquist Astrand
3b761fddc0 check the clients with current_version, and if client have newer, whine 2009-09-05 14:41:03 -07:00
Love Hornquist Astrand
03b6f9a09b Don't send diffs to dead slaves 2009-09-05 14:31:49 -07:00
Love Hornquist Astrand
0d49d0f1c4 Free ticket earlier [CID-108] 2009-07-30 10:39:52 +02:00
Love Hörnquist Åstrand
a96fa6cacd plug memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-04 17:10:41 +00:00
Love Hörnquist Åstrand
cbfc88f691 wrap detach
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24411 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:39:45 +00:00
Love Hörnquist Åstrand
7beb192394 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23855 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:32:03 +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
c6f6defa06 Only log "sending AYT" once, pointed out by Dr A V Le Blanc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23074 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-23 15:06:51 +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
5a0bf63c71 Update (c).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21831 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-07 17:34:51 +00:00
Love Hörnquist Åstrand
3d9f731d98 - don't push whole database to the new client every time.
- make slaves get the whole new database if they have a newer log the
  the master (and thus have them go back in time).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21824 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-06 02:18:13 +00:00
Love Hörnquist Åstrand
0b286093fe Sprinkle more info about what versions the master thinks about the client versions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21806 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 13:09:20 +00:00
Love Hörnquist Åstrand
598b915110 Start the server at the current version, not 0.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 12:57:02 +00:00
Love Hörnquist Åstrand
8d095c0457 Add more logging, to figure out what is happening in the master.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-02 18:46:34 +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
2849d42835 (send_diffs): make current slave's version uptodate when diff have been sent.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-30 14:54:13 +00:00
Love Hörnquist Åstrand
3154e1056e Use strcspn to remove \n from string returned by fgets.
From Björn Sandell


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19233 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 08:04:05 +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
608845b433 Make compile.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15972 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-24 14:29:59 +00:00
Love Hörnquist Åstrand
1cf12f2fbe Update to new signature of kadm5_log_previous.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15970 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-24 14:27:52 +00:00
Love Hörnquist Åstrand
04dcbbc45a rename local variable slave to s, optind -> optidx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-17 05:23: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
524a064514 add help strings to some options
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-23 12:55:08 +00:00
Johan Danielsson
f00a88cf6c one more
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14250 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 15:50:29 +00:00
Johan Danielsson
61085a8a31 (write_stats): use krb5_format_time
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14249 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 15:48:24 +00:00
Johan Danielsson
ef3f12c742 add --detach
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14247 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 14:56:03 +00:00
Love Hörnquist Åstrand
e07443ac49 (main): process all slaves, not just up to the last slave sending data
(bug report from Björn Sandell <biorn@dce.chalmers.se>)
(*): only send one ARE_YOU_THERE


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-08 19:17:19 +00:00
Love Hörnquist Åstrand
08853058a8 (prop_one): store the opcode in the begining of the blob, not the end
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13871 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-26 16:53:20 +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
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
3946ead25c (main): make sure current_version is initialized
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12573 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 18:35:49 +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
Love Hörnquist Åstrand
a100e117df (main): make sure we don't consider dead slave for select processing
(write_stats): use slave_stats_file variable, check return value of strftime
(args): allow specifying slave stats file
(slave_dead): close the fd when the slave dies


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11879 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-19 11:56:38 +00:00
Johan Danielsson
599e9d114b typo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11103 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 18:27:53 +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
ae432f8296 handle slaves that come and go; add status reporting (both from Love)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11054 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-04 14:41:08 +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
Assar Westerlund
897f0b1f93 unsigned char casts for is*, casts for socket functi, add headers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10646 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-03 05:54:18 +00:00
Jacques A. Vidrine
a0ab7ce3fc Call `pidfile'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10600 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-30 15:15:50 +00:00
Assar Westerlund
e7dcc1ea15 (main): fix select-loop to decrement ret correctly. from "Brandon
S. Allbery KF8NH" <allbery@ece.cmu.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9678 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-14 23:00:16 +00:00
Assar Westerlund
e0a6466c6e (main): check for fd's being too large to select on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9196 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 23:12:45 +00:00
Assar Westerlund
5f648d3799 use socklen_t where appropriate instead of int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 20:53:11 +00:00
Assar Westerlund
670ccc0a0f (main): ignore SIGPIPE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-06 22:27:24 +00:00