30 requestRealm_(aRequestRealm)
34 debugs(29, 5,
"Initialised auth_user '" <<
this <<
"'.");
40 return credentials_state;
46 credentials_state = newCreds;
66 debugs(29, 5,
"auth_user '" << from <<
"' into auth_user '" <<
this <<
"'.");
69 notes.appendNewOnly(&from->
notes);
123 debugs(29, 5,
"Freeing auth_user '" <<
this <<
"'.");
133 xfree((
char*)username_);
169 if (ipdata->
ipaddr == ipaddr) {
199 if (ipdata->
ipaddr == ipaddr) {
226 debugs(29, 2,
"user '" << username() <<
"' has been seen at a new IP address (" << ipaddr <<
")");
234 key.
Printf(
"%s:%s", username, realm);
236 key.
append(username, strlen(username));
247 storeAppendPrintf(output,
"Cached Usernames: %d",
static_cast<int32_t
>(userlist.size()));
254 storeAppendPrintf(output,
"--------------- --------- --------- --------- ------------------------------\n");
255 for (
auto auth_user : userlist ) {
261 auth_user->username(),
274 userKey_ = BuildUserKey(username_, (!requestRealm_.isEmpty() ? requestRealm_.c_str() :
nullptr));
#define SQUIDSBUFPRINT(s)
std::vector< Auth::User::Pointer > authenticateCachedUsersList()
Ip::Address ipaddr
IP address this user authenticated from.
time_t credentialsTtl
the authenticate_ttl
time_t ipTtl
the authenticate_ip_ttl
NotePairs notes
list of key=value pairs the helper produced
void absorb(Auth::User::Pointer from)
CredentialState credentials() const
static void CredentialsCacheStats(StoreEntry *output)
char const * username() const
static SBuf BuildUserKey(const char *username, const char *realm)
User(Auth::SchemeConfig *, const char *requestRealm)
dlink_list proxy_match_cache
void removeIp(Ip::Address)
SBuf & Printf(const char *fmt,...) PRINTF_FORMAT_ARG2
SBuf & append(const SBuf &S)
A const & max(A const &lhs, A const &rhs)
#define debugs(SECTION, LEVEL, CONTENT)
void dlinkDelete(dlink_node *m, dlink_list *list)
void dlinkAddTail(void *data, dlink_node *m, dlink_list *list)
void aclCacheMatchFlush(dlink_list *cache)
const char * CredentialState_str[]
void storeAppendPrintf(StoreEntry *e, const char *fmt,...)