Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Windows Authentication - mod ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedWindows Authentication - mod ?

 Post Reply Post Reply Page  12>
Author
dorje View Drop Down
Newbie
Newbie
Avatar

Joined: 18 February 2003
Status: Offline
Points: 10
Direct Link To This Post Topic: Windows Authentication - mod ?
    Posted: 18 February 2003 at 10:07pm

I assume this has been asked before but searching on "NT authentication" or "windows authentication" only turns up two posts, unrelated to my question.

Question - has anyone created / heard of a mod for web wiz which provides windows authentication rather than forcing users to create a web wiz account.

I'm keen to avoid reinventing the wheel - but will try to come up with some beta code if it doesn't exist.

My goal is seamless user experience, in a windows environment. Mainly as the information held by web wiz will be a duplication of information already held by Active Directory or employee database.

Thanks for your comments

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Direct Link To This Post Posted: 19 February 2003 at 6:14am

I altered version 6.x in about 20 minutes to work with Windows Authentication.

What I did was make change the code field in the author table to hold the NT password, then in the common.asp file where the cookie containing the users code is read in changed it to read in the NT password which was then matched up with the code field in the database.

This is the line I changed:-

'Read in users ID number from the cookie
'strLoggedInUserCode = Trim(Mid(Request.Cookies("Forum")("UserID"), 1, 44))

strLoggedInUserCode = Trim(Request.ServerVariables("AUTH_USER"))

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Direct Link To This Post Posted: 19 February 2003 at 6:15am
The same type of thing would work in version 7.
Back to Top
Corobori View Drop Down
Newbie
Newbie


Joined: 20 August 2003
Status: Offline
Points: 11
Direct Link To This Post Posted: 20 August 2003 at 10:36pm

Originally posted by -boRg- -boRg- wrote:

What I did was make change the code field in the author table to hold the NT password, then in the common.asp file where the cookie containing the users code is read in changed it to read in the NT password which was then matched up with the code field in the database.

boRG, no problem with changing the code but I don't grasp the meaning of "make change the code field in the author table to hold the NT password".

Any thanks for your forum, it looks good so far and was ready to set up,

Cheers from Chile,

jean-luc

Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Direct Link To This Post Posted: 20 August 2003 at 11:26pm
is it possible to add users to windows authentication with asp?

if so it would be a cool mod to make where people can sign up and it would create a login. then people can login using windows authentication.
Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Direct Link To This Post Posted: 21 August 2003 at 3:21am

yes. Search for ADSI at MSDN. Plenty of examples on interacting with Active Directory through code.

Make sure you have sufficient permissions and know what you are doing!

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
Corobori View Drop Down
Newbie
Newbie


Joined: 20 August 2003
Status: Offline
Points: 11
Direct Link To This Post Posted: 21 August 2003 at 7:18am

MadDog,

You may also have a look at http://www.aspuser.com/

Back to Top
Corobori View Drop Down
Newbie
Newbie


Joined: 20 August 2003
Status: Offline
Points: 11
Direct Link To This Post Posted: 21 August 2003 at 1:31pm

Originally posted by -boRg- -boRg- wrote:

'Read in users ID number from the cookie
'strLoggedInUserCode = Trim(Mid(Request.Cookies("Forum")("UserID"), 1, 44))

strLoggedInUserCode = Trim(Request.ServerVariables("AUTH_USER"))

I must be missing something here because when I am using the Trim(Request.ServerVariables("AUTH_USER")) the strLoggedInUserCode will contain the User's name but when using Trim(Mid(Request.Cookies("Forum")("UserID")  it contains the actual User_code you're using.

The part which confused me the most is when you're saying "users code is read in changed it to read in the NT password".

Well, all in all my question is that if anybody managed to get it working. Any clue welcome.

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.