]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Remove MAX_ULOGENTRIES
authorNicolas Williams <nico@cryptonector.com>
Mon, 24 Sep 2012 22:48:48 +0000 (17:48 -0500)
committerGreg Hudson <ghudson@mit.edu>
Fri, 5 Oct 2012 19:20:35 +0000 (15:20 -0400)
If a master KDC uses only a 64-bit libkadm5srv then there is no reason
to impose any limit on ulog size: the practical maximum will be given by
the filesystem and available storage space.

Even when using a 32-bit libkadm5srv the maximum practical ulog size
will be found easily enough when mmap() fails.

ticket: 7368

src/include/kdb_log.h
src/lib/kadm5/alt_prof.c

index beecdc1241d48440095836d684b1bf309d3a656f..c8d028888ac8ab4f383759b6147f4f2dbc5ba1e3 100644 (file)
@@ -53,7 +53,6 @@ extern "C" {
 /*
  * Default ulog file attributes
  */
-#define MAX_ULOGENTRIES 2500
 #define DEF_ULOGENTRIES 1000
 #define ULOG_IDLE_TIME  10              /* in seconds */
 /*
index 769f5f93ff64d7ed45926367cdc6bdc9fce0a36f..2a587e422699287d3842f1da52b1d66d9066cfd6 100644 (file)
@@ -817,9 +817,7 @@ krb5_error_code kadm5_get_config_params(context, use_kdc_config,
     } else {
         if (aprofile && !krb5_aprof_get_int32(aprofile, hierarchy,
                                               TRUE, &ivalue)) {
-            if (ivalue > MAX_ULOGENTRIES)
-                params.iprop_ulogsize = MAX_ULOGENTRIES;
-            else if (ivalue <= 0)
+            if (ivalue <= 0)
                 params.iprop_ulogsize = DEF_ULOGENTRIES;
             else
                 params.iprop_ulogsize = ivalue;