(file) Return to cimservera.c CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Security / Cimservera

Diff for /pegasus/src/Pegasus/Security/Cimservera/cimservera.c between version 1.3 and 1.3.4.3

version 1.3, 2007/07/24 19:42:03 version 1.3.4.3, 2008/04/08 18:24:07
Line 35 
Line 35 
  
 #include <Executor/PAMAuth.h> #include <Executor/PAMAuth.h>
 #include <Executor/Socket.h> #include <Executor/Socket.h>
   #include <Pegasus/Common/PegasusVersion.h>
 #include <stdio.h> #include <stdio.h>
 #include <stdlib.h> #include <stdlib.h>
 #include <syslog.h> #include <syslog.h>
Line 44 
Line 45 
  
 static void Exit(int status) static void Exit(int status)
 { {
     syslog(LOG_DEBUG, "exit(%d)", status);  
     exit(status);     exit(status);
 } }
  
Line 57 
Line 57 
     /* Open syslog: */     /* Open syslog: */
  
     openlog("cimservera", LOG_PID, LOG_AUTH);     openlog("cimservera", LOG_PID, LOG_AUTH);
     syslog(LOG_DEBUG, "started");  
  
     /* Check arguments. */     /* Check arguments. */
  
Line 96 
Line 95 
     {     {
         int status = PAMAuthenticateInProcess(request.arg1, request.arg2);         int status = PAMAuthenticateInProcess(request.arg1, request.arg2);
  
         if (status != 0)  
         {  
             syslog(LOG_WARNING, "user \"%s\" failed to authenticate",  
                 request.arg1);  
         }  
   
         response.status = status;         response.status = status;
  
         if (SendBlock(sock, &response, sizeof(response)) != sizeof(response))         if (SendBlock(sock, &response, sizeof(response)) != sizeof(response))
Line 117 
Line 110 
     {     {
         int status = PAMValidateUserInProcess(request.arg1);         int status = PAMValidateUserInProcess(request.arg1);
  
         if (status != 0)  
         {  
             syslog(LOG_WARNING, "failed to validate user \"%s\"", request.arg1);  
         }  
   
         response.status = status;         response.status = status;
  
         if (SendBlock(sock, &response, sizeof(response)) != sizeof(response))         if (SendBlock(sock, &response, sizeof(response)) != sizeof(response))


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.4.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2