Re: Connecting to SQL through ASP

From: Ken Schaefer (kenREMOVE_at_THISadOpenStatic.com)
Date: 04/30/03


Date: Wed, 30 Apr 2003 14:20:39 +1000


Because you have unchecked "allow anonymous access", all the stuff you have
done creating the IUSR accounts etc is not currently working. Renable
anonymous access and it should probably work.

At the moment, the webpages are using the user's NT credentials, however
unless you enable delegation, the webserver is unable to pass these
credentials to the machine running SQL Server.

Renable anonymous authentication if you want the IUSR_<machine> account to
be used to access the remote SQL Server.

Cheers
Ken

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Ann" <williaj@rrb.gov> wrote in message
news:9bfb47c2.0304292015.343782b6@posting.google.com...
: Guys I need your help.
:
: I think i have followed the instructions for connecting to SQL Server
: when IIS and SQL are on different machines, but I still get error,
: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.  What am I
: missing?
:
: IIS 5.0 machine running on win2000 pro
: Anonymous account IUSR_MACHINENAME was given password
: Authentication Method for the web was set to:
: Anonymous is not checked
: Basic is checked
: Integrated is checked
:
: SQL 7.0 machine running on win2000 pro
: Created local account with same name (IUSR_MACHINENAME) as IIS
: anonymous account and same password
: Gave this account log on locally rights and Access this computer from
: the network rights
: Added new login IUSR_MACHINENAME in SQL Enterprise manager and mapped
: it to the local account I created above
: Added this login to the database I want to access
: My connection string is:
: "Provider=SQLOLEDB.1;Initial Catalog=XXXXXXX;Integrated
: Security=SSPI;Data Source=XXXXXXX"
:
: Can anyone help????
:
: Thanks
: Ann


Relevant Pages

  • Re: MSSQL$SBSMONITORING Login to Disabled Account?
    ... SQL Server installed, I can't have the tools you were using, can I? ... I still don't know what that process is doing trying to login to the ... Administrator account and I don't understand why this login attempt is ...
    (microsoft.public.windows.server.sbs)
  • Re: xp_cmdshell issue, local system
    ... So initially I tried to change the login using EM, ... account to the localsystem for SQL Server and the same for agent which worked ... Now when I go and try the same for the agent startup account it ...
    (microsoft.public.sqlserver.security)
  • Re: Problems changing the password for the service account in SQL
    ... It is because there is BULTIN\Administrstors Login that alllow access to ... You have a domaim account group that SQL Server ... this domain account in SQL Server ...
    (microsoft.public.sqlserver.security)
  • Re: Builtin Administrators Group and SQL Agent Jobs
    ... >gave that login full access to all SQL DB's. ... >group and rights to all the SQL Server databases. ... >Administrator Server role explicitly. ... >account that is a member of the DBA group and this group ...
    (microsoft.public.sqlserver.security)
  • Re: The SA Mess
    ... I agree - no one needs to use the sa account. ... How does a firewall know that there was an unsuccessful login to SQL ... That info has to come from SQL Server. ...
    (microsoft.public.sqlserver.security)