Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2006, 10:10 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Ponsjuh
Default Get roles without the login control

Hello,

i'm building a intranetsite for a company at the moment and i have trouble getting user roles. The problem is that i don't want my users to login thru a logincontrol.

the reason is that my users all logon to windows with a unique number (username doh!! ;) ) and i can use this number to get more info about the user (thru LDAP but with different purposes then login).

now i do want the users to have roles because i have users who should be able to edit the content of the site/ or view "Highly-Top-Secret-For-Your-Eyes-Only" information :D.

so what i'm saying is that the website should be able to tell the difference between the users that request different pages without the user login twice (one time for windows, one time for the intranetsite).
 
Old July 7th, 2006, 10:42 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Try using:
If User.Identity.IsAuthenticated = True Then
  ...
End IF

 
Old July 10th, 2006, 04:00 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Ponsjuh
Default

Yes i found the solution

thanks jbenson001 :)

i used it in combination with
formsAuthentication.Authenticate(request.LogonUser Identity.Name,"<defaultpass>")

 
Old July 10th, 2006, 08:48 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

glad you got it working






Similar Threads
Thread Thread Starter Forum Replies Last Post
login control hastikeyvan ASP.NET 3.5 Basics 1 May 7th, 2008 04:47 AM
Login control RubyRue ASP.NET 1.0 and 1.1 Basics 1 October 10th, 2007 07:08 AM
login, roles problem... dbrook007 ASP.NET 2.0 Basics 0 November 6th, 2006 06:16 AM
Login Control Mahill ASP.NET 2.0 Basics 1 May 19th, 2006 02:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.