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.

129 lines
6.7 KiB

  1. //
  2. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  3. //
  4. // ***************************************************************************
  5. //
  6. // Original Author: Rajesh Rao
  7. //
  8. // $Author: rajeshr $
  9. // $Date: 6/11/98 4:43p $
  10. // $Workfile:instproi.cpp $
  11. //
  12. // $Modtime: 6/11/98 11:21a $
  13. // $Revision: 1 $
  14. // $Nokeywords: $
  15. //
  16. //
  17. // Description: Contains implementation of the class that is used to initialize the
  18. // CLDAPInstanceProvider class
  19. //
  20. //***************************************************************************
  21. #include "precomp.h"
  22. //***************************************************************************
  23. //
  24. // CDSInstanceProviderInitializer::CDSInstanceProviderInitializer
  25. //
  26. // Constructor Parameters:
  27. // None
  28. //
  29. //
  30. //***************************************************************************
  31. CDSInstanceProviderInitializer :: CDSInstanceProviderInitializer ()
  32. {
  33. CLDAPInstanceProvider :: CLASS_STR = SysAllocString(L"__CLASS");
  34. CLDAPInstanceProvider :: DN_PROPERTY = SysAllocString(L"DN");
  35. CLDAPInstanceProvider :: ROOT_DN_PROPERTY = SysAllocString(L"RootDNForSearchAndQuery");
  36. CLDAPInstanceProvider :: QUERY_LANGUAGE = SysAllocString(L"WQL");
  37. CLDAPInstanceProvider :: RELPATH_STR = SysAllocString(L"__RELPATH");
  38. CLDAPInstanceProvider :: VALUE_PROPERTY_STR = SysAllocString(L"value");
  39. CLDAPInstanceProvider :: DN_STRING_PROPERTY_STR = SysAllocString(L"dnString");
  40. CLDAPInstanceProvider :: UINT8ARRAY_STR = SysAllocString(L"Uint8Array");
  41. CLDAPInstanceProvider :: DN_WITH_BINARY_CLASS_STR = SysAllocString(L"DN_With_Binary");
  42. CLDAPInstanceProvider :: DN_WITH_STRING_CLASS_STR = SysAllocString(L"DN_With_String");
  43. CLDAPInstanceProvider :: ADSI_PATH_STR = SysAllocString(ADSI_PATH_ATTR);
  44. CLDAPInstanceProvider :: INSTANCE_ASSOCIATION_CLASS_STR = SysAllocString(INSTANCE_ASSOCIATION_CLASS);
  45. CLDAPInstanceProvider :: CHILD_INSTANCE_PROPERTY_STR = SysAllocString(L"ChildInstance");
  46. CLDAPInstanceProvider :: PARENT_INSTANCE_PROPERTY_STR = SysAllocString(L"ParentInstance");
  47. CLDAPInstanceProvider :: ATTRIBUTE_SYNTAX_STR = SysAllocString(L"attributeSyntax");
  48. CLDAPInstanceProvider :: DEFAULT_OBJECT_CATEGORY_STR = SysAllocString(L"defaultObjectCategory");
  49. CLDAPInstanceProvider :: LDAP_DISPLAY_NAME_STR = SysAllocString(L"ldapDisplayName");
  50. CLDAPInstanceProvider :: PUT_EXTENSIONS_STR = SysAllocString(L"__PUT_EXTENSIONS");
  51. CLDAPInstanceProvider :: PUT_EXT_PROPERTIES_STR = SysAllocString(L"__PUT_EXT_PROPERTIES");
  52. CLDAPInstanceProvider :: CIMTYPE_STR = SysAllocString(L"Cimtype");
  53. // LDAP://RootDSE Properties
  54. CLDAPInstanceProvider :: SUBSCHEMASUBENTRY_STR = SysAllocString(L"subschemaSubentry");
  55. CLDAPInstanceProvider :: CURRENTTIME_STR = SysAllocString(L"currentTime");
  56. CLDAPInstanceProvider :: SERVERNAME_STR = SysAllocString(L"serverName");
  57. CLDAPInstanceProvider :: NAMINGCONTEXTS_STR = SysAllocString(L"namingContexts");
  58. CLDAPInstanceProvider :: DEFAULTNAMINGCONTEXT_STR = SysAllocString(L"defaultNamingContext");
  59. CLDAPInstanceProvider :: SCHEMANAMINGCONTEXT_STR = SysAllocString(L"schemaNamingContext");
  60. CLDAPInstanceProvider :: CONFIGURATIONNAMINGCONTEXT_STR = SysAllocString(L"configurationNamingContext");
  61. CLDAPInstanceProvider :: ROOTDOMAINNAMINGCONTEXT_STR = SysAllocString(L"rootDomainNamingContext");
  62. CLDAPInstanceProvider :: SUPPORTEDCONTROLS_STR = SysAllocString(L"supportedControl");
  63. CLDAPInstanceProvider :: SUPPORTEDVERSION_STR = SysAllocString(L"supportedLDAPVersion");
  64. CLDAPInstanceProvider :: DNSHOSTNAME_STR = SysAllocString(L"dnsHostName");
  65. CLDAPInstanceProvider :: DSSERVICENAME_STR = SysAllocString(L"dsServiceName");
  66. CLDAPInstanceProvider :: HIGHESTCOMMITEDUSN_STR = SysAllocString(L"highestCommittedUSN");
  67. CLDAPInstanceProvider :: LDAPSERVICENAME_STR = SysAllocString(L"LDAPServiceName");
  68. CLDAPInstanceProvider :: SUPPORTEDCAPABILITIES_STR = SysAllocString(L"supportedCapabilities");
  69. CLDAPInstanceProvider :: SUPPORTEDLDAPPOLICIES_STR = SysAllocString(L"supportedLDAPPolicies");
  70. CLDAPInstanceProvider :: SUPPORTEDSASLMECHANISMS_STR = SysAllocString(L"supportedSASLMechanisms");
  71. }
  72. //***************************************************************************
  73. //
  74. // CDSInstanceProviderInitializer::CDSInstanceProviderInitializer
  75. //
  76. // Destructor
  77. //
  78. //
  79. //***************************************************************************
  80. CDSInstanceProviderInitializer :: ~CDSInstanceProviderInitializer ()
  81. {
  82. SysFreeString(CLDAPInstanceProvider::CLASS_STR);
  83. SysFreeString(CLDAPInstanceProvider::DN_PROPERTY);
  84. SysFreeString(CLDAPInstanceProvider::ROOT_DN_PROPERTY);
  85. SysFreeString(CLDAPInstanceProvider::QUERY_LANGUAGE);
  86. SysFreeString(CLDAPInstanceProvider::RELPATH_STR);
  87. SysFreeString(CLDAPInstanceProvider::VALUE_PROPERTY_STR);
  88. SysFreeString(CLDAPInstanceProvider::DN_STRING_PROPERTY_STR);
  89. SysFreeString(CLDAPInstanceProvider::UINT8ARRAY_STR);
  90. SysFreeString(CLDAPInstanceProvider::DN_WITH_STRING_CLASS_STR);
  91. SysFreeString(CLDAPInstanceProvider::DN_WITH_BINARY_CLASS_STR);
  92. SysFreeString(CLDAPInstanceProvider::ADSI_PATH_STR);
  93. SysFreeString(CLDAPInstanceProvider::INSTANCE_ASSOCIATION_CLASS_STR);
  94. SysFreeString(CLDAPInstanceProvider::CHILD_INSTANCE_PROPERTY_STR);
  95. SysFreeString(CLDAPInstanceProvider::PARENT_INSTANCE_PROPERTY_STR);
  96. SysFreeString(CLDAPInstanceProvider::ATTRIBUTE_SYNTAX_STR);
  97. SysFreeString(CLDAPInstanceProvider::DEFAULT_OBJECT_CATEGORY_STR);
  98. SysFreeString(CLDAPInstanceProvider::LDAP_DISPLAY_NAME_STR);
  99. SysFreeString(CLDAPInstanceProvider::PUT_EXTENSIONS_STR);
  100. SysFreeString(CLDAPInstanceProvider::PUT_EXT_PROPERTIES_STR);
  101. SysFreeString(CLDAPInstanceProvider::CIMTYPE_STR);
  102. // LDAP://RootDSE Properties
  103. SysFreeString(CLDAPInstanceProvider::SUBSCHEMASUBENTRY_STR);
  104. SysFreeString(CLDAPInstanceProvider::CURRENTTIME_STR);
  105. SysFreeString(CLDAPInstanceProvider::SERVERNAME_STR);
  106. SysFreeString(CLDAPInstanceProvider::NAMINGCONTEXTS_STR);
  107. SysFreeString(CLDAPInstanceProvider::DEFAULTNAMINGCONTEXT_STR);
  108. SysFreeString(CLDAPInstanceProvider::SCHEMANAMINGCONTEXT_STR);
  109. SysFreeString(CLDAPInstanceProvider::CONFIGURATIONNAMINGCONTEXT_STR);
  110. SysFreeString(CLDAPInstanceProvider::ROOTDOMAINNAMINGCONTEXT_STR);
  111. SysFreeString(CLDAPInstanceProvider::SUPPORTEDCONTROLS_STR);
  112. SysFreeString(CLDAPInstanceProvider::SUPPORTEDVERSION_STR);
  113. SysFreeString(CLDAPInstanceProvider::DNSHOSTNAME_STR);
  114. SysFreeString(CLDAPInstanceProvider::DSSERVICENAME_STR);
  115. SysFreeString(CLDAPInstanceProvider::HIGHESTCOMMITEDUSN_STR);
  116. SysFreeString(CLDAPInstanceProvider::LDAPSERVICENAME_STR);
  117. SysFreeString(CLDAPInstanceProvider::SUPPORTEDCAPABILITIES_STR);
  118. SysFreeString(CLDAPInstanceProvider::SUPPORTEDLDAPPOLICIES_STR);
  119. SysFreeString(CLDAPInstanceProvider::SUPPORTEDSASLMECHANISMS_STR);
  120. }