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.

92 lines
2.2 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // userschema.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // This file declares the USER_SCHEMA information.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 02/26/1998 Original version.
  16. // 03/26/1998 Added msNPAllowDialin.
  17. // 04/13/1998 Added msRADIUSServiceType.
  18. // 05/01/1998 Changed signature of InjectorProc.
  19. // 08/20/1998 Remove InjectAllowDialin.
  20. //
  21. ///////////////////////////////////////////////////////////////////////////////
  22. #ifndef _USERSCHEMA_H_
  23. #define _USERSCHEMA_H_
  24. #if _MSC_VER >= 1000
  25. #pragma once
  26. #endif
  27. #include <ldapdnary.h>
  28. #include <sdoias.h>
  29. //////////
  30. // Functions used for injecting attributes.
  31. //////////
  32. VOID
  33. WINAPI
  34. OverwriteAttribute(
  35. IAttributesRaw* dst,
  36. PATTRIBUTEPOSITION first,
  37. PATTRIBUTEPOSITION last
  38. );
  39. VOID
  40. WINAPI
  41. AppendAttribute(
  42. IAttributesRaw* dst,
  43. PATTRIBUTEPOSITION first,
  44. PATTRIBUTEPOSITION last
  45. );
  46. //////////
  47. // Schema information for the per-user attributes. This array must be in
  48. // alphabetical order.
  49. //////////
  50. const LDAPAttribute USER_SCHEMA[] =
  51. {
  52. { L"msNPAllowDialin",
  53. IAS_ATTRIBUTE_ALLOW_DIALIN,
  54. IASTYPE_BOOLEAN,
  55. 0,
  56. OverwriteAttribute },
  57. { L"msNPCallingStationID",
  58. IAS_ATTRIBUTE_NP_CALLING_STATION_ID,
  59. IASTYPE_STRING,
  60. 0,
  61. OverwriteAttribute },
  62. { L"msRADIUSCallbackNumber",
  63. RADIUS_ATTRIBUTE_CALLBACK_NUMBER,
  64. IASTYPE_OCTET_STRING,
  65. IAS_INCLUDE_IN_ACCEPT,
  66. OverwriteAttribute },
  67. { L"msRADIUSFramedIPAddress",
  68. RADIUS_ATTRIBUTE_FRAMED_IP_ADDRESS,
  69. IASTYPE_INET_ADDR,
  70. IAS_INCLUDE_IN_ACCEPT,
  71. OverwriteAttribute },
  72. { L"msRADIUSFramedRoute",
  73. RADIUS_ATTRIBUTE_FRAMED_ROUTE,
  74. IASTYPE_OCTET_STRING,
  75. IAS_INCLUDE_IN_ACCEPT,
  76. OverwriteAttribute },
  77. { L"msRADIUSServiceType",
  78. RADIUS_ATTRIBUTE_SERVICE_TYPE,
  79. IASTYPE_ENUM,
  80. IAS_INCLUDE_IN_ACCEPT,
  81. OverwriteAttribute }
  82. };
  83. // Number of elements in the USER_SCHEMA array.
  84. const size_t USER_SCHEMA_ELEMENTS = sizeof(USER_SCHEMA)/sizeof(LDAPAttribute);
  85. #endif // _USERSCHEMA_H_