473,666 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Portal Starter Kit authentication


can some one point me what i'm doing wrong? I have spent half a day figuring
out and totally stuck now.

Here's what I'm trying to accomplish: I am writing a web appl - an intranet
portal site (based on the portal starter kit) and I want to apply role based
security to the site. - When the users type in the intranet URL, a windows
logon window would pop up and then users login with their NT credentials.
Based upon theie level of security they see the tabs on the portal.
Here's what I have accomplished so far:
1. Created new groups on the domain.
2. Turned on the authentication to "windows" in the web.config file of the
portal site.
3. Added
<authorizatio n>
<allow roles = "doaminname\rol e1,doaminname\r ole4" />
<deny users="*">
</authorization>
in the web.config.
4. Added the LogOnID to the users table and the exact domain roles to the
Roles table.

However the wuthentication is not working correctly, the windows logon
prompt keeps poping.. and the app redirects to the AccessDenied page.

Your kind help is greatly appreciated.

"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamM> wrote in
message news:uO******** ******@TK2MSFTN GP09.phx.gbl...
I am not sure what would be consider good and simple in your vernacular, but there are plenty of free (thats right folks, free) books at
http://msdn.microsoft.com/architecture. Look for the patterns and practices section. Great information on security, infrastructure and architecture for developers. Does not completely relate directly to .NET windows
authentication, but you will find the topics in there.

Now, as far as windows authentication goes, what you are you trying to
accomplish. A web app or a windows app, or are you just looking for the
basics of NTFS permissions and how they relate to user's logons? Or, do you want to get into Active Directory?

The answers to these questions will help myself and others lead you in the
right direction, as there is a lot of information out there, both in books
and online.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
<.net user> wrote in message news:OE******** ******@TK2MSFTN GP12.phx.gbl...
I have been using .net for a while. I want to have my windows

authentication
concepts cleared - . particularly how it works on Intranet sites. Is

there
a good, simple to understand reference book/sites that can help me with?

Appreciate any help.


Nov 18 '05 #1
1 1643
".net user" <msnews.microso ft.com> wrote in message
news:Oz******** ******@TK2MSFTN GP09.phx.gbl...

can some one point me what i'm doing wrong? I have spent half a day figuring out and totally stuck now.

Here's what I'm trying to accomplish: I am writing a web appl - an intranet portal site (based on the portal starter kit) and I want to apply role based security to the site. - When the users type in the intranet URL, a windows
logon window would pop up and then users login with their NT credentials.
Based upon theie level of security they see the tabs on the portal.
Here's what I have accomplished so far:
1. Created new groups on the domain.
Good for windows authentication.
2. Turned on the authentication to "windows" in the web.config file of the
portal site.
Also good for windows authentication.
3. Added
<authorizatio n>
<allow roles = "doaminname\rol e1,doaminname\r ole4" />
<deny users="*">
</authorization>
in the web.config.
Looks fine so far.
4. Added the LogOnID to the users table and the exact domain roles to the
Roles table.
This sounds more like forms based authentication.
However the wuthentication is not working correctly, the windows logon
prompt keeps poping.. and the app redirects to the AccessDenied page.

Your kind help is greatly appreciated.
Here are the steps for windows.

1. Add the group in question (either to machine or domain).
2. Add users to group
3. Make sure the user is logging onto the domain
This is most likely where you problem is

Three options to fix:
1. Have user add domain name before user, like
USER BOX: DomainName\User name
PASSWORD BOX: Password

2. Set up the app to use the domain. This a dual edged sword.
a. Open Internet Services Manager
b. Goto Directory Security tab
c. Click the top edit button: Enable Anonymous Access ....
d. Use Basic authentication (the edge of the sword)
e. Cllick edit and add the domain nameNow, try logging on again with the name.
For the dual edge part. A person logging in can have their logon

compromised.

3. Make a local group(s) on the web server and use it.
a. Add domain group(s) to local group(s)
b. Change authentication to use the local group(s), not the domain (in
web.config)

This is standard windows. You add domain users to domain groups and then add
domain groups to local groups for access to the local machine. The rules can
be played a bit different in Active Directory, of course, but this will
still work.

NOTE: You can also add users to the local group and bypass the domain group
addition, if you feel you can manage it there. IN general, I would not
advise this.

I am sure there are others who can come up with even more options.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** *************** **********
Think Outside the Box!
*************** *************** *************** *************** **********
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1822
by: Samuel Berry | last post by:
I hope I am posting this to the correct newsgroup, I apoligize if I am in error. I am looking into creating my own portal. I realize that there are several out there allready pre-built(ie asp.net Portal Starter Kit) What I am looking for is either a book that produces one from start to finish where I can read and type in the code o suggestions on how to take say, asp.net Portal Starter Kit and reproduce what is there Thanks for any...
3
1734
by: Dan Sikorsky | last post by:
How can I install the Portal starter kit to a different Solution/Project name, having a different SQL Server database name? I'd like to start a new solution using the Portal starter kit as a beginning point, and adapt it to what my customer needs. -- Dan Sikorsky, MSCS BSCE BAB
0
1022
by: Jill Graham | last post by:
Hi, I'm looking at the ASP.NET Portal Starter Kit. All pages within the application are redirected to the DesktopDefault.aspx file. The DesktopDefault.aspx file defines the layout of the page : a banner on top of the page and three panes (leftpane, contentpane, rightpane). I want to adapt the Portal as follows :
3
1550
by: eridgway | last post by:
Hello, Been working on a project using the Portal Starter Kit. Just about ready to "go-live" when the bossman asks me "how safe is it". A vague question at best, I know, but here's what I'd like to know to make sure I'm covered when I say "pretty darn secure" 1) Has there been any instances of people being able to access sections of the site w/o a role being assigned (or being logged in)?
5
2135
by: Kamil Tezduyar | last post by:
I want to create a team to develop a web portal framework. The main purpose of this framework is reusing this in many projects. The major idea in my mind it, building it as much as flexible. We will create the framework with the combinations of the team members. This development will be online and we will use online source controls for both code, and documentation. I think 5 asp.net experienced team member is enough for this project. I...
18
1798
by: Juan Gil | last post by:
I have a problem with this. I installed it in my computer to modify it, but when I try to save the configuration file(xml file) the server returned an error that say that I dont have permissions to write in the server. How i can write file in the server?.
1
1256
by: ad | last post by:
I modify the DesktopPortalBanner.ascx in the Portal Starter Kit http://www.asp.net/Default.aspx?tabindex=8&tabid=47 I modify the text of Portal Home to Chinese. It display well in design time, but it display a mess in run time. How can I solve this problem?
1
1260
by: | last post by:
Hello, I have a question about the lastest version of the portal starter kit. In the old version, the configuration of the portal was defined in the database ("module" table). In the current version , all the configuration is in a XML file. My question is Why did the author make this evolution ? Is it better to load a XML file, then to rewrite it if the user change the portal config, than to read and write modification in the database ? ...
2
1267
by: eric34 | last post by:
Hello, I am looking at building a portal, and would like to make sure I pick th eright technology. I have seen that asp.net 2.0 embed the notion of portal, and figured that may be it would be the way to go. But I have discovered that there is only a Portal starter kit for asp.net 1.1 and not for 2.0, so now I am confused. Have I missed it? Thanks in advance for the help, Eric
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.