(file) Return to PAMAuth.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Executor

Diff for /pegasus/src/Executor/PAMAuth.h between version 1.1.2.5 and 1.2

version 1.1.2.5, 2007/01/12 23:17:56 version 1.2, 2007/05/25 18:35:07
Line 82 
Line 82 
 /* /*
 **============================================================================== **==============================================================================
 ** **
 ** CimserveaSend()  ** CimserveraSend()
 ** **
 **     Sends *size* bytes on the given socket. **     Sends *size* bytes on the given socket.
 ** **
 **============================================================================== **==============================================================================
 */ */
  
 static ssize_t CimserveaSend(int sock, void* buffer, size_t size)  static ssize_t CimserveraSend(int sock, void* buffer, size_t size)
 { {
     size_t r = size;     size_t r = size;
     char* p = (char*)buffer;     char* p = (char*)buffer;
Line 246 
Line 246 
         Strlcpy(request.arg1, username, EXECUTOR_BUFFER_SIZE);         Strlcpy(request.arg1, username, EXECUTOR_BUFFER_SIZE);
         Strlcpy(request.arg2, password, EXECUTOR_BUFFER_SIZE);         Strlcpy(request.arg2, password, EXECUTOR_BUFFER_SIZE);
  
         if (CimserveaSend(sock, &request, sizeof(request)) != sizeof(request))          if (CimserveraSend(sock, &request, sizeof(request)) != sizeof(request))
         {         {
             status = -1;             status = -1;
             break;             break;
         }         }
  
         /* Get exist status from CIMSERVERA program. */          /* Get exit status from CIMSERVERA program. */
  
         waitpid(pid, &childStatus, 0);         waitpid(pid, &childStatus, 0);
  
Line 272 
Line 272 
 /* /*
 **============================================================================== **==============================================================================
 ** **
 ** CimserveraAuthenticate()  ** CimserveraValidateUser()
 ** **
 **============================================================================== **==============================================================================
 */ */
Line 305 
Line 305 
         Strlcpy(request.arg0, "validateUser", EXECUTOR_BUFFER_SIZE);         Strlcpy(request.arg0, "validateUser", EXECUTOR_BUFFER_SIZE);
         Strlcpy(request.arg1, username, EXECUTOR_BUFFER_SIZE);         Strlcpy(request.arg1, username, EXECUTOR_BUFFER_SIZE);
  
         if (CimserveaSend(sock, &request, sizeof(request)) != sizeof(request))          if (CimserveraSend(sock, &request, sizeof(request)) != sizeof(request))
         {         {
             status = -1;             status = -1;
             break;             break;
         }         }
  
         /* Get exist status from CIMSERVERA program. */          /* Get exit status from CIMSERVERA program. */
  
         waitpid(pid, &childStatus, 0);         waitpid(pid, &childStatus, 0);
  
Line 443 
Line 443 
 ** **
 ** PAMAuthenticateInProcess() ** PAMAuthenticateInProcess()
 ** **
 **     Peforms basic PAM authentication on the given username and password.  **     Performs basic PAM authentication on the given username and password.
 ** **
 **============================================================================== **==============================================================================
 */ */
Line 518 
Line 518 
 ** **
 ** PAMAuthenticate() ** PAMAuthenticate()
 ** **
 **     Peforms basic PAM authentication on the given username and password.  **     Performs basic PAM authentication on the given username and password.
 ** **
 **============================================================================== **==============================================================================
 */ */


Legend:
Removed from v.1.1.2.5  
changed lines
  Added in v.1.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2