M
marek zegarek
Hello!
I know, that was a lot of threads about it, but nothing helps me...
I get user 'null' when i'm trying to access SQL.
My lab:
1) one client station with IE
2) one w2k3 with Sharepoint Portal Server. It contains webpart displaying my
asp.net page
3) one server with IIS that contains my asp.net page (configured as Windows
Authentication only)
4) one server with SQL 2000 database (configured in mixed mode)
User 'null' is between 3 and 4. In webconfig i have this lines for
authentication:
<authentication mode="Windows"/>
<identity impersonate="true" />
SQL connection string is:
<add name="connStr" connectionString="Data Source=srvSQL;Initial
Catalog=MyTestDB;Integrated Security=true;"
ProviderName="System.Data.SqlClient"/>
I'm using datareader to read data from base. I'm trying to give access to
read to users, who will be in specific domain group. Second new group will
have write permissions. Last will be admins.
How can I pass username from client to SQL by WWW?
I know, that was a lot of threads about it, but nothing helps me...
I get user 'null' when i'm trying to access SQL.
My lab:
1) one client station with IE
2) one w2k3 with Sharepoint Portal Server. It contains webpart displaying my
asp.net page
3) one server with IIS that contains my asp.net page (configured as Windows
Authentication only)
4) one server with SQL 2000 database (configured in mixed mode)
User 'null' is between 3 and 4. In webconfig i have this lines for
authentication:
<authentication mode="Windows"/>
<identity impersonate="true" />
SQL connection string is:
<add name="connStr" connectionString="Data Source=srvSQL;Initial
Catalog=MyTestDB;Integrated Security=true;"
ProviderName="System.Data.SqlClient"/>
I'm using datareader to read data from base. I'm trying to give access to
read to users, who will be in specific domain group. Second new group will
have write permissions. Last will be admins.
How can I pass username from client to SQL by WWW?