Re: How to capture network login using ASP.NET

You'll need to disable anonymous access to the home page if you wish the
client user's to be authenticated on that page. If you're running an
intranet application, there's usually little reason not to do this.
However, if your application is meant to be used by external users, this may
cause problems for users that either do not have accounts on your network or
for whom logging in to view the home page might be seen as a nuisance.

<mchemsi@xxxxxxxxx> wrote in message

I'm currently maintaining an ASP.NET application with not much
knowledge about .NET. So any help would be greatly appreciated.

The application is access internally and has different modules in it,
most modules are available to all users. However, some should be only
available to paticular users (like the admin section).

Web Application:
|----->Module 1
|----->Module 2
|----->Module 3
|----->Module 4
|----->Admin Module (Need to be restricted based on network id)

Currently, the home page does not have any menu link to the admin
section and if you know the path you can access without a problem. I am
trying to avoid using a web form to login to that section and use the
network login as an authentication.

I would like to add a link in the menu to the admin module and make
visible only if USER1 for an example is accessing the page.

I have tried using
System.Security.Principal.WindowsIdentity.GetCurrent().Name but i get
the IUSR... accout on the server. I also tried
HttpContext.Current.User.Identity.Name but that does not return

- Novell Network (Webserver without Novell client).
- Web App Setting:
+ Anonymous Access is enabled
+ Integrated Windows Authentication is checked.
- Web Config Setting:
+ <authentication mode="Windows" />
+ <identity impersonate="true" />
+ <authorization> <allow users="*" /> </authorization>

Thanks in advance.


Mehdi Chemsi


Relevant Pages

  • RE: Save IE password thorugh group policy
    ... that web site, this remote cookie will pickup the password so that the users ... You can configure IIS to Anonymous access or Digest ... Configure Authentication in IIS ...
  • Get the client PC Windows user name and PC Name.
    ... I am trying to get the Windows username and PC name from the client PC ... I am using 'forms' authentication and 'anonymous access' in IIS. ...
  • Re: User ASPNET in SQL Server 2000
    ... When you hit a web application that has anonymous access, ... While I love integrated security in SQL Server, it is often a pain in web ... maintenance of accounts with access. ... >>> authentication", and has the same users as in Win 2000 ...
  • Re: My boss....
    ... Click the Edit button under Authentication and access control, ... properties, Web site tab, Advanced button) ... Exchange virtual directory, clear the anonymous access box, clear Integrated ...
  • Re: Implement AuthenticationButton for anonymous and integrated access
    ... You'll want to set your portal up for anonymous access. ... Windows Authentication is checked. ... they are part of the SharePoint domain. ... users will be prompted to log in to access these javascript files. ...