Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Go Back  Xtreme Visual Basic Talk > > > Second Level Authentication...suggestions pls


Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2006, 08:39 PM
Brad- Brad- is offline
Newcomer
 
Join Date: Nov 2004
Location: Alabama
Posts: 24
Default Second Level Authentication...suggestions pls


Hey All, Just wanted your opionion on what a simple way to accomplish the following would be. I know this isnt the ideal forum for this question, but there is just too much knowledge here to not ask

I have a website, duh, with a purchased SSL cert, and it is currently set to disallow unauthenticated users, so they put in a PW to get to the site.

How can I, on top of that, have another passworded section within teh website. I have 2 admin pages that I dont want regular users to get to.

So far, I have added a general user to the server, made a new directory and taken NTFS permissions from that user...but they can still see the page, unless I take all rights from the, and I get an Unhandled Exception error on the server. I have also tried making a virtual directory, same faults.

Any other ideas? Btw, these are .aspx pages.
Reply With Quote
  #2  
Old 09-20-2006, 08:05 AM
wayneph's Avatar
waynephSecond Level Authentication...suggestions pls wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

Use "Roles"

Basically, all of your users will be put into groups. "User", "Admin", etc... When the user logs in, look up their Roles in the database. On each page that is Admin only, make sure the user is in the appropriate role. Otherwise give them an unauthorized message or something like that.

You mentioned an ASPX page. Are you using .NET 1.1 or .NET 2.0? You may be able to accomplish this, with just a couple changes to the web.config file.

(and i've moved this thread to the web programming forum where it fits in a little better. )
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #3  
Old 09-20-2006, 08:00 PM
Brad- Brad- is offline
Newcomer
 
Join Date: Nov 2004
Location: Alabama
Posts: 24
Default

Thanks. I dont even know if I'm using the right verbage to ask the question, but what would be some good phrases to google for to find an example of what I want to do? This is .NET 2.0
Reply With Quote
  #4  
Old 09-21-2006, 07:49 AM
wayneph's Avatar
waynephSecond Level Authentication...suggestions pls wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

For both 1.1 and 2.0 the main keyword you'll be looking for is "Forms Authentication". In 2.0, they've expanded what was available in 1.1 with the Membership API and Roles API.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #5  
Old 09-21-2006, 05:06 PM
Brad- Brad- is offline
Newcomer
 
Join Date: Nov 2004
Location: Alabama
Posts: 24
Default

Yep...knowing what to search for is sometimes half the problem

Thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
 
Second Level Authentication...suggestions pls
Second Level Authentication...suggestions pls
 
-->