472,789 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,789 software developers and data experts.

WIndows vs Form authentification ????

Dear all,

I clearly underdand the advantage of both type of authentification but is it
allowed or possible to set the Authentication mode to Windows and then handle
a login form for defined users in Credential section like as follow :

<authentication mode="Windows" >
<forms loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name="Jessee" password="JuneBug"/>
<user name="Linda" password="Liste"/>
<user name="Cal" password="Cal"/>
</credentials>
</forms>
</authentication>

This could happen for instance that if the client browser windows current
user is not corresponding to the Server autorized user on which the web pages
are installed, at that time a login window will occurs for user name and
password
but I still want to handle a login page.

Does that is possible ?

regards
serge
Nov 19 '05 #1
3 2310
So what is advantage of this type of 'authentification'?

Elton Wang

"serge calderara" wrote:
Dear all,

I clearly underdand the advantage of both type of authentification but is it
allowed or possible to set the Authentication mode to Windows and then handle
a login form for defined users in Credential section like as follow :

<authentication mode="Windows" >
<forms loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name="Jessee" password="JuneBug"/>
<user name="Linda" password="Liste"/>
<user name="Cal" password="Cal"/>
</credentials>
</forms>
</authentication>

This could happen for instance that if the client browser windows current
user is not corresponding to the Server autorized user on which the web pages
are installed, at that time a login window will occurs for user name and
password
but I still want to handle a login page.

Does that is possible ?

regards
serge

Nov 19 '05 #2
Authentication and Authorization are different things (but rellated
closely). When <authentication mode="Windows">, that means as long as a user
is using a computer on the network with his user account, the ASP.NET app
will accept his identity without asking extra username/password and doing
its' own authentication. That mean the ASP.NET app agrees any user on this
network is who he claims. However, even the user IS realy who he is
(authenticated), he may or may not have the permission to access some
pages/resources: authorization play s the role here.

In your case, what you need is not another pair of username/password, you
need to authorize different user (or user group) to different
pages(resources). You do it in <authorization /> part, not <authentication
/> part in web.config. You may alos look into <identity impersonate... />
tag in <authentication /> part. If impersonate="true", that means all
authenticated users will be treated (impersonated) as a specific user
(account), that will make your authorization task easier.

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:D8**********************************@microsof t.com...
Dear all,

I clearly underdand the advantage of both type of authentification but is
it
allowed or possible to set the Authentication mode to Windows and then
handle
a login form for defined users in Credential section like as follow :

<authentication mode="Windows" >
<forms loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name="Jessee" password="JuneBug"/>
<user name="Linda" password="Liste"/>
<user name="Cal" password="Cal"/>
</credentials>
</forms>
</authentication>

This could happen for instance that if the client browser windows current
user is not corresponding to the Server autorized user on which the web
pages
are installed, at that time a login window will occurs for user name and
password
but I still want to handle a login page.

Does that is possible ?

regards
serge

Nov 19 '05 #3
Thanks for your reply norman.
I was asking that because I have a strange problem.
I have a web project that I have installed in a Wondows 2000 pro SP4
workstation connected to network. I can acess without any trouble and the
initial web page gets display normally.

Then I copy the same folder on a server 2003 and configured IIS to point to
this folder. Then when I try to access to that web, I get error that page is
not found but is it really there.

Is it a matter of authentication ? in order to be sure I connect to the
server with administarot account from a client PC but no luck.

Why the page cannot be displayed ?

"Norman Yuan" wrote:
Authentication and Authorization are different things (but rellated
closely). When <authentication mode="Windows">, that means as long as a user
is using a computer on the network with his user account, the ASP.NET app
will accept his identity without asking extra username/password and doing
its' own authentication. That mean the ASP.NET app agrees any user on this
network is who he claims. However, even the user IS realy who he is
(authenticated), he may or may not have the permission to access some
pages/resources: authorization play s the role here.

In your case, what you need is not another pair of username/password, you
need to authorize different user (or user group) to different
pages(resources). You do it in <authorization /> part, not <authentication
/> part in web.config. You may alos look into <identity impersonate... />
tag in <authentication /> part. If impersonate="true", that means all
authenticated users will be treated (impersonated) as a specific user
(account), that will make your authorization task easier.

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:D8**********************************@microsof t.com...
Dear all,

I clearly underdand the advantage of both type of authentification but is
it
allowed or possible to set the Authentication mode to Windows and then
handle
a login form for defined users in Credential section like as follow :

<authentication mode="Windows" >
<forms loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name="Jessee" password="JuneBug"/>
<user name="Linda" password="Liste"/>
<user name="Cal" password="Cal"/>
</credentials>
</forms>
</authentication>

This could happen for instance that if the client browser windows current
user is not corresponding to the Server autorized user on which the web
pages
are installed, at that time a login window will occurs for user name and
password
but I still want to handle a login page.

Does that is possible ?

regards
serge


Nov 19 '05 #4

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

Similar topics

0
by: maxx | last post by:
Hi, I want use the header authentification (HTTP/PHP module), and i've a big problem for to get the varaibles 'PHP_AUTH-*". This is my source code :...
6
by: SalamElias | last post by:
I have an application where I added the attribute requireSSL="false" in the authentification elemnt in the dev environment and the apllication compile with no problem. What I want to do is, In...
2
by: Dan | last post by:
hi ng, is there a way to set a page the user gets redirected when using windows authentification (and the user gets authentificated by active directory) and authorization failed?) i have tried...
0
by: Dan | last post by:
hi ng, is there a way to set a custom login failed page when using windows authentification? my settings are: --------------------- <authorization> <allow users="x,y,z" /> <deny users="*"...
2
by: Dan | last post by:
hi ng, i have a problem with windows authentification. i want to forward every user who 1. is not authorized 2. or could not be authenticated to a login page -------------------
1
by: sefe dery | last post by:
Hi ng, i have an Asp.net webapplication on a remote Windows Server 2003. I created on the remote server a windows account and i use the "only windows authentification" in sql server 2000. ...
1
by: HIK | last post by:
I am porting an ASP.net 1.1 application from a win2K server to win2k3 server. The application uses forms authentification. The authentification information is in a query string. The user goes...
3
by: Stan SR | last post by:
Hi, I have a problem with the website that I ve published. I get an authentification form. Which parameters I have to update in the web.config to avoid this ? Do I have to modify something in...
1
by: Chris | last post by:
Hi, we run a webapplication where users must log in. So the web.config contains: <authentication mode="Forms"/and IIS is set to Anonymous authentification. Now we want the same application to...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.