powered by simpleCommunicator - 2.0.49     © 2025 Programmizd 02
Форумы / SharePoint [игнор отключен] [закрыт для гостей] / Integrated Security - как решить вопрос доступа к данным
8 сообщений из 8, страница 1 из 1
Integrated Security - как решить вопрос доступа к данным
    #38303078
HOME_X
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Доброго дня господа !

Подскажите как доступиться к данным базы (НЕ СПИСКИ SP !!!!!) использую Windows аутентификацию

Завел Web страницу SP
На ней положим два источника данных
с ОЧНЫМ паролем
с Windows аутентификацией

Имею ошибку
Код: html
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
<%-- _lcid="1033" _version="12.0.4518" _dal="1" --%>
<%-- _LocalBinding --%>
<%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,webpagecreation_bp_title%>" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
	<table>
		<tr>
			<td class="ms-pagetitle" style='width: 100%'>
			<WebPartPages:WebPartZone runat="server" Title="loc:TitleBar" ID="TitleBar" AllowLayoutChange="false" AllowPersonalization="false"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone></td>
			<td class="ms-propertysheet" nowrap="true">
			<SharePoint:BpScript runat="server"/></td>
		</tr>
	</table>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
	<META Name="GENERATOR" Content="Microsoft SharePoint">
	<META Name="ProgId" Content="SharePoint.WebPartPage.Document">
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
	<META Name="CollaborationServer" Content="SharePoint Team Web Site">
	<script>
	var navBarHelpOverrideKey = "wssmain";
	</script>
	<SharePoint:RssLink runat="server"/>
	<SharePoint:ScriptLink language="javascript" name="bpstd.js" runat="server"/>
	<style>
	Div.ms-titleareaframe {
		height: 100%;
	}
	.ms-pagetitleareaframe table {
		background: none;
	}
	</style>
<!--[if gte mso 9]><xml>
<o:CustomDocumentProperties>
<o:Category msdt:dt="string">9-Examples of Best Practice</o:Category></o:CustomDocumentProperties></xml><![endif]-->
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderSearchArea" runat="server">
	<SharePoint:DelegateControl runat="server"
		ControlId="SmallSearchInputBox"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
	<SharePoint:ProjectProperty Property="Description" runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server">
	<div height=100% class="ms-pagemargin"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></div>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
		<table cellpadding="4" cellspacing="0" border="0" width="100%">
				<tr valign="top">
					<td width="100%">
						<WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly" Title="loc:FullPage" ID="FullPage" AllowLayoutChange="false" AllowPersonalization="false"><ZoneTemplate>
<WebPartPages:ContentEditorWebPart runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{27B3F9F0-5288-4E2E-B998-BB58704DC7CD}" >
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
  <Title>Content</Title>
  <FrameType>None</FrameType>
  <Description>Use for formatted text, tables, and images.</Description>
  <IsIncluded>true</IsIncluded>
  <PartOrder>1</PartOrder>
  <FrameState>Normal</FrameState>
  <Height />
  <Width />
  <AllowRemove>true</AllowRemove>
  <AllowZoneChange>true</AllowZoneChange>
  <AllowMinimize>false</AllowMinimize>
  <AllowConnect>true</AllowConnect>
  <AllowEdit>true</AllowEdit>
  <AllowHide>true</AllowHide>
  <IsVisible>true</IsVisible>
  <DetailLink />
  <HelpLink />
  <HelpMode>Modeless</HelpMode>
  <Dir>Default</Dir>
  <PartImageSmall />
  <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
  <PartImageLarge />
  <IsIncludedFilter />
  <ExportControlledProperties>true</ExportControlledProperties>
  <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
  <ID>g_27b3f9f0_5288_4e2e_b998_bb58704dc7cd</ID>
  <ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
  <Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[<STRONG>Hello</STRONG>
<DIV></DIV>]]></Content>
  <PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
</WebPart>
</WebPartPages:ContentEditorWebPart>
</ZoneTemplate></WebPartPages:WebPartZone>
					</td>
					<asp:SqlDataSource runat="server" id="SqlDataSource1" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=IEVV11111;Initial Catalog=SOV;User ID=dsa;Password=asd" SelectCommand="SELECT [TAB], [LOGON] FROM [ALL_LIST]">
					</asp:SqlDataSource>
					<asp:GridView runat="server" id="GridView2" AutoGenerateColumns="False" DataSourceID="SqlDataSource2">
						<Columns>
							<asp:boundfield DataField="TAB" HeaderText="TAB" SortExpression="TAB">
							</asp:boundfield>
							<asp:boundfield DataField="LOGON" HeaderText="LOGON" SortExpression="LOGON">
							</asp:boundfield>
						</Columns>
					</asp:GridView>
					<asp:GridView runat="server" id="GridView1" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
						<Columns>
							<asp:boundfield DataField="TAB" HeaderText="TAB" SortExpression="TAB">
							</asp:boundfield>
							<asp:boundfield DataField="LOGON" HeaderText="LOGON" SortExpression="LOGON">
							</asp:boundfield>
						</Columns>
					</asp:GridView>
					<asp:SqlDataSource runat="server" id="SqlDataSource2" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=IEVV11111;Initial Catalog=SOV;Integrated Security=True" SelectCommand="SELECT [TAB], [LOGON] FROM [ALL_LIST]">
					</asp:SqlDataSource>
				</tr>
		</table>
</asp:Content>




Код: sql
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Microsoft.SharePoint.WebPartPages.DataSourceControlDisabledException: This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[DataSourceControlDisabledException: This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.]
   Microsoft.SharePoint.WebControls.SPSqlDataSource.CheckConnectionString(String ConnectionString) +339
   Microsoft.SharePoint.WebControls.SPSqlDataSource.GetView(String viewName) +75
   System.Web.UI.DataSourceControl.System.Web.UI.IDataSource.GetView(String viewName) +10
   System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +128
   System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +19
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


--------------------------------------------------------------------------------
...
Рейтинг: 0 / 0
Integrated Security - как решить вопрос доступа к данным
    #38303512
Crazy_Driver
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Напрямую решением в лоб не выйдет. Нужно использовать подключение к бизнес-данным либо в Sharepoint Designer либо в Visual studio.

Пример с MSDN
...
Рейтинг: 0 / 0
Integrated Security - как решить вопрос доступа к данным
    #38303813
HOME_X
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Crazy_Driver,
Принято - работаю !
...
Рейтинг: 0 / 0
Integrated Security - как решить вопрос доступа к данным
    #38303861
HOME_X
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Crazy_DriverНапрямую решением в лоб не выйдет. Нужно использовать подключение к бизнес-данным либо в Sharepoint Designer либо в Visual studio.

Пример с MSDN

Ознакомился - только не совсем понял ...
1. при чем здесь Windows аутентификация ? (нет подключения только в данном случае, с явным вводом пароля все
корректно и заводить внешний контент в BDS не нужно)
преобразование в список мне не нужно ..., только доступ к данным.
2. стоит версия SP2007 - в ней такие действия возможны - ссылочку приведите пожалуйста.
...
Рейтинг: 0 / 0
Integrated Security - как решить вопрос доступа к данным
    #38303897
Crazy_Driver
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Тогда тынц , тынц или тынц
...
Рейтинг: 0 / 0
Integrated Security - как решить вопрос доступа к данным
    #38306094
HOME_X
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Работаю по статье
http://sharepointblog.michaelrperry.com/2008/06/how-to-connect-to-sql-2005-database_12.html

Но страница источников данных не активна (скрин прилагаю)

Подскажите как завести источники (или эта статья результат УЖЕ сформированнных по BDS)
...
Рейтинг: 0 / 0
Integrated Security - как решить вопрос доступа к данным
    #38306367
HOME_X
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
HOME_X,

Все получилось - только в целом результат не достигнт
Windows ауентификация на проходит - только ЯВНО !!!!!
...
Рейтинг: 0 / 0
Integrated Security - как решить вопрос доступа к данным
    #38307681
HOME_X
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
HOME_XHOME_X,

Windows ауентификация на проходит - только ЯВНО !!!!!


Может будут еще соображения ?
...
Рейтинг: 0 / 0
8 сообщений из 8, страница 1 из 1
Форумы / SharePoint [игнор отключен] [закрыт для гостей] / Integrated Security - как решить вопрос доступа к данным
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]