[PATCH] make days before expiry warning more predictable

Anders Johansson ajohansson at novell.com
Fri Jul 13 15:28:55 GMT 2007


Hi,

Attaching a patch to slightly modify the calculation for when winbind starts 
warning

If the calculation is done by simply multiplying with 365, the calculation 
will be inconsistent on leap years, it will be one day off.

Also, if the comparison is done with < instead of <= it will warn one day "too 
late", e.g. if you set it to warn 14 days before expiry, it will start 
warning only 13 days before

Patch is against SAMBA_3_0 in SVN

Cheers
Anders
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winbind.diff
Type: text/x-diff
Size: 697 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070713/ab8f3409/winbind.bin


More information about the samba-technical mailing list