CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 2/11/2004 1:20:36 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 9 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
jklittle
Asp.Net User
Windows Authentication and Roles2/11/2004 1:20:36 PM

0/0

I am trying to come up with a way in which to have users authenticated via the NT Domain and then according to their NT Security Group know whether they have permission to view/edit a module or page. I have looked at several expamples of how some metioned they accomplished this and, following their directions, I can't seem to get it to work. What works is this; If I add the DOMAIN\USERNAME to the users table and then relate it to a Portal Role then it works. However, if I add DOMAIN\NTGROUPS to the roles table then it doesn't work.
I would rather add NTGROUPS than all of our users to the tables. I have edited the Web.config file to allow for Windows Authentication, and I have edited the Security.VB file as well. Both these were mention in the post I am refering to though I can't find the post any longer. I am using the newest release of the Portal. Using Windows 2000 Server. Any Ideas?
bcHall
Asp.Net User
Re: Windows Authentication and Roles2/16/2004 3:00:00 AM

0/0

I'm using NT security for the Portal as well. I'm replacing the httpcontext code in security.vb with System.Threading.Thread.CurrentPrincipal.IsInRole(role), which works with NT Security.
jklittle
Asp.Net User
Re: Windows Authentication and Roles2/17/2004 3:02:36 PM

0/0

Thanks for the info. I tried that but, I am still where I was before. I have several NTGROUPS listed in the ROLES table in the portal database. I have no users listed in the USERS table. This option with the changes I got from the post here allow me to see the web pages that are setup for all users but I am not able to administer any pages nor see the admin page. I must be missing something. It appears to work if I load users into the USERS table. For some reason it isn't pulling any of the roles the user is assigned to from the NTGROUPS? Is there a configuration I am missing? Permissions issue? Thanks
jklittle
Asp.Net User
Re: Windows Authentication and Roles2/23/2004 8:58:01 PM

0/0

Ok here is where I am at. I have changed the user controls that were 'hardwired' for the admin roles in the portal, most of the controls in the admin folder. I then started getting errors like BC30616. After double checking my work, my notes and few printed pages from this forum, which by the way doesn't print very well from IE, I removed my name from the users tables and viola. I still can not see, much less use the admin page. I have a NTGROUP that I am a member of assigned to be able to edit those pages and I still can not access them. The NTGROUP is in the Roles Table and before switching over I made sure that the NTGROUP could edit all pages. Which I can not, now that I am out of the user table.

The code I changed in the users controls was this:

'Verify that the current user has access to this page
If PortalSecurity.IsInRoles("Admins") = False then
Response.Redirect("~/Admin/EditAccessDenied.aspx")
end if

to the following:

' Obtain PortalSettings from Current Context
Dim _portalSettings as PortalSettings = CType(HttpContext.Current.Items("PortalSettings"). PortalSettings)

' Verify that the current user has access to acces this page
If PortalSecurity.IsInRoles(_portalSettings.ActiveTab.AuthorizedRoles) = False then
Response.Redirect("~/Admin/EditAccessDenied.apsx")
end if

Am I missing something like the NTGROUPS must be a local group?

Thanks in advance for the replies
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006
Microsoft SQL Server 2000: A Guide to Enhancements and New Features Authors: Rahul Sharma, Pages: 592, Published: 2002
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Professional DotNetNuke 4: Open Source Web Application Framework for ASP.NET 2.0 Authors: Shaun Walker, Joe Brinkman, Bruce Hopkins, Scott McCulloch, Patrick J. Santry, Chris Paterra, Scott Willhite, Dan Caron, Pages: 517, Published: 2006
SQL Server Security: covers SQL Server 2000 and SQL Server 7 security Authors: Chip Andrews, David Litchfield, David (David William) Litchfield, Bill Grindlay, Pages: 352, Published: 2003
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
SQL Server 2005 T-SQL Recipes: A Problem-Solution Approach Authors: Joseph Sack, Pages: 733, Published: 2005
Building Portals, Intranets, and Corporate Web Sites Using Microsoft Servers Authors: James J. Townsend, Dmitri Riz, Deon Schaffer, Pages: 517, Published: 2004
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006

Web:
Windows Authentication with Role based authorization - ShowUsYour ... “out-of-hours” that needed to use integrated Windows authentication and also use Role based authorization based on the users Windows Group membership. ...
How To: Use Windows Authentication in ASP.NET 2.0 When you use Windows authentication, user names take the form domainName\ userName. Windows groups are used as roles and they take the form ...
Role -based security using windows authentication : microsoft ... Hi , We have a table in the oracle database called user which has these fields and their related data and a role table User table: user_id , ntdomain ...
David Crawford's WebLog : How To: STS/Windows Authentication with ... Feb 16, 2007 ... How To: STS/Windows Authentication with ADAM/AD, Roles in AzMan with WCF. I ran across the following article by Sam Gentile that may be of ...
Working with Roles and Windows Authentication - -[Danny Chen ... Apr 19, 2005 ... The Web Admin Tool allows web-admins to create users, create roles, put users in roles, and it's done. But with Windows Authentication, ...
ASP.NET 2.0 Intranet - Windows Authentication, SQL Roles ... Windows authentication; AD user store; SQL Server role store ... NET is configured for Windows authentication ...
CodeProject: Extending Forms Authentication - Windows or Custom ... All you have to do is extend these classes and add your custom authentication and roles, or if you are using Windows authentication, just add your custom ...
How to Configure Integrated Windows Authentication Integrated Windows authentication enables the server to authenticate users ... server that has both the Client Access and Mailbox server roles installed. ...
windows authentication, specifc Role permissions, SQL Server roles ... windows authentication, specifc Role permissions, SQL Server roles ASP. ... Is there anyway to use Windows Integrated authentication AND SQL Server groups? ...
How To: STS/Windows Authentication with ADAM/AD, Roles in AzMan ... I no have Single-Sign on Windows/Kerberos Authentication together with AD/ADAM for WCF services with Role Based Security roles in AzMan! ...

Videos:
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...




Search This Site:










[securityexception: failure decoding embedded permission set object.]

dnn in an intranet environment

app_themes in a child application

sitemapnode.attributes - protected??

asp.net development server won't open ie

web parts dynamically loading controls error

error deleting a portal ...

membershipprovider sql server 2005 source code?

javascript body-onload

whats new module on non-us date system

loding a usercontrol winth in an other user control

** about login **

general login page using vwd and godaddy.

from 2.1.2 to 3.2 ?

mysql connection string setup for dnn

making visual web studios update my css style sheet file attached to my .aspx site

get user login name under w2000

error when installing dnn

using parent-masterpage contentplaceholders in child-masterpage content pages

internet explorer web controls problem with tabstrip with out using mutipage on page.navigation

dnn path masking - url rewriter

web parts

reading files

categorizing the news-section

data application block problem in enterprise libraries

missing user controls

master page mystery event solution

free domain and web spase

accessdenied.aspx

vs 2005 pro** file>>new>>web site ** no templates!!!

 
All Times Are GMT