Authentication Question

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Authentication question

    Hi,

    I'm developing an Internet site that is going to be
    password protected. I have one windows 2000 domain on the
    Internet side of things, and another on an Intranet side.
    Is there any way to authenticate a user that hits my
    Internet pages against the Intranet user database?

    ......I just want users from the Intranet to automatically
    be able to access the Internet pages without having to
    create a separate user on the Internet-side domain.

    Allan Guest

  2. Similar Questions and Discussions

    1. Stupid Authentication Question
      I am writing an aspx (Visual Basic) logon app for a friend (he needs to be able to reset expired passwords, so the regular windows logon won't...
    2. Forms Authentication Question
      Everything is working in my authentication process except for the fact that I can't retrieve the "UserData" property from the...
    3. Windows Authentication Question !!
      Hi Guys, I have <%=User.Identity.Name%> on my asp.net page and i can retrieve the Username for example ComputerName/Username or...
    4. Question about authentication, need help pls
      Hi, I have the following question - is it possbile, from an aspx page, to get the currently logged in user on the windows machine, that is...
    5. asp.net FORMS authentication question
      hi all with forms authentication, how does that work for a site with introduction and tour or maybe some more pages? by using forms...
  3. #2

    Default Re: Authentication question

    "Allan" <allanr00@hotmail.com> wrote in message
    news:148801c3880a$c445dff0$a401280a@phx.gbl...
    > Hi,
    >
    > I'm developing an Internet site that is going to be
    > password protected. I have one windows 2000 domain on the
    > Internet side of things, and another on an Intranet side.
    > Is there any way to authenticate a user that hits my
    > Internet pages against the Intranet user database?
    >
    > .....I just want users from the Intranet to automatically
    > be able to access the Internet pages without having to
    > create a separate user on the Internet-side domain.

    There would have to be a trust established between the two domains, and then
    you could and your intranet users to the ACLs on your content.

    --
    Tom Kaminski IIS MVP
    [url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
    [url]http://mvp.support.microsoft.com/[/url]
    [url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]



    Tom Kaminski [MVP] Guest

  4. #3

    Default Re: Authentication question

    Thanks Tom. Do you know where I could look to get started
    finding out how to do this?

    >-----Original Message-----
    >"Allan" <allanr00@hotmail.com> wrote in message
    >news:148801c3880a$c445dff0$a401280a@phx.gbl...
    >> Hi,
    >>
    >> I'm developing an Internet site that is going to be
    >> password protected. I have one windows 2000 domain on
    the
    >> Internet side of things, and another on an Intranet
    side.
    >> Is there any way to authenticate a user that hits my
    >> Internet pages against the Intranet user database?
    >>
    >> .....I just want users from the Intranet to
    automatically
    >> be able to access the Internet pages without having to
    >> create a separate user on the Internet-side domain.
    >
    >
    >There would have to be a trust established between the
    two domains, and then
    >you could and your intranet users to the ACLs on your
    content.
    >
    >--
    >Tom Kaminski IIS MVP
    >[url]http://www.iistoolshed.com/[/url] - tools, scripts, and
    utilities for running IIS
    >[url]http://mvp.support.microsoft.com/[/url]
    >[url]http://www.microsoft.com/windowsserver2003/community/cente[/url]
    rs/iis/
    >
    >
    >
    >.
    >
    Allan Guest

  5. #4

    Default Re: Authentication question

    I imagine there's documentation on TechNet in the windows server areas.

    "Allan" <allanr00@hotmail.com> wrote in message
    news:072901c38909$3d3e4d30$a101280a@phx.gbl...
    > Thanks Tom. Do you know where I could look to get started
    > finding out how to do this?
    >
    >
    > >-----Original Message-----
    > >"Allan" <allanr00@hotmail.com> wrote in message
    > >news:148801c3880a$c445dff0$a401280a@phx.gbl...
    > >> Hi,
    > >>
    > >> I'm developing an Internet site that is going to be
    > >> password protected. I have one windows 2000 domain on
    > the
    > >> Internet side of things, and another on an Intranet
    > side.
    > >> Is there any way to authenticate a user that hits my
    > >> Internet pages against the Intranet user database?
    > >>
    > >> .....I just want users from the Intranet to
    > automatically
    > >> be able to access the Internet pages without having to
    > >> create a separate user on the Internet-side domain.
    > >
    > >
    > >There would have to be a trust established between the
    > two domains, and then
    > >you could and your intranet users to the ACLs on your
    > content.
    > >
    > >--
    > >Tom Kaminski IIS MVP
    > >[url]http://www.iistoolshed.com/[/url] - tools, scripts, and
    > utilities for running IIS
    > >[url]http://mvp.support.microsoft.com/[/url]
    > >[url]http://www.microsoft.com/windowsserver2003/community/cente[/url]
    > rs/iis/
    > >
    > >
    > >
    > >.
    > >

    Tom Kaminski [MVP] Guest

  6. #5

    Default Authentication Question

    Hello. I'm new to .NET and I have a question regarding authentication and authorization
    I am using forms authentication (because user names and passwords are stored in an Oracle db) to provide logon functionality, then I'm using a session User object (custom-made) to which I set a isAuthenticated flag. On "members-only" pages I check the isAuthenticated flag to determine if the user is authenticated or not before displaying the page
    If requirements impose a restriction on using cookies, is this considered a bad design or not? If yes, then why so
    What other options do I have for cookieless authentication
    I would appreciate any kind of help
    Thank
    Jenna
    Jenna Simmer Guest

  7. #6

    Default Re: Authentication Question

    Forms authentication works on cookie authentication. If you donot want to
    use cookies, go for windows authentication which would not make sense on
    internet.

    Av.

    "Jenna Simmer" <anonymous@discussions.microsoft.com> wrote in message
    news:7075962D-E1B7-4CE1-A735-3DA193220427@microsoft.com...
    > Hello. I'm new to .NET and I have a question regarding authentication and
    > authorization.
    > I am using forms authentication (because user names and passwords are
    > stored in an Oracle db) to provide logon functionality, then I'm using a
    > session User object (custom-made) to which I set a isAuthenticated flag.
    > On "members-only" pages I check the isAuthenticated flag to determine if
    > the user is authenticated or not before displaying the page.
    > If requirements impose a restriction on using cookies, is this considered
    > a bad design or not? If yes, then why so?
    > What other options do I have for cookieless authentication?
    > I would appreciate any kind of help.
    > Thanks
    > Jenna

    avnrao Guest

  8. #7

    Default Re: Authentication Question

    Thanks for the reply, but I'm confused: should I use forms/cookies or windows authentication
    I'm starting to become very concerned. Everything that I read on the Internet about authentication involves some forms/cookies implementation, and that I cannot use. I don't think I can use windows authentication since the member's data is stored in an Oracle database
    I always thought that custom authentication (without cookies) should be a somewhat common practice; I haven't found anything like this yet and I'm worried about my design: maybe there is a simple way of breaking my application that I haven't even thought of
    I would appreciate any comments from anyone on this topic
    Thank you
    J
    Jenna Simmer Guest

  9. #8

    Default Re: Authentication Question

    I think you're safe storing the authentication status in session state. This
    should work fine. I use it in the admin section of an e-commerce web site.

    "Jenna Simmer" <anonymous@discussions.microsoft.com> wrote in message
    news:7075962D-E1B7-4CE1-A735-3DA193220427@microsoft.com...
    > Hello. I'm new to .NET and I have a question regarding authentication and
    authorization.
    > I am using forms authentication (because user names and passwords are
    stored in an Oracle db) to provide logon functionality, then I'm using a
    session User object (custom-made) to which I set a isAuthenticated flag. On
    "members-only" pages I check the isAuthenticated flag to determine if the
    user is authenticated or not before displaying the page.
    > If requirements impose a restriction on using cookies, is this considered
    a bad design or not? If yes, then why so?
    > What other options do I have for cookieless authentication?
    > I would appreciate any kind of help.
    > Thanks
    > Jenna

    Rick Spiewak Guest

  10. #9

    Default Re: Authentication Question

    Hello,
    A custom made user passport like object in a session should do the required job and there isnt any security problem with it. I am also using a similar technique in a banking application
    regards
    Hammad.Rajjoub

    ----- Jenna Simmer wrote: ----

    Thanks for the reply, but I'm confused: should I use forms/cookies or windows authentication
    I'm starting to become very concerned. Everything that I read on the Internet about authentication involves some forms/cookies implementation, and that I cannot use. I don't think I can use windows authentication since the member's data is stored in an Oracle database
    I always thought that custom authentication (without cookies) should be a somewhat common practice; I haven't found anything like this yet and I'm worried about my design: maybe there is a simple way of breaking my application that I haven't even thought of
    I would appreciate any comments from anyone on this topic
    Thank you
    J
    Hammad Rajjoub Guest

  11. #10

    Default RE: Authentication Question

    Thanks to everyone for their answers
    J
    Jenna Simmer Guest

  12. #11

    Default Authentication question

    Can I authenticate users of my ASP .NET apps, using their windows
    credentials, but using a SQL db.
    Let me explain a little more.
    I have an Windows XP station where i run my ASP .NET apps. I wish users to
    authenticate them using their current windows usernames and passwords.
    I have stored my users login names and passwords in SQL database, because I
    don't wish store an account for every user in my network at my XP machine.
    So is it posible to pass windows credential for verification against SQL
    database? Or maybe the right question is, can I extract the username and
    password as clear text from the passed credentials.
    I am not quite shure are there any possibilities.

    TIA


    Nikolay Petrov Guest

  13. #12

    Default Re: Authentication question

    Hi,

    You can get the user name from the windowsidentity class.
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecurityprincipalwindowsidentityclassna metopic.asp[/url]

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconthewindowsauthenticationprovider.asp[/url]

    Ken
    -----------------------
    "Nikolay Petrov" <johntup2@mail.bg> wrote in message
    news:uZKa1FAuEHA.2876@TK2MSFTNGP14.phx.gbl...
    Can I authenticate users of my ASP .NET apps, using their windows
    credentials, but using a SQL db.
    Let me explain a little more.
    I have an Windows XP station where i run my ASP .NET apps. I wish users to
    authenticate them using their current windows usernames and passwords.
    I have stored my users login names and passwords in SQL database, because I
    don't wish store an account for every user in my network at my XP machine.
    So is it posible to pass windows credential for verification against SQL
    database? Or maybe the right question is, can I extract the username and
    password as clear text from the passed credentials.
    I am not quite shure are there any possibilities.

    TIA



    Ken Tucker [MVP] Guest

  14. #13

    Default Re: Authentication question

    Need more information about your infrastructure to provide a sensible
    answer. Here are some 'leading' questions to make sure we're on the same
    track:
    - are you looking for single-sign-on?
    - when you are talking windows credentials does that imply AD & domain user
    accounts - or is this network a workgroup with just local machine accounts?

    Also a couple of pointers/ideas:
    - Generally you don't store passwords - you only ever store a hash of the
    password. After the hash of the password is verified, the password itself is
    discarded.
    If you do store passwords this is a BIG security risk.
    - Have you considerd ADAM (Active Directory Application Mode) as a possible
    alternative to SQL server?
    see
    [url]http://www.microsoft.com/downloads/details.aspx?FamilyId=9688F8B9-1034-4EF6-A3E5-2A2A57B5C8E4&displaylang=en[/url]


    richlm Guest

  15. #14

    Default Re: Authentication question

    Thank you,
    We have no intention of using a single logon to our application. We are
    aiming at domain accounts, AD.

    So far I can prompt the user to enter a user id, domain name and
    password. The I validate these using LogonUser and then
    I start our application using the user's information, the application is
    started under the user's identity.... like runas will do.

    This works fine, but now we have 2 clients, one that uses smart-cards
    and the other one that uses a fingerprint reader to authenticate the users
    at logon. Is there a standard API I can use? or will I have to write a
    custom module for each client?

    Thank you!

    "richlm" <rich_lm@h0tmai1.com> wrote in message
    news:eOXBVesuEHA.2096@tk2msftngp13.phx.gbl...
    > Need more information about your infrastructure to provide a sensible
    > answer. Here are some 'leading' questions to make sure we're on the same
    > track:
    > - are you looking for single-sign-on?
    > - when you are talking windows credentials does that imply AD & domain
    > user accounts - or is this network a workgroup with just local machine
    > accounts?
    >
    > Also a couple of pointers/ideas:
    > - Generally you don't store passwords - you only ever store a hash of the
    > password. After the hash of the password is verified, the password itself
    > is discarded.
    > If you do store passwords this is a BIG security risk.
    > - Have you considerd ADAM (Active Directory Application Mode) as a
    > possible alternative to SQL server?
    > see
    > [url]http://www.microsoft.com/downloads/details.aspx?FamilyId=9688F8B9-1034-4EF6-A3E5-2A2A57B5C8E4&displaylang=en[/url]
    >
    >

    MP Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139