(file) Return to PAMBasicAuthenticator.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Security / Authentication

Diff for /pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticator.h between version 1.5 and 1.20.16.3

version 1.5, 2002/08/20 21:30:03 version 1.20.16.3, 2007/01/11 01:34:37
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 21 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_PAMBasicAuthenticator_h #ifndef Pegasus_PAMBasicAuthenticator_h
 #define Pegasus_PAMBasicAuthenticator_h #define Pegasus_PAMBasicAuthenticator_h
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
   #include <Pegasus/Common/Mutex.h>
 #include "BasicAuthenticator.h" #include "BasicAuthenticator.h"
  
 #include <Pegasus/Security/Authentication/Linkage.h> #include <Pegasus/Security/Authentication/Linkage.h>
Line 44 
Line 49 
 { {
 public: public:
  
     /** constructor. */  
     PAMBasicAuthenticator();     PAMBasicAuthenticator();
  
     /** destructor. */  
     ~PAMBasicAuthenticator();     ~PAMBasicAuthenticator();
  
     /** Verify the authentication of the requesting user.  
         @param userName String containing the user name  
         @param password String containing the user password  
         @return true on successful authentication, false otherwise  
     */  
     Boolean authenticate(     Boolean authenticate(
         const String& userName,         const String& userName,
         const String& password);          const String& password,
           SessionKey& sessionKey);
  
     /** Construct and return the HTTP Basic authentication challenge header      Boolean validateUser(const String& userName);
         @return A string containing the authentication challenge header.  
     */  
     String getAuthResponseHeader();  
  
     /** PAM Call back function, the pointer to this function is passed to the PAM module.      String getAuthResponseHeader();
         @param num_msg int containing the message count  
         @param msg pointer to a pam_message structure  
         @param resp pointer to a pam_respone structure  
         @param appdata_prt application data pointer  
         @return PAM_SUCCESS on successful execution, a PAM error code otherwise  
     */  
     static Sint32 PAMCallback(  
         Sint32 num_msg,  
         struct pam_message **msg,  
         struct pam_response **resp,  
         void *appdata_ptr);  
  
 private: private:
  
     String        _realm;     String        _realm;
 }; };
  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #endif /* Pegasus_PAMBasicAuthenticator_h */ #endif /* Pegasus_PAMBasicAuthenticator_h */


Legend:
Removed from v.1.5  
changed lines
  Added in v.1.20.16.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2