/*
- * $Id: acl.cc,v 1.236 2001/01/07 23:36:37 hno Exp $
+ * $Id: acl.cc,v 1.237 2001/01/08 19:36:26 hno Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
acl_user_data *data;
splayNode *Top = NULL;
- debug(28, 2) ("aclParseUserList: parsing authlist\n");
+ debug(28, 2) ("aclParseUserList: parsing user list\n");
if (*current == NULL) {
debug(28, 3) ("aclParseUserList: current is null. Creating\n");
- *current = memAllocate(MEM_ACL_USER_DATA); /*we rely on mA. zeroing */
+ *current = memAllocate(MEM_ACL_USER_DATA);
}
data = *current;
+ Top = data->names;
if ((t = strtokFile())) {
debug(28, 5) ("aclParseUserList: First token is %s\n", t);
if (strcmp("-i", t) == 0) {
data->flags.case_insensitive);
/* we might inherit from a previous declaration */
- debug(28, 4) ("aclParseUserList: parsing proxy-auth list\n");
+ debug(28, 4) ("aclParseUserList: parsing user list\n");
while ((t = strtokFile())) {
debug(28, 6) ("aclParseUserList: Got token: %s\n", t);
if (data->flags.case_insensitive)
aclFreeUserData(void *data)
{
acl_user_data *d = data;
- splay_destroy(d->names, xfree);
+ if (d->names)
+ splay_destroy(d->names, xfree);
memFree(d, MEM_ACL_USER_DATA);
}
}
/* ==== END ARP ACL SUPPORT =============================================== */
-#endif /* USE_ARP_ACL */
+#endif /* USE_ARP_ACL */
/*
- * $Id: auth_ntlm.cc,v 1.1 2001/01/07 23:36:48 hno Exp $
+ * $Id: auth_ntlm.cc,v 1.2 2001/01/08 19:36:27 hno Exp $
*
* DEBUG: section 29 NTLM Authenticator
* AUTHOR: Robert Collins
int
authenticateNTLMActive()
{
- if (authntlm_initialised)
- return 1;
- else
- return 0;
+ if ((ntlmConfig != NULL) && (ntlmConfig->authenticate != NULL) &&
+ (ntlmConfig->authenticateChildren != 0) && (ntlmConfig->challengeuses > -1)
+ && (ntlmConfig->challengelifetime>-1))
+ return 1;
+ return 0;
}
/* NTLM Scheme */
/*
- * $Id: authenticate.cc,v 1.15 2001/01/07 23:36:37 hno Exp $
+ * $Id: authenticate.cc,v 1.16 2001/01/08 19:36:26 hno Exp $
*
* DEBUG: section 29 Authenticator
* AUTHOR: Duane Wessels
authscheme_list[i].donefunc();
else
debug(29, 2) ("authenticateShutdown: scheme %s has not registered a shutdown function.\n", authscheme_list[i].typestr);
- authscheme_list[i].typestr = NULL;
+ if (!reconfiguring)
+ authscheme_list[i].typestr = NULL;
}
}
authSchemeAdd(char *type, AUTHSSETUP * setup)
{
int i;
+ debug(29, 4) ("authSchemeAdd: adding %s", type);
/* find the number of currently known authscheme types */
for (i = 0; authscheme_list && authscheme_list[i].typestr; i++) {
assert(strcmp(authscheme_list[i].typestr, type) != 0);
/*
- * $Id: typedefs.h,v 1.116 2001/01/07 23:36:41 hno Exp $
+ * $Id: typedefs.h,v 1.117 2001/01/08 19:36:27 hno Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
typedef struct _acl_time_data acl_time_data;
typedef struct _acl_name_list acl_name_list;
typedef struct _acl_deny_info_list acl_deny_info_list;
-typedef struct _acl_proxy_auth acl_proxy_auth;
typedef struct _auth_user_t auth_user_t;
typedef struct _auth_user_request_t auth_user_request_t;
typedef struct _auth_user_hash_pointer auth_user_hash_pointer;
typedef int STDIRSELECT(const StoreEntry *);
-#endif /* _TYPEDEFS_H_ */
+#endif /* _TYPEDEFS_H_ */