Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > membership and redirect of unauthenticated requests

Reply
Thread Tools

membership and redirect of unauthenticated requests

 
 
Jerry C
Guest
Posts: n/a
 
      06-14-2006
I am trying to implment membership.

The problem I am having is setting up the authentication and authorization
section.
I may have misunderstood this class.

I want to have a user that is using IE and is a member of the domain or if
there is a stand alone server that has a companion account on the server with
the same username and password as their workstation. To go to the defaultUrl
and be authorized by integrated windows (IE is setup to login). This works
for these users if I set the properties of the defaultUrl page to integrated
windows. But the other users do not get redirected they only get a login
popup from the server. I then wanted to use active directory membership to
authenticate them.

Can you give me some direction on how to do this.

Thank you.

--
Jerry
 
Reply With Quote
 
 
 
 
Luke Zhang [MSFT]
Guest
Posts: n/a
 
      06-15-2006
Hello Jerry,

Is the stand alone server also in the domain? If not, the domain users are
not able to be authenticated directly. You may need a login form for them
to input user name, password and domain name. In the login form, you may
query AD and verify the user.

For other users (With companion account on the stand alone server) , you
may provide a link on the login form, and pointing to a page with windows
authentication. In this page, set the Context.User:

GenericPrincipal principal = new GenericPrincipal(id, groups);

Context.User = principal;

And then, redirect to other pages.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
 
Jerry C
Guest
Posts: n/a
 
      06-15-2006
Thanks for the reply.

This server is not on the domain. I think I understand what to do for Users
with companion accounts but now what do I do with users that use a browser
that does not send user id like mac users. How can I tell the difference. I
want to use a custom login page and don't want the user to get the login
popup from the server.

--
Jerry


"Luke Zhang [MSFT]" wrote:

> Hello Jerry,
>
> Is the stand alone server also in the domain? If not, the domain users are
> not able to be authenticated directly. You may need a login form for them
> to input user name, password and domain name. In the login form, you may
> query AD and verify the user.
>
> For other users (With companion account on the stand alone server) , you
> may provide a link on the login form, and pointing to a page with windows
> authentication. In this page, set the Context.User:
>
> GenericPrincipal principal = new GenericPrincipal(id, groups);
>
> Context.User = principal;
>
> And then, redirect to other pages.
>
> Regards,
>
> Luke Zhang
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>

 
Reply With Quote
 
Luke Zhang [MSFT]
Guest
Posts: n/a
 
      06-16-2006
Hello Jerry,

I found this issue is related to another thread from you, so I replied same
in the two threads:

The login popup dialog is generated by IE and IIS. When we see the dialog,
the web application is not really "touched": when we enable the windows
authentication, IIS will require IE send windows authentication token, if
IIS didn't find one (for example, a user from unknown AD), it will return
IE an error message, and the login popup dialog will be displayed in IE.
So, what we can do in the ASP.NET application, wouldn't change this
behavior.

How about this: you may have a main "entry" form, user can select his
source by himself, for example, he can select if he is a user with
companion account, or a AD user which need to be authenticated with form.
If user select "companion account", you may redirect him to a windows
authentication webform. For others, redirect him to a login form.

Regards,

Luke Zhang
Microsoft Online Community Lead

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Denying unauthenticated access to a .txt file Penguini ASP .Net 2 12-03-2007 04:53 PM
E500 Switch: Unauthenticated MAC and SNMP mathias@gummert.de Cisco 0 11-20-2006 10:35 AM
Problem using login control when site has both authenticated an unauthenticated users Keithb ASP .Net 0 10-28-2006 10:25 PM
redirect unauthenticated users from frameset child pages? =?Utf-8?B?V2lsbGlhbSBTdWxsaXZhbg==?= ASP .Net 3 11-02-2005 06:22 PM
Prevent uploaded documents folder from search engine or unauthenticated access: bradley ASP .Net 1 06-08-2005 09:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57