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
 How to use Basic Authentication instead of IWA?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Phil B.
Starting Member

2 Posts

Posted - 14 September 2007 :  13:29:27  Show Profile
Hi,

I have successfully enabled Integrated Windows Authentication on my forum server and now users can log in using their windows credentials and an account gets automatically created for them once successfully logged in.

Within my company, we have some issues with IWA and prefer if the authentication method is Basic Authentication instead of IWA. If I leave NT Authentication checked in Snitz but change the IIS authentication setting to Basic Auth, I get an error message from the forum about it not being able to find a specific NT lookup function.

My question is: Could anyone give me some pointers on what to change in the forum code so that it will take the authenticated user from the HTTP header and still auto-create the user account if none previously existed, without calling NT auth functions that rely on IWA? I'm assuming here that it would be fairly straightforward to do this ... but let me know if I'm opening a can of worms by wanting to do this ....

Thanks a lot in advance for your help!

Philip

Phil B.
Starting Member

2 Posts

Posted - 14 September 2007 :  14:44:29  Show Profile
Ok ... I figured it out myself already. Looks like it was two things:

1. I had the NT groups feature still turned on (which does not work when only using Basic Auth).

2. I looked at a previous post (http://forum.snitz.com/forum/topic.asp?TOPIC_ID=56753) and found that editing NTAuthenticate() in inc_func_common.asp provides a fix. Here's what I changed:

if strAutoLogon="1" then
	strNTUserFullName = Session(strCookieURL & "strNTUserFullName")
	if Session(strCookieURL & "strNTUserFullName") = "" then
		'Set strNTUserInfo = GetObject("WinNT://"+strNTUser)
		'strNTUserFullName=strNTUserInfo.FullName
		strNTUserFullName=Mid(strNTUser,(instr(1,strNTUser,"/")+1),len(strNTUser))
Session(strCookieURL & "strNTUserFullName") = strNTUserFullName
	end if
end if


I commented out the two lines and added the new line setting strNTUserFullName based on the strNTUser.

Philip

Edited by - Phil B. on 14 September 2007 14:46:14
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 September 2007 :  15:30:15  Show Profile  Send ruirib a Yahoo! Message
Glad you fixed and thanks for posting the fix.


Snitz 3.4 Readme | Like the support? Support Snitz too
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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07