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.

113 lines
4.1 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1992, Microsoft Corporation
  4. //
  5. // File: ldapstr.h
  6. //
  7. // Contents: Until LDAP Schema issues can be hammered out, we store all
  8. // LDAP related strings in this central file.
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: January 24, 1997 Milan Shah (milans)
  15. // August 13, 2001 Daniel Longley (dlongley)
  16. //
  17. //-----------------------------------------------------------------------------
  18. #ifndef _LDAPSTR_H_
  19. #define _LDAPSTR_H_
  20. #include <smtpevent.h>
  21. typedef struct _SCHEMA_CONFIG_STRING_TABLE_ENTRY {
  22. eDSPARAMETER DSParam;
  23. LPSTR pszValue;
  24. } SCHEMA_CONFIG_STRING_TABLE_ENTRY, * PSCHEMA_CONFIG_STRING_TABLE;
  25. // Modified 8/13/2001 by dlongley.
  26. //
  27. // No setting for RDN attribute means RDN attribute name will be determined
  28. // dynamically from DNs we process.
  29. #define SCHEMA_CONFIG_STRING_TABLE_NT5 { \
  30. { DSPARAMETER_SEARCHATTRIBUTE_SMTP, "mail"}, \
  31. { DSPARAMETER_SEARCHFILTER_SMTP, "%s"}, \
  32. { DSPARAMETER_SEARCHFILTER_RDN, "%s"}, \
  33. { DSPARAMETER_ATTRIBUTE_OBJECTCLASS, "objectClass"}, \
  34. { DSPARAMETER_ATTRIBUTE_DEFAULT_SMTP, "mail"}, \
  35. { DSPARAMETER_ATTRIBUTE_DEFAULT_DN, "distinguishedName"}, \
  36. { DSPARAMETER_ATTRIBUTE_FORWARD_SMTP, "forwardingAddress"}, \
  37. { DSPARAMETER_ATTRIBUTE_DL_MEMBERS, "member"}, \
  38. { (eDSPARAMETER) PHAT_DSPARAMETER_ATTRIBUTE_DISPLAYNAME, "displayName"}, \
  39. { DSPARAMETER_OBJECTCLASS_USER, "User"}, \
  40. { DSPARAMETER_OBJECTCLASS_DL_X500, "group"}, \
  41. { DSPARAMETER_OBJECTCLASS_DL_SMTP, "RFC822-Distribution-List"}, \
  42. { DSPARAMETER_INVALID, NULL} \
  43. }
  44. #define SCHEMA_REQUEST_STRINGS_NT5 { \
  45. "distinguishedName", \
  46. "forwardingAddress", \
  47. "objectClass", \
  48. "mail", \
  49. "member", \
  50. "displayName", \
  51. NULL \
  52. }
  53. #define SCHEMA_CONFIG_STRING_TABLE_EXCHANGE5 { \
  54. { DSPARAMETER_SEARCHATTRIBUTE_SMTP, "mail"}, \
  55. { DSPARAMETER_SEARCHFILTER_SMTP, "%s"}, \
  56. { DSPARAMETER_SEARCHATTRIBUTE_X400, "textEncodedORAddress"}, \
  57. { DSPARAMETER_SEARCHFILTER_X400, "%s"}, \
  58. { DSPARAMETER_SEARCHATTRIBUTE_RDN, "rdn"}, \
  59. { DSPARAMETER_SEARCHFILTER_RDN, "%s"}, \
  60. { DSPARAMETER_ATTRIBUTE_OBJECTCLASS, "objectClass"}, \
  61. { DSPARAMETER_ATTRIBUTE_DEFAULT_SMTP, "mail"}, \
  62. { DSPARAMETER_ATTRIBUTE_DEFAULT_DN, "distinguishedName"}, \
  63. { DSPARAMETER_ATTRIBUTE_DEFAULT_X400, "textEncodedORAddress"}, \
  64. { DSPARAMETER_ATTRIBUTE_FORWARD_SMTP, "ForwardingAddress"}, \
  65. { DSPARAMETER_ATTRIBUTE_DL_MEMBERS, "member"}, \
  66. { DSPARAMETER_OBJECTCLASS_USER, "person"}, \
  67. { DSPARAMETER_OBJECTCLASS_DL_X500, "groupOfNames"}, \
  68. { DSPARAMETER_OBJECTCLASS_DL_SMTP, "RFC822-Distribution-List"}, \
  69. { DSPARAMETER_INVALID, NULL} \
  70. }
  71. #define SCHEMA_REQUEST_STRINGS_EXCHANGE5 { \
  72. "objectClass", \
  73. "distinguishedName", \
  74. "mail", \
  75. "textEncodedORAddress", \
  76. "LegacyExchangeDN", \
  77. "member", \
  78. "ForwardingAddress", \
  79. NULL \
  80. }
  81. #define SCHEMA_CONFIG_STRING_TABLE_MCIS3 { \
  82. { DSPARAMETER_SEARCHATTRIBUTE_SMTP, "mail"}, \
  83. { DSPARAMETER_SEARCHFILTER_SMTP, "%s"}, \
  84. { DSPARAMETER_SEARCHATTRIBUTE_RDN, "CN"}, \
  85. { DSPARAMETER_SEARCHFILTER_RDN, "%s"}, \
  86. { DSPARAMETER_ATTRIBUTE_OBJECTCLASS, "objectClass"}, \
  87. { DSPARAMETER_ATTRIBUTE_DEFAULT_SMTP, "mail"}, \
  88. { DSPARAMETER_ATTRIBUTE_DEFAULT_DN, "distinguishedName"}, \
  89. { DSPARAMETER_ATTRIBUTE_FORWARD_SMTP, "ForwardingAddress"}, \
  90. { DSPARAMETER_ATTRIBUTE_DL_MEMBERS, "member"}, \
  91. { DSPARAMETER_OBJECTCLASS_USER, "member"}, \
  92. { DSPARAMETER_OBJECTCLASS_DL_X500, "distributionList"}, \
  93. { DSPARAMETER_OBJECTCLASS_DL_SMTP, "RFC822DistributionList"}, \
  94. { DSPARAMETER_INVALID, NULL} \
  95. }
  96. #define SCHEMA_REQUEST_STRINGS_MCIS3 { \
  97. "objectClass", \
  98. "distinguishedName", \
  99. "mail", \
  100. "member", \
  101. "ForwardingAddress", \
  102. NULL \
  103. }
  104. #endif // _LDAPSTR_H_