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.

217 lines
13 KiB

  1. -- Script: uddi.v2.sec.sql
  2. -- Author: [email protected]
  3. -- Description: Grants exec permissions to SP's
  4. -- Note: This file is best viewed and edited with a tab width of 2.
  5. --
  6. -- Create application roles
  7. --
  8. IF NOT EXISTS(SELECT * FROM sysusers WHERE [name] = 'UDDIAdmin')
  9. EXEC sp_addrole 'UDDIAdmin'
  10. GO
  11. IF NOT EXISTS(SELECT * FROM sysusers WHERE [name] = 'UDDIService')
  12. EXEC sp_addrole 'UDDIService'
  13. GO
  14. --
  15. -- Grant SP permissions
  16. --
  17. -- Framework stored procedures
  18. GRANT EXEC ON net_address_addressLine_save TO UDDIAdmin, UDDIService
  19. GRANT EXEC ON net_address_addressLines_get TO UDDIAdmin, UDDIService
  20. GRANT EXEC ON net_bindingTemplate_delete TO UDDIAdmin, UDDIService
  21. GRANT EXEC ON net_bindingTemplate_description_save TO UDDIAdmin, UDDIService
  22. GRANT EXEC ON net_bindingTemplate_descriptions_get TO UDDIAdmin, UDDIService
  23. GRANT EXEC ON net_bindingTemplate_get TO UDDIAdmin, UDDIService
  24. GRANT EXEC ON net_bindingTemplate_instanceDetails_description_save TO UDDIAdmin, UDDIService
  25. GRANT EXEC ON net_bindingTemplate_instanceDetails_descriptions_get TO UDDIAdmin, UDDIService
  26. GRANT EXEC ON net_bindingTemplate_instanceDetails_overviewDoc_description_save TO UDDIAdmin, UDDIService
  27. GRANT EXEC ON net_bindingTemplate_instanceDetails_overviewDoc_descriptions_get TO UDDIAdmin, UDDIService
  28. GRANT EXEC ON net_bindingTemplate_save TO UDDIAdmin, UDDIService
  29. GRANT EXEC ON net_bindingTemplate_tModelInstanceInfo_description_save TO UDDIAdmin, UDDIService
  30. GRANT EXEC ON net_bindingTemplate_tModelInstanceInfo_descriptions_get TO UDDIAdmin, UDDIService
  31. GRANT EXEC ON net_bindingTemplate_tModelInstanceInfo_save TO UDDIAdmin, UDDIService
  32. GRANT EXEC ON net_bindingTemplate_tModelInstanceInfo_validate TO UDDIAdmin, UDDIService
  33. GRANT EXEC ON net_bindingTemplate_tModelInstanceInfos_get TO UDDIAdmin, UDDIService
  34. GRANT EXEC ON net_bindingTemplate_validate TO UDDIAdmin, UDDIService
  35. GRANT EXEC ON net_businessEntity_assertions_get TO UDDIAdmin, UDDIService
  36. GRANT EXEC ON net_businessEntity_bindingTemplates_get TO UDDIAdmin, UDDIService
  37. GRANT EXEC ON net_businessEntity_businessServices_get TO UDDIAdmin, UDDIService
  38. GRANT EXEC ON net_businessEntity_categoryBag_get TO UDDIAdmin, UDDIService
  39. GRANT EXEC ON net_businessEntity_categoryBag_save TO UDDIAdmin, UDDIService
  40. GRANT EXEC ON net_businessEntity_contact_save TO UDDIAdmin, UDDIService
  41. GRANT EXEC ON net_businessEntity_contacts_get TO UDDIAdmin, UDDIService
  42. GRANT EXEC ON net_businessEntity_delete TO UDDIAdmin, UDDIService
  43. GRANT EXEC ON net_businessEntity_description_save TO UDDIAdmin, UDDIService
  44. GRANT EXEC ON net_businessEntity_descriptions_get TO UDDIAdmin, UDDIService
  45. GRANT EXEC ON net_businessEntity_discoveryURL_save TO UDDIAdmin, UDDIService
  46. GRANT EXEC ON net_businessEntity_discoveryURLs_get TO UDDIAdmin, UDDIService
  47. GRANT EXEC ON net_businessEntity_get TO UDDIAdmin, UDDIService
  48. GRANT EXEC ON net_businessEntity_identifierBag_get TO UDDIAdmin, UDDIService
  49. GRANT EXEC ON net_businessEntity_identifierBag_save TO UDDIAdmin, UDDIService
  50. GRANT EXEC ON net_businessEntity_name_save TO UDDIAdmin, UDDIService
  51. GRANT EXEC ON net_businessEntity_names_get TO UDDIAdmin, UDDIService
  52. GRANT EXEC ON net_businessEntity_owner_update TO UDDIAdmin, UDDIService
  53. GRANT EXEC ON net_businessEntity_save TO UDDIAdmin, UDDIService
  54. GRANT EXEC ON net_businessEntity_validate TO UDDIAdmin, UDDIService
  55. GRANT EXEC ON net_businessService_bindingTemplates_get TO UDDIAdmin, UDDIService
  56. GRANT EXEC ON net_businessService_categoryBag_get TO UDDIAdmin, UDDIService
  57. GRANT EXEC ON net_businessService_categoryBag_save TO UDDIAdmin, UDDIService
  58. GRANT EXEC ON net_businessService_delete TO UDDIAdmin, UDDIService
  59. GRANT EXEC ON net_businessService_description_save TO UDDIAdmin, UDDIService
  60. GRANT EXEC ON net_businessService_descriptions_get TO UDDIAdmin, UDDIService
  61. GRANT EXEC ON net_businessService_get TO UDDIAdmin, UDDIService
  62. GRANT EXEC ON net_businessService_name_save TO UDDIAdmin, UDDIService
  63. GRANT EXEC ON net_businessService_names_get TO UDDIAdmin, UDDIService
  64. GRANT EXEC ON net_businessService_save TO UDDIAdmin, UDDIService
  65. GRANT EXEC ON net_businessService_validate TO UDDIAdmin, UDDIService
  66. GRANT EXEC ON net_serviceProjection_validate TO UDDIAdmin, UDDIService
  67. GRANT EXEC ON net_categoryBag_validate TO UDDIAdmin, UDDIService
  68. GRANT EXEC ON net_changeRecord_save TO UDDIAdmin, UDDIService
  69. GRANT EXEC ON net_changeRecord_update TO UDDIAdmin, UDDIService
  70. GRANT EXEC ON net_config_get TO UDDIAdmin, UDDIService
  71. GRANT EXEC ON net_config_save TO UDDIAdmin, UDDIService
  72. GRANT EXEC ON net_config_getLastChangeDate TO UDDIAdmin, UDDIService
  73. GRANT EXEC ON net_contact_address_save TO UDDIAdmin, UDDIService
  74. GRANT EXEC ON net_contact_addresses_get TO UDDIAdmin, UDDIService
  75. GRANT EXEC ON net_contact_description_save TO UDDIAdmin, UDDIService
  76. GRANT EXEC ON net_contact_descriptions_get TO UDDIAdmin, UDDIService
  77. GRANT EXEC ON net_contact_email_save TO UDDIAdmin, UDDIService
  78. GRANT EXEC ON net_contact_emails_get TO UDDIAdmin, UDDIService
  79. GRANT EXEC ON net_contact_phone_save TO UDDIAdmin, UDDIService
  80. GRANT EXEC ON net_contact_phones_get TO UDDIAdmin, UDDIService
  81. GRANT EXEC ON net_find_bindingTemplate_commit TO UDDIAdmin, UDDIService
  82. GRANT EXEC ON net_find_bindingTemplate_serviceKey TO UDDIAdmin, UDDIService
  83. GRANT EXEC ON net_find_bindingTemplate_tModelBag TO UDDIAdmin, UDDIService
  84. GRANT EXEC ON net_find_businessEntity_categoryBag TO UDDIAdmin, UDDIService
  85. GRANT EXEC ON net_find_businessEntity_combineCategoryBags TO UDDIAdmin, UDDIService
  86. GRANT EXEC ON net_find_businessEntity_commit TO UDDIAdmin, UDDIService
  87. GRANT EXEC ON net_find_businessEntity_discoveryURL TO UDDIAdmin, UDDIService
  88. GRANT EXEC ON net_find_businessEntity_identifierBag TO UDDIAdmin, UDDIService
  89. GRANT EXEC ON net_find_businessEntity_name TO UDDIAdmin, UDDIService
  90. GRANT EXEC ON net_find_businessEntity_relatedBusinesses TO UDDIAdmin, UDDIService
  91. GRANT EXEC ON net_find_businessEntity_serviceSubset TO UDDIAdmin, UDDIService
  92. GRANT EXEC ON net_find_businessEntity_serviceSubset_commit TO UDDIAdmin, UDDIService
  93. GRANT EXEC ON net_find_businessEntity_tModelBag TO UDDIAdmin, UDDIService
  94. GRANT EXEC ON net_find_businessService_businessKey TO UDDIAdmin, UDDIService
  95. GRANT EXEC ON net_find_businessService_categoryBag TO UDDIAdmin, UDDIService
  96. GRANT EXEC ON net_find_businessService_commit TO UDDIAdmin, UDDIService
  97. GRANT EXEC ON net_find_businessService_name TO UDDIAdmin, UDDIService
  98. GRANT EXEC ON net_find_businessService_tModelBag TO UDDIAdmin, UDDIService
  99. GRANT EXEC ON net_find_changeRecords TO UDDIAdmin, UDDIService
  100. GRANT EXEC ON net_find_changeRecords_cleanup TO UDDIAdmin, UDDIService
  101. GRANT EXEC ON net_find_changeRecords_commit TO UDDIAdmin, UDDIService
  102. GRANT EXEC ON net_find_cleanup TO UDDIAdmin, UDDIService
  103. GRANT EXEC ON net_findScratch_cleanup TO UDDIAdmin, UDDIService
  104. GRANT EXEC ON net_find_scratch_commit TO UDDIAdmin, UDDIService
  105. GRANT EXEC ON net_find_publisher_cleanup TO UDDIAdmin, UDDIService
  106. GRANT EXEC ON net_find_publisher_commit TO UDDIAdmin, UDDIService
  107. GRANT EXEC ON net_find_publisher_companyName TO UDDIAdmin, UDDIService
  108. GRANT EXEC ON net_find_publisher_email TO UDDIAdmin, UDDIService
  109. GRANT EXEC ON net_find_publisher_name TO UDDIAdmin, UDDIService
  110. GRANT EXEC ON net_find_tModel_categoryBag TO UDDIAdmin, UDDIService
  111. GRANT EXEC ON net_find_tModel_commit TO UDDIAdmin, UDDIService
  112. GRANT EXEC ON net_find_tModel_identifierBag TO UDDIAdmin, UDDIService
  113. GRANT EXEC ON net_find_tModel_name TO UDDIAdmin, UDDIService
  114. GRANT EXEC ON net_highWaterMarks_get TO UDDIAdmin, UDDIService
  115. GRANT EXEC ON net_identifierBag_validate TO UDDIAdmin, UDDIService
  116. GRANT EXEC ON net_key_validate TO UDDIAdmin, UDDIService
  117. GRANT EXEC ON net_keyedReference_validate TO UDDIAdmin, UDDIService
  118. GRANT EXEC ON net_operator_delete TO UDDIADmin, UDDIService
  119. GRANT EXEC ON net_operator_get TO UDDIAdmin, UDDIService
  120. GRANT EXEC ON net_operator_save TO UDDIAdmin, UDDIService
  121. GRANT EXEC ON net_operatorCert_get TO UDDIAdmin, UDDIService
  122. GRANT EXEC ON net_operatorLog_save TO UDDIAdmin, UDDIService
  123. GRANT EXEC ON net_operatorLogLast_get TO UDDIAdmin, UDDIService
  124. GRANT EXEC ON net_operators_get TO UDDIAdmin, UDDIService
  125. GRANT EXEC ON net_publisher_assertion_delete TO UDDIAdmin, UDDIService
  126. GRANT EXEC ON net_publisher_assertion_save TO UDDIAdmin, UDDIService
  127. GRANT EXEC ON net_publisher_assertions_get TO UDDIAdmin, UDDIService
  128. GRANT EXEC ON net_publisher_assertionStatus_get TO UDDIAdmin, UDDIService
  129. GRANT EXEC ON net_publisher_businessInfos_get TO UDDIAdmin, UDDIService
  130. GRANT EXEC ON net_publisher_isRegistered TO UDDIAdmin, UDDIService
  131. GRANT EXEC ON net_publisher_isVerified TO UDDIAdmin, UDDIService
  132. GRANT EXEC ON net_publisher_login TO UDDIAdmin, UDDIService
  133. GRANT EXEC ON net_publisher_tModelInfos_get TO UDDIAdmin, UDDIService
  134. GRANT EXEC ON net_pubOperator_get TO UDDIAdmin, UDDIService
  135. GRANT EXEC ON net_queryLog_save TO UDDIAdmin, UDDIService
  136. GRANT EXEC ON net_report_get TO UDDIAdmin, UDDIService
  137. GRANT EXEC ON net_report_update TO UDDIAdmin, UDDIService
  138. GRANT EXEC ON net_reportLines_get TO UDDIAdmin, UDDIService
  139. GRANT EXEC ON net_serviceProjection_save TO UDDIAdmin, UDDIService
  140. GRANT EXEC ON net_serviceProjection_repl_save TO UDDIAdmin, UDDIService
  141. GRANT EXEC ON net_statistics_recalculate TO UDDIAdmin, UDDIService
  142. GRANT EXEC ON net_taxonomy_delete TO UDDIAdmin, UDDIService
  143. GRANT EXEC ON net_taxonomy_get TO UDDIAdmin, UDDIService
  144. GRANT EXEC ON net_taxonomy_save TO UDDIAdmin, UDDIService
  145. GRANT EXEC ON net_taxonomyValue_get to UDDIAdmin, UDDIService
  146. GRANT EXEC ON net_taxonomyValue_save TO UDDIAdmin, UDDIService
  147. GRANT EXEC ON net_taxonomyValues_get to UDDIAdmin, UDDIService
  148. GRANT EXEC ON net_tModel_categoryBag_get TO UDDIAdmin, UDDIService
  149. GRANT EXEC ON net_tModel_categoryBag_save TO UDDIAdmin, UDDIService
  150. GRANT EXEC ON net_tModel_delete TO UDDIAdmin, UDDIService
  151. GRANT EXEC ON net_tModel_description_save TO UDDIAdmin, UDDIService
  152. GRANT EXEC ON net_tModel_descriptions_get TO UDDIAdmin, UDDIService
  153. GRANT EXEC ON net_tModel_get TO UDDIAdmin, UDDIService
  154. GRANT EXEC ON net_tModel_identifierBag_get TO UDDIAdmin, UDDIService
  155. GRANT EXEC ON net_tModel_identifierBag_save TO UDDIAdmin, UDDIService
  156. GRANT EXEC ON net_tModel_overviewDoc_description_save TO UDDIAdmin, UDDIService
  157. GRANT EXEC ON net_tModel_overviewDoc_descriptions_get TO UDDIAdmin, UDDIService
  158. GRANT EXEC ON net_tModel_owner_update TO UDDIAdmin, UDDIService
  159. GRANT EXEC ON net_tModel_save TO UDDIAdmin, UDDIService
  160. GRANT EXEC ON net_tModel_validate TO UDDIAdmin, UDDIService
  161. -- Added as part of batch optimization
  162. GRANT EXEC ON net_bindingTemplate_get_batch TO UDDIAdmin, UDDIService
  163. GRANT EXEC ON net_bindingTemplate_tModelInstanceInfo_get_batch TO UDDIAdmin, UDDIService
  164. GRANT EXEC ON net_businessEntity_get_batch TO UDDIAdmin, UDDIService
  165. GRANT EXEC ON net_businessInfo_get_batch TO UDDIAdmin, UDDIService
  166. GRANT EXEC ON net_businessEntity_contact_get_batch TO UDDIAdmin, UDDIService
  167. GRANT EXEC ON net_businessService_get_batch TO UDDIAdmin, UDDIService
  168. GRANT EXEC ON net_serviceInfo_get_batch TO UDDIAdmin, UDDIService
  169. GRANT EXEC ON net_tModel_get_batch TO UDDIAdmin, UDDIService
  170. GO
  171. -- UI stored procedures
  172. GRANT EXEC ON UI_getEntityCounts TO UDDIAdmin, UDDIService
  173. GRANT EXEC ON UI_getIdentifierTModels TO UDDIAdmin, UDDIService
  174. GRANT EXEC ON UI_getPublisher TO UDDIAdmin, UDDIService
  175. GRANT EXEC ON UI_getPublisherFromSecurityToken TO UDDIAdmin, UDDIService
  176. GRANT EXEC ON UI_getPublisherStats TO UDDIAdmin, UDDIService
  177. GRANT EXEC ON UI_getSessionCache TO UDDIAdmin, UDDIService
  178. GRANT EXEC ON UI_getTaxonomies TO UDDIAdmin, UDDIService
  179. GRANT EXEC ON UI_getBrowsableTaxonomies TO UDDIAdmin, UDDIService
  180. GRANT EXEC ON UI_getTaxonomyChildrenNode TO UDDIAdmin, UDDIService
  181. GRANT EXEC ON UI_getTaxonomyChildrenRoot TO UDDIAdmin, UDDIService
  182. GRANT EXEC ON UI_getTaxonomyParent TO UDDIAdmin, UDDIService
  183. GRANT EXEC ON UI_getTaxonomyName TO UDDIAdmin, UDDIService
  184. GRANT EXEC ON UI_getTaxonomyStats TO UDDIAdmin, UDDIService
  185. GRANT EXEC ON UI_getTopPublishers TO UDDIAdmin, UDDIService
  186. GRANT EXEC ON UI_getUnhostedTaxonomyTModels TO UDDIAdmin, UDDIService
  187. GRANT EXEC ON UI_isNodeValidForClassification TO UDDIAdmin, UDDIService
  188. GRANT EXEC ON UI_isTaxonomyBrowsable TO UDDIAdmin, UDDIService
  189. GRANT EXEC ON UI_removeSessionCache TO UDDIAdmin, UDDIService
  190. GRANT EXEC ON UI_savePublisher TO UDDIAdmin, UDDIService
  191. GRANT EXEC ON UI_setSessionCache TO UDDIAdmin, UDDIService
  192. GRANT EXEC ON UI_setTaxonomyBrowsable TO UDDIAdmin, UDDIService
  193. GRANT EXEC ON UI_validatePublisher TO UDDIAdmin, UDDIService
  194. GRANT EXEC ON VS_business_get TO UDDIAdmin, UDDIService
  195. GRANT EXEC ON VS_service_get TO UDDIAdmin, UDDIService
  196. GRANT EXEC ON VS_AWR_categorization_get TO UDDIAdmin, UDDIService
  197. GRANT EXEC ON VS_AWR_services_get TO UDDIAdmin, UDDIService
  198. GRANT EXEC ON VS_AWR_businesses_get TO UDDIAdmin, UDDIService
  199. GO
  200. -- Admin stored procedures
  201. GRANT EXEC ON ADM_addServiceAccount TO UDDIAdmin, UDDIService
  202. GRANT EXEC ON ADM_execResetKeyImmediate TO UDDIAdmin, UDDIService
  203. GRANT EXEC ON ADM_findPublisher TO UDDIAdmin, UDDIService
  204. GRANT EXEC ON ADM_removePublisher TO UDDIAdmin, UDDIService
  205. GRANT EXEC ON ADM_setAdminAccount TO UDDIAdmin, UDDIService
  206. GRANT EXEC ON ADM_setPublisherStatus TO UDDIAdmin, UDDIService
  207. GRANT EXEC ON ADM_setPublisherTier TO UDDIAdmin, UDDIService
  208. GO