windows-authentication

IE/IIS integrated authentication problem

In IIS I've got: http://myserver/myapplication http://myserver/reports The reports app is reporting services in fact which uses windows authentication. myapplication is an asp.net application that uses forms authentication. The server is outside the company domain. If I access the reports first and type in the user and passwo...

Retrieving the Windows username from a logged-in machine through an intranet application.

How can an application, running on a production server, access the login username of the machine that a user is accessing an application from? For example, I am currently logged into my machine on the INTRA corporate intranet. My username will be INTRA\Username. I have added specific usernames to a database and wish to check this in...

Windows login from a user's computer through an intranet web-app WITHOUT prompting for user/pass.

I'm creating an intranet web-application in an IE shop and I'm looking to retrieve the user's logged-in computer username without prompting for a username/password combination. This is easy, until the application is placed on a webserver. It seems that every combination I try from here on in results in either a null string or prompting...

How to use WindowsIdentity.Impersonate to get the user's login, rather than the ASPNET account

I have a web-app that will reside on a production server where I want to get the user's logged in computer name, circa DOMAINNAME/USERNAME Many people have told me that I must use Impersonation/Delegation in order to get this, but no details beyond that have been provided. Originally, my tests used: Response.Write("HttpContext: ...

Write to a Directory as a Specific User on a Different Domain

Hi All, I am wondering, how would one write a file (say for instance, from a Console Application in a scheduled task) to another computer on a different domain? How would one set the Username and Password, such as with the "Log on to..." dialog to authenticate? Couple of prerequisites exist, obviously: The machines can see each other...

ASP.NET passing along Windows Authentication credentials

I've got an ASP.NET web application which uses Windows Authentication. This application needs to connect to another ASP.NET web service (which also uses Windows Authentication) and use the same credentials that it received from the user's browser. Can this be done and how? ...

How to get web site user's Windows login name from stored procedure invoked through website

I have a web page that runs under an account named, WebUser (IIS runs under this account) Now the problem here is that, when the webpage is accessed by users (intranet), users are authenticated through Windows Authentication. The webpage calls a stored procedure, SaveClientInfo. When I was trying to get the user's name (say, User1) wh...

Calling an httpHandler from Flash with basic/Windows authentication

A project I'm working on uses a Flash component to upload files (the Flash allows for multiple file uploads at the same time and gives a nice upload progress bar). Once the upload is done, the httpContext (including the files) is being sent to: uploadhandler.axd. This works great, the uploadhandler is registered in my web.config like t...

Modifying a Silverlight-Enabled WCF service to cooperate using Windows authentication

I have a Silverlight application, and added a Silverlight-enabled WCF service. I would like to deploy this as an intranet solution using Windows authentication without anonymous access. Out of the box, the WCF service adds the following settings to the web.config: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior...

How to obtain email address with window authentication.

I am designing a web application using the ASP.net MVC framework. I would like to use Windows Authentication and do Role Checks using the Role Manager SQLRoleProvider. How can I determine the email address of the current logged on user? Is this even possible? The application will be deployed in a multi-domain intranet, if that matt...

Lock down a site using Forms Auth in IIS7 with Windows Auth

I've posted this on Server Fault, but as there is sort of a programming aspect to it, I'll post it here too. I have an ASP.NET MVC 1.0 application that uses Forms Authentication. We are using Windows Server 2008. I need to lock down the site so that only certain users (in AD Groups) can access the site. Unfortunately, though, when I set...

HttpContext.Current.User is null even though Windows Authentication is on

In IIS7 under Windows Server 2008, I have a virtual directory with anonymous access off and Windows authentication on. In my web.config, I have: <authentication mode="Windows"/> <authorization> <allow roles="MYGROUP"/> <deny users="*"/> </authorization> and <system.webServer> <!-- IIS7 security settings --> <secu...

Connect to SQL Server with Management Studio using a Windows Credential while not on the domain

I have a client that has a SQL Server 2008 installation. They have given me a windows domain username/password on their domain, however, my workstation is not on their domain. I'm trying to connect with Management Studio on Vista Professional. I've tried using the "network accounts" under "user accounts", and this works for other reso...

WCF call with windows authentication

We have a system where the users access a web server, the web server then calls a WCF service. We would like the call to the WCF service to be made in the security context of the windows identity of the application pool on the web server. What is the best way to do this? Can it be done purely through configuration in the web.config fil...

Narrowing Integrated Windows Authentication to a subset of users for an intranet ASP.Net application

Scenario: An intranet ASP.Net application using Integrated Windows Authentication and a SqlRoleProvider for authorization. The application is used by a small subset of users within the domain. If there are only a few users within the domain that should be able to access the application, can IWA be narrowed to allow authentication for ...

Integrate Windows domain authentication with an external web site.

I am a small time internet hosted app (SAAS) developer, when I launch I expect most of my customers will authenticate (login) to my application using the standard email + password technique. However I would like to offer a better single sign-on option for larger customers who will have ready-made communities of potential users of my sys...

ASP.NET Windows Authentication Impersonation

I am trying to figure out how to implement an ASP.NET page with Windows Authentication without getting that annoying IIS login box. I currently have 3 domains in my network so all the people logging in would have to prefix their user names with the domain. This is not user friendly. I would like to have a custom login page that wou...

Remotely authenticating client Windows user on demand

Suppose I am writing a server for a particular network protocol. If I know that the client is running on a Windows machine, is it possible for my server to authenticate the Windows user that owns the client process that initiated the connection independently of the network protocol in question? Rationale I actually wish to write an FTP...

How to control access to third party HTML pages

Hello, We have a Learning Management System (LMS) that runs on its own server (IIS/Server 2003). Students must login with Forms authentication to gain access to the content. We want to offer access to third party flash and audio that is embedded in HTML pages hosted on the third party server (IIS/Server 2003). Currently we use a fram...

Hosted Silverlight LOB Application - Authentication Models

Our application is built in VB6 and delivered in a SaaS model via Citrix. Our subscribers must first authenticate to the Citrix Login Portal (AD) which gives them access to their applications. Each application has its own local user repository so except for where we've implemented some single sign on strategies, the user must enter a s...