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: Authentication: NT
 Forcing NT authentication
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

(.)z
New Member

United Kingdom
85 Posts

Posted - 30 January 2001 :  12:40:26  Show Profile  Visit (.)z's Homepage  Send (.)z an AOL message  Send (.)z an ICQ Message  Send (.)z a Yahoo! Message
Rather than changing access permissions on the server, I added the following lines at the bottom of config.asp in the else part of if strAuthType = "db" then
	'## Force NT Authentication
if Request.ServerVariables("LOGON_USER") = "" Then
Response.Status = "401 Access Denied"
Response.End
end if
This did the trick.
My question is - is there any reason I should not do it this way?



Regards - z - http://www.discuss-online.co.uk/

Kal Corp
Average Member

USA
878 Posts

Posted - 02 February 2001 :  16:38:36  Show Profile  Visit Kal Corp's Homepage
what does this do for you?

Go to Top of Page

(.)z
New Member

United Kingdom
85 Posts

Posted - 02 February 2001 :  16:58:03  Show Profile  Visit (.)z's Homepage  Send (.)z an AOL message  Send (.)z an ICQ Message  Send (.)z a Yahoo! Message
This forces the browser/server to authenticate when accessing forums on my web site without makeing the whole site insist on authentication.

I.e. it allows authentication to be controlled by the ASP code, rather than on a site or directory level.

Q. can you set non-anonymous access on a sub-directory of an application root only so the application does not require authentication but everything under the (snitz) directory requires authentication. If you can then the above code does not offer any benefits.

Except, it saves the person setting up snitz having to set the authentication cos snitz control it based upon the flag in the config table.

Regards - z - http://www.discuss-online.co.uk/

Edited by - (.)z on 03 February 2001 05:25:02
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 03 February 2001 :  01:03:24  Show Profile
Thanks for this code.

======
Doug G
======
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07