ASP/ADO, SQL7, NT/Win2k authentication 
Author Message
 ASP/ADO, SQL7, NT/Win2k authentication

Hi, all!  Presently I'm using a Win2K Ad Server w/SQL 7.0 Standard (SP2) and
IIS5; also plan to replicate the process to WinNT4 (SP5) w/IIS4 and SQL7
Standard.

Here's the question:  I have a directory containing ASP files, and the
directory has been configured to use Basic Authentication (also tried with
NTLM, but got same results).  Now, the ASP uses ADO to (attempt) connect to
a secured database on SQL7 (same problem whether SQL Server is (local) or
remote machine).  What I'm trying to accomplish is make the user
authenticate in their browser when they request the web page, and that
authentication is used to gain access to the SQL database.  The user in
question has been added to SQL Server's Security database as an NT user, and
not a SQL account (Integrated Security).  In a nutshell, I want a single
login here.

Problem: login into SQL server fails each time; the typical error is "Error
Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'(null)'. Reason: Not associated with a trusted SQL Server connection."

On KB article (Article ID: Q176380) suggest either a) hosting IIS & SQL on
the same machine (not possible in my situation), b) using Basic
Authentication instead of NTLM (tried; no effect), or c) using a trusted
connection (also not possible in my situation).

Another KB article suggested using specific settings in the Properties
collection of the ADODB Connection object to make the connection (it said to
use the "Integrated Security" property, which doesn't exist).  Tried, no
luck.

What I'm trying to accomplish seems so simple I find it amazing that it
isn't possible...  is there a mechanism that will allow me to authenticate
against an NT directory (a web directory), and that authentication is used
to authenticate into SQL Server against an Integrated Security account, with
either NTLM or Basic Authentication?!?!!

Thanks in advance,
SteveB



Wed, 01 Jan 2003 03:00:00 GMT  
 ASP/ADO, SQL7, NT/Win2k authentication
I encountered this problem a couple months ago. You ore opening an ADO
connection without providing a User ID and Password. IIS is connecting to
SQL server via a trusted connection using the IUSR_COMPUTERNAME account. add
IUSR_COMPUTERNAME to SQL Server. "COMPUTERNAME" is the name of the computer
that IIS is running on.


Quote:

> Hi, all!  Presently I'm using a Win2K Ad Server w/SQL 7.0 Standard (SP2)
and
> IIS5; also plan to replicate the process to WinNT4 (SP5) w/IIS4 and SQL7
> Standard.

> Here's the question:  I have a directory containing ASP files, and the
> directory has been configured to use Basic Authentication (also tried with
> NTLM, but got same results).  Now, the ASP uses ADO to (attempt) connect
to
> a secured database on SQL7 (same problem whether SQL Server is (local) or
> remote machine).  What I'm trying to accomplish is make the user
> authenticate in their browser when they request the web page, and that
> authentication is used to gain access to the SQL database.  The user in
> question has been added to SQL Server's Security database as an NT user,
and
> not a SQL account (Integrated Security).  In a nutshell, I want a single
> login here.

> Problem: login into SQL server fails each time; the typical error is
"Error
> Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
> [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
> '(null)'. Reason: Not associated with a trusted SQL Server connection."

> On KB article (Article ID: Q176380) suggest either a) hosting IIS & SQL on
> the same machine (not possible in my situation), b) using Basic
> Authentication instead of NTLM (tried; no effect), or c) using a trusted
> connection (also not possible in my situation).

> Another KB article suggested using specific settings in the Properties
> collection of the ADODB Connection object to make the connection (it said
to
> use the "Integrated Security" property, which doesn't exist).  Tried, no
> luck.

> What I'm trying to accomplish seems so simple I find it amazing that it
> isn't possible...  is there a mechanism that will allow me to authenticate
> against an NT directory (a web directory), and that authentication is used
> to authenticate into SQL Server against an Integrated Security account,
with
> either NTLM or Basic Authentication?!?!!

> Thanks in advance,
> SteveB




Sun, 05 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. NT Authentication w/ASP

2. NT User Authentication through ASP

3. Passing Password to NT (directory authentication) from ASP

4. NT User Authentication through ASP

5. ASP use NT Authentication revisted?

6. Urgent Help Required: ADO ASP and SQL7

7. ADO Connection and Win NT Authentication

8. ADO Connection and Win NT Authentication

9. Open ADO Connection with NT authentication

10. Using NT Authentication with ADO

11. ADO connection to SQL server with NT authentication

12. Using NT Authentication with ADO

 

 
Powered by phpBB® Forum Software