User.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#include "squid.h"
11#include "auth/ntlm/User.h"
12#include "auth/SchemeConfig.h"
13#include "debug/Stream.h"
14
15Auth::Ntlm::User::User(Auth::SchemeConfig *aConfig, const char *aRequestRealm) :
16 Auth::User(aConfig, aRequestRealm)
17{
18}
19
20Auth::Ntlm::User::~User()
21{
22 debugs(29, 5, "doing nothing to clear NTLM scheme data for '" << this << "'");
23}
24
25int32_t
26Auth::Ntlm::User::ttl() const
27{
28 return -1; // NTLM credentials cannot be cached.
29}
30
33{
34 static CbcPointer<Auth::CredentialsCache> p(new Auth::CredentialsCache("ntlm", "GC NTLM user credentials"));
35 return p;
36}
37
38void
39Auth::Ntlm::User::addToNameCache()
40{
41 Cache()->insert(userKey(), this);
42}
43
Cache of Auth::User credentials, keyed by Auth::User::userKey.
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Stream.h:194
HTTP Authentication.
Definition: Config.h:19
struct _Cache Cache

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors