mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Include the username in the log messages.
This commit is contained in:
parent
ee26ee730f
commit
55feb03139
@ -464,20 +464,20 @@ class HTTPAuthSession {
|
||||
|
||||
if (isset($cached_credentials)) {
|
||||
if ($cached_credentials == 'pass') {
|
||||
dbg_error_log('HTTPAuthLogin', 'CheckCache: Cached credentials are good and valid');
|
||||
dbg_error_log('HTTPAuthLogin', 'CheckCache: Cached credentials for %s are good and valid', $username);
|
||||
return 1;
|
||||
|
||||
} else if ($cached_credentials == 'fail') {
|
||||
dbg_error_log('HTTPAuthLogin', 'CheckCache: Cached credentials are good and invalid');
|
||||
dbg_error_log('HTTPAuthLogin', 'CheckCache: Cached credentials for %s are good and invalid', $username);
|
||||
return 2;
|
||||
}
|
||||
|
||||
} else {
|
||||
dbg_error_log('HTTPAuthLogin', 'CheckCache: No stored salted password, need to use auth source');
|
||||
dbg_error_log('HTTPAuthLogin', 'CheckCache: No stored salted password for %s, need to use auth source', $username);
|
||||
}
|
||||
|
||||
} else {
|
||||
dbg_error_log('HTTPAuthLogin', 'CheckCache: No salt, assuming no cached credentials, need to use auth source');
|
||||
dbg_error_log('HTTPAuthLogin', 'CheckCache: No salt stored for %s, assuming no cached credentials, need to use auth source', $username);
|
||||
}
|
||||
|
||||
# All hope is lost, we must have failed to find anything decent.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# Just check to see if the log line for cached credentials being valid is
|
||||
# present. That is only issued if we're successfully fetch valid credentials
|
||||
# from our cache.
|
||||
SCRIPT=if grep -q "HTTPAuthLogin:CheckCache: Cached credentials are good and valid" /var/log/apache2/regression-error.log; then echo "Cached credentials worked"; else echo "Ccahed credentials failed"; fi
|
||||
SCRIPT=if grep -q "HTTPAuthLogin:CheckCache: Cached credentials for user1 are good and valid" /var/log/apache2/regression-error.log; then echo "Cached credentials worked"; else echo "Cached credentials failed"; fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user