Closed, 500 points refunded.
modulo
Community Support Moderator
Experts Exchange
Main Topics
Browse All TopicsI've been struggling with this for a while now. One of the troubles is, I'm not admin on any of the servers (IIS, SQL, or AD).
I'm writing a web/db app that needs to use windows authentication to connect to a sql server. The domain controller, web server, and sql server are three different machines. Currently, I have NT permissions set to prompt a user for a login/pass (NTLM, not basic). I would like to use those credentials to attach to the sql server. I've had no luck.
SQL server is set to Mixed Mode. IIS server is set to NTLM login.
I've used various connection strings in ASP, but again, no luck. I can connect to the DB using Enterprise Manager authenticating with my domain login (so, I'm a valid db user).
Some connection strings I've used:
1.
conn.open "Provider=SQLOLEDB.1;UID=m
((here, i've hardcoded in my login/pass (which I don't want to do) and error: "Login failed for user mydomain/myusername"))
2.
conn.open "Provider=SQLOLEDB.1;Integ
((here, i've used "integrated security" but error: "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'"))
I've used plenty of other combinations of switches and options but to no avail. However, I created a "Standard" sql login and used it's username/password to connect (via #1, above) it worked just fine.
Bottom line. I am using NTLM to authenticate to my web app. I can connect to my DB using a sql account. I want to connect to my DB using NTLM authentication. The three services (IIS, SQL, AD) are on three different servers. Any help?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: dgoodingPosted on 2004-05-03 at 12:05:59ID: 10980588
Found my own solution.
QLServer/A rticle/Art icleID/236 70/ 23670.h tml
http://www.winnetmag.com/S