Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 SQL 2005, IIS6, authentication questions
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 May 2006 :  13:49:23  Show Profile  Send ruirib a Yahoo! Message
Have you unchecked Windows Authentication in IIS manager?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobsmith
Starting Member

25 Posts

Posted - 16 May 2006 :  13:50:19  Show Profile
quote:
Originally posted by ruirib

Have you unchecked Windows Authentication in IIS manager?



Windows Auth still checked in IIS 6
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 May 2006 :  13:50:40  Show Profile  Send ruirib a Yahoo! Message
Remove that.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobsmith
Starting Member

25 Posts

Posted - 16 May 2006 :  13:55:44  Show Profile
OK, now I get 401.2 access denied.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 May 2006 :  14:12:40  Show Profile  Send ruirib a Yahoo! Message
Again, I have no big experience with Windows 2003. On my test system, the IUSR_ account has no permissions set for the site folder, but there is an IIS_WPG that needs R / RE / L rights for the folder.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobsmith
Starting Member

25 Posts

Posted - 16 May 2006 :  14:17:42  Show Profile
UNCLE!

OK, I removed IUSR and addedd IIS_WPG with the rights specificed above. Still getting 401.2 access denied. I'm sure its a permissions issue, but I can't put my finger on it.

If I turn on anon, I get a usrname/pswrd prompt, but I know I'm not supposed to get that. I'm just not sure where the problem is.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 16 May 2006 :  14:20:58  Show Profile  Visit HuwR's Homepage
if you get a password prompt when anon access is enabled it almost certainly means that the permissions are wrong on the folder, try giving the everyone group (if there is one) read permissions to the forum directory
Go to Top of Page

bobsmith
Starting Member

25 Posts

Posted - 16 May 2006 :  14:28:19  Show Profile
Let me clarify:

Anon is OFF and I get password prompt.

Anon is ON, I get access denied.

I currently have anon OFF and I get a pswrd prompt. When I enter admin (server admin) credentials, I can access the site, login, create users, etc.

So, obviously, what I want is for everyone to have access to read default.asp but nothing beyond that unless they are registered user.

So...what to do, what to do...
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 16 May 2006 :  14:41:23  Show Profile  Visit HuwR's Homepage
anon has to be ON, you then need to fix the permissions on the directory so that you can get in, to do this try adding the Everyone acount to the directory, if that doesn't work I would delete everything and start again, but you must turn ON ANON access otherwise it just will not work ever unless you give everyone a login to the server
Go to Top of Page

bobsmith
Starting Member

25 Posts

Posted - 16 May 2006 :  15:27:24  Show Profile
OK, anon is ON, iusr has RE/L/R permissions on the folder.

I get this:

The database could not be opened !!
Check your config.asp file and set the
strConnString so it points to the database.
Also check if strDBType is set to the right databasetype.



Code : 80040E4D

Error Description :
Login failed for user 'DOMAIN\IUSR_SERVERNAME'

PS: I have Trusted_Connection=yes in my connection string.

PSS: I turned off Friendly HTTP messages and I see this:

Microsoft OLE DB Provider for SQL Server error '80040e4d'

Login failed for user 'DOMAIN\IUSR_SERVERNAME'.

/inc_header.asp, line 111


Edited by - bobsmith on 16 May 2006 16:08:47
Go to Top of Page

bobsmith
Starting Member

25 Posts

Posted - 16 May 2006 :  16:18:21  Show Profile
Done. It works. I asked the wife (former IBM Global Services Team Lead) and she pointed out that my IUSR had not been granted login rights to my SQL 2005 database. Once added, it works great!

Thanks to you all for your replies.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 16 May 2006 :  17:31:16  Show Profile  Visit HuwR's Homepage
your IUSR account does not requir login to your sql database, that is a massive security risk, the only user that requires access to your SQL db should be the user you used in your config.asp, I am a fully qualified MS SQL Administrator, so you cantell your wife from me that what she has told you to do is avery dangerous thing
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 16 May 2006 :  17:32:35  Show Profile  Visit HuwR's Homepage
you should not be using a trusted connection, that is why it thinks IUSR needs permissions, where in the config.asp do you see a string that uses trusted connections
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 16 May 2006 :  18:26:31  Show Profile  Visit HuwR's Homepage
bobsmith,
You really must remove the IUSR from your SQL database, it is like giving a convicted burglar the keys to your house

Edited by - HuwR on 16 May 2006 19:23:49
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 May 2006 :  19:22:54  Show Profile  Send ruirib a Yahoo! Message
Yes, I can only second Huwr's opinion, you have no need to use Windows Authentication to access SQL Server. You should setup a login with SQL Server authentication, add a user associated with that login to the database and specify that user in the connection string, in config.asp.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07