X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fmod_helsinki.cpp;fp=src%2Fmod_helsinki.cpp;h=9de92509f504328c054c823cd86cce877702fd0a;hp=5558c87d3265f544baff01b55574243b2730b75e;hb=c990b5f85d736a35132c6902ba8b2966d5146360;hpb=9a7e8960b79b0b9bd6df38258ecda51f42d41280 diff --git a/src/mod_helsinki.cpp b/src/mod_helsinki.cpp index 5558c87..9de9250 100644 --- a/src/mod_helsinki.cpp +++ b/src/mod_helsinki.cpp @@ -1,4 +1,4 @@ -/* $Id: mod_helsinki.cpp,v 1.1 2006-03-25 10:56:28 adam Exp $ +/* $Id: mod_helsinki.cpp,v 1.2 2006-06-28 23:38:23 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -138,7 +138,7 @@ int my_authenticate(void *user_handle, #endif // args holds args (or NULL if none are provided) - yaz_log(YLOG_LOG, "Authentication: authenticating user %s, address %s", user ? user : "-", peer_IP ? peer_IP : "-"); + yaz_log(YLOG_LOG, "Authentication: authenticating user %s, address %s", user ? user : "(none)", peer_IP ? peer_IP : "-"); // authentication handler char user_file[255], ip_file[255]; @@ -146,7 +146,7 @@ int my_authenticate(void *user_handle, *ip_file = '\0'; sscanf(args, "%254[^:]:%254s", user_file, ip_file); - yaz_log(YLOG_LOG, "Authentication: user file: %s, ip file: %s", user_file, ip_file); + yaz_log(YLOG_DEBUG, "Authentication: user file: %s, ip file: %s", user_file, ip_file); // Check if the IP address is listed in the file of allowed address ranges. // The format of the file: @@ -156,7 +156,7 @@ int my_authenticate(void *user_handle, int status = YAZPROXY_RET_PERM; if (ip_file && peer_IP) { - yaz_log(YLOG_LOG, "Authentication: checking ip address"); + yaz_log(YLOG_DEBUG, "Authentication: checking ip address"); const char *pIP = peer_IP; if (strncmp(pIP, "tcp:", 4) == 0) @@ -202,7 +202,7 @@ int my_authenticate(void *user_handle, if (!user || !password || !*user_file) { - yaz_log(YLOG_WARN, "Authentication: no user name, password or user file specified"); + yaz_log(YLOG_LOG, "Authentication: anonymous authentication failed"); return YAZPROXY_RET_PERM; }