Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // authbase.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // This file declares the class AuthBase.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 02/12/1998 Original version.
  16. // 03/27/1998 Change exception specification for onAccept.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef _AUTHBASE_H_
  20. #define _AUTHBASE_H_
  21. #include <samutil.h>
  22. ///////////////////////////////////////////////////////////////////////////////
  23. //
  24. // CLASS
  25. //
  26. // AuthBase
  27. //
  28. // DESCRIPTION
  29. //
  30. // Base class for all NT-SAM authentication sub-handlers.
  31. //
  32. ///////////////////////////////////////////////////////////////////////////////
  33. class AuthBase :
  34. public NtSamHandler
  35. {
  36. public:
  37. virtual HRESULT initialize() throw ();
  38. virtual void finalize() throw ();
  39. protected:
  40. IASAttribute authType;
  41. // Must be overridden by sub-classes to return their Authentication-Type.
  42. virtual DWORD getAuthenticationType() const throw () = 0;
  43. // Called by sub-classes whenever a user has been accepted.
  44. void onAccept(IASRequest& request, HANDLE token);
  45. };
  46. #endif // _AUTHBASE_H_