--------------------- PatchSet 540 Date: 2000/08/18 15:01:12 Author: kinkie Branch: ntlm Tag: (none) Log: Added configuration #defines. They will be moved to command-line args once I'm sure this all works. Members: ntlm_auth_modules/NTLMSSP/ntlm.h:1.1.2.8->1.1.2.9 Index: squid/ntlm_auth_modules/NTLMSSP/ntlm.h =================================================================== RCS file: /cvsroot/squid-sf//squid/ntlm_auth_modules/NTLMSSP/Attic/ntlm.h,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -u -r1.1.2.8 -r1.1.2.9 --- squid/ntlm_auth_modules/NTLMSSP/ntlm.h 17 Aug 2000 15:18:44 -0000 1.1.2.8 +++ squid/ntlm_auth_modules/NTLMSSP/ntlm.h 18 Aug 2000 15:01:12 -0000 1.1.2.9 @@ -18,9 +18,36 @@ #ifndef _NTLM_H_ #define _NTLM_H_ - +/************* CONFIGURATION ***************/ +/* + * define this if you want debugging + */ #define DEBUG -#define REUSE_SAME_CHALLENGE +#define SHOW_CACHE_CONTENTS_UPON_HOUSEKEEP + +/* + * The house-cleanup cycle is invoked once every CYCLE seconds, interrupting + * all other activity. The value is in seconds + */ +#define CYCLE 60 + +/* + * After this many seconds the challenge is refreshed. This has the side + * effect of invalidating the entire cache. The lower this value, the better + * security. The higher this value, the better is performance */ +//#define CHALLENGE_REFLESH 3600 +#define CHALLENGE_REFLESH 60 + +/* + * This many seconds after last access, a cached entry is deleted and + * re-authentication is performed. This is useful to keep the cache size + * under control. + */ +//#define ENTRY_EXPIRY 1800 +#define ENTRY_EXPIRY 30 + + +/************* END CONFIGURATION ***************/ #include @@ -159,7 +186,8 @@ char* make_challenge(); char* ntlm_check_auth(struct ntlm_authenticate * auth, int auth_length); - +void dc_disconnect(); + extern char *domain; extern char *domain_controller;