BUG#: 5207
authorkumpf <kumpf>
Tue, 11 Jul 2006 17:25:28 +0000 (17:25 +0000)
committerkumpf <kumpf>
Tue, 11 Jul 2006 17:25:28 +0000 (17:25 +0000)
TITLE: Compile warning building BasicAuthenticationHandler.cpp
DESCRIPTION: Explicitly cast the CString object to const char* in a Tracer call.

src/Pegasus/Security/Authentication/BasicAuthenticationHandler.cpp

index d1435adc3a65ed581ec3ea70efd2bab93d6efb8a..1408233dc200729a1ae38561b08f8c3b8541f127 100644 (file)
@@ -151,7 +151,7 @@ Boolean BasicAuthenticationHandler::authenticate(
         Tracer::trace(TRC_AUTHENTICATION, Tracer::LEVEL2,
             "Authentication failed for user '%s' because "
                 "enableRemotePrivilegedUserAccess is not set to 'true'.",
-            userName.getCString());
+            (const char*)userName.getCString());
         Logger::put_l(
             Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION,
             "Security.Authentication.BasicAuthenticationHandler."