Bug#560402: sasl2-bin: saslauthd(8) should give the default values for the -s and -t parameters

Russell Coker russell at coker.com.au
Thu Dec 10 22:01:55 UTC 2009


Package: sasl2-bin
Version: 2.1.22.dfsg1-23+lenny1
Severity: normal

The -s option specifies the size in KB.  The table_size parameter is set to
kilobytes * 1024/(sizeof(struct bucket) * CACHE_MAX_BUCKETS_PER).
This seems likely to be kilobytes * 1024/(92*6) on a 32bit platform.  So it
will be 1.88 table entries per KB.

CACHE_DEFAULT_TABLE_SIZE is set to 1711 so the default number of K would be
1711*92*6/1024 = 922.  As this will vary by compiler and by platform it
might be worth calculating and displaying the value of
CACHE_DEFAULT_TABLE_SIZE * sizeof(struct bucket) * CACHE_MAX_BUCKETS_PER / 1024
when you run "saslauthd -h".

The -t option (the cache timeout in seconds) defaults to 28800.  As this
seems unlikely to be changed it seems reasonable to put it in the man page.
Putting it in the output of "saslauthd -h" would also be good (just in case
anyone doubts the accuracy of the man page).

I would be happy to submit patches for these things if you give me some
guidance as to the type of patches that would be acceptable.





More information about the Pkg-cyrus-sasl2-debian-devel mailing list