Re: windows authentication from web servers
From: Don Grover (dgrover_at_assoft.com.au)
Date: 01/03/05
- Next message: Ken Schaefer: "Re: windows authentication from web servers"
- Previous message: Hassan: "windows authentication from web servers"
- In reply to: Hassan: "windows authentication from web servers"
- Next in thread: Ken Schaefer: "Re: windows authentication from web servers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 3 Jan 2005 17:09:45 +1100
"Hassan" <fatima_ja@hotmail.com> wrote in message
news:e1qbYUV8EHA.1292@TK2MSFTNGP10.phx.gbl...
> If we use Windows authentication only for our SQL servers, how do we
> authenticate from the IIS Web Servers ? Do I need to logon to all the Web
> Servers with a particular domain account that has a account created in SQL
> ?
> Or are there other ways ?
>
>
If in same domain use prot: Named Pipes with Win Authentication
If across internet use prot: TCP/IP with sql username/password from each web
server.
Examples below.
'Use Named pipes connection to database
oConn.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=" &
sDBUserName & ";Password=" & sDBPassword & ";Initial Catalog=" & sDBCatalog
& ";Data Source=" & sDBServer & ";Network Library=DBNMPNTW;Use Procedure for
Prepare=2;Auto Translate=True;Packet Size=4096;Application
Name=CMDExecute;Workstation ID=" & sUserConnected & ";Use Encryption for
Data=False;Tag with column collation when possible=False"
' use Winsock as transport protocol
'oConn.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=" &
sDBUserName & ";Password=" & sDBPassword & ";Initial Catalog=" & sDBCatalog
& ";Data Source=" & sDBServer & ";Network Library=DBMSSOCN;Use Procedure for
Prepare=2;Auto Translate=True;Packet Size=4096;Application
Name=CMDExecute;Workstation ID=" & sUserConnected & ";Use Encryption for
Data=False;Tag with column collation when possible=False"
' use Multi Protocol as transport
'oConn.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=" &
sDBUserName & ";Password=" & sDBPassword & ";Initial Catalog=" & sDBCatalog
& ";Data Source=" & sDBServer & ";Network Library=DBMSRPCN;Use Procedure for
Prepare=2;Auto Translate=True;Packet Size=4096;Application
Name=CMDExecute;Workstation ID=" & sUserConnected & ";Use Encryption for
Data=False;Tag with column collation when possible=False"
Regards
Don Grover
- Next message: Ken Schaefer: "Re: windows authentication from web servers"
- Previous message: Hassan: "windows authentication from web servers"
- In reply to: Hassan: "windows authentication from web servers"
- Next in thread: Ken Schaefer: "Re: windows authentication from web servers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|