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.

57 lines
1.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // ExternalAuthNames.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // This file declares the class ExternalAuthNames.
  12. //
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #ifndef EXTERNALAUTHNAMES_H_
  15. #define EXTERNALAUTHNAMES_H_
  16. #pragma once
  17. #include "iastl.h"
  18. #include "namemapper.h"
  19. ///////////////////////////////////////////////////////////////////////////////
  20. //
  21. // CLASS
  22. //
  23. // ExternalAuthNames
  24. //
  25. // DESCRIPTION
  26. //
  27. // Implements a request handler that converts the RADIUS User-Name
  28. // attribute to a fully qualified NT4 account name.
  29. //
  30. //
  31. ///////////////////////////////////////////////////////////////////////////////
  32. class ATL_NO_VTABLE ExternalAuthNames :
  33. public NameMapper,
  34. public CComCoClass<ExternalAuthNames, &__uuidof(ExternalAuthNames)>
  35. {
  36. public:
  37. IAS_DECLARE_REGISTRY(ExternalAuthNames, 1, 0, IASTypeLibrary)
  38. ExternalAuthNames();
  39. protected:
  40. //////////
  41. // IIasComponent.
  42. //////////
  43. virtual IASREQUESTSTATUS onSyncRequest(IRequest* pRequest) throw ();
  44. // using default destructor
  45. private:
  46. IASTL::IASAttribute externalProvider;
  47. };
  48. #endif // EXTERNALAUTHNAMES_H_