windows-authentication

Using windows authentication to log on to site using c#

I am looking for a way to log on to a server inside my program using windows authentication of the current user logged in. I thought that perhaps I could use System.Security.Principal.WindowsIdentity.GetCurrent().Name but while that does give a name, I do not see how I can find out the password of the user to enter it in. Anyone know...

.NET Windows Integrated Authentication

I'm looking for the best/easiest way to add extensions to an existing protocol (can't change the actual protocol easily) to allow the user to do windows authentication (NTLM?) in .NET. I looked at the AuthenticationManager class already but it requires that I use Web(Http)Request which isn't an option. NegotiateStream is an option either...

Windows Authentication in SQL Sever 2000 for an account not logged into Windows

An advantage by using Windows Authentication is that I do not need to provide a username and password to log into the server as the user currently logged into Windows. But in a specific case I would like to log into the SQL Server as another user, using the same Windows Authenticated ODBC connection. So, the question: Is it possible to ...

Windows authentication problems using asp.net

I have an asp.net application that should access data from two SQL Servers. One of the SQL Servers is present on the same machine as IIS (let us call it SQLSERVER1) whereas the other SQL server is present on another machine (SQLSERVER2). The connection strings are trusted for both the SQL servers. Impersonation has been set to true in m...

Why can't I read from .BAK files on my Desktop using SQL Express in Windows Authentication Mode

I am trying to execute this SQL query prior to restoring a .BAK file in SQL Express. Initially, I had the file on the Desktop of my user account. I am logged in as Administrator. When I try to access the .BAK file on the desktop like this RESTORE FILELISTONLY FROM DISK= 'C:\Documents and Settings\Administrator\Desktop\file.bak' I get...

ASP.NET cannot connect to SQL Server 2005

Hey all, I'm trying to create an ASP page that has a bridged connection with an SQL Server 2005 database (separate sever from the ASP's server). For this I am trying to use a Windows Authentication setup. I have my name with full rights to the SQL server yet I am still getting the error 'Login failed for user COMPANY\name'. To see if th...

Passing AD authentication credentials via IE browser in C# Windows Form

We have a Windows Form application which hosts an IE browser control. Our users run the application and open links to documents stored in MOSS. We are trying to set the application up to pass in credentials of a service account so that we can avoid giving all users access to the MOSS site. We have used code found here which seems to work...

Using Windows Role authentication in the App.config with WCF

I am using a WCF service and a net.tcp endpoint with serviceAuthentication's principal PermissionMode set to UseWindowsGroups. Currently in the implementation of the service i am using the PrincipalPermission attribute to set the role requirements for each method. [PrincipalPermission(SecurityAction.Demand, Role = "Administrat...

IIS7 and Authentication problems

Hi Folks, i've got a stock standard ASP.NET web site, deployed to our development machine (internal machine in our server room). Now, this dev site can be accessed by both INTERNAL and EXTERNAL users. Now, in IIS6 we used to have it so that Anonymous Authentication was turned off and something else was turned on .. giving the users a p...

Windows Authentication and Network Service account as a db_owner

There is a number of commercial products out there, that give you a windows based installers for configuring your app and the back end SQL Server DB. Typically it will ask if you want to connect to the DB with Windows or SQL Server authentication. Most of them make a recommendation to use Windows Auth and then configure your DB with the ...

Integrated Security

is there a managed code (without adding COM component or wrapped called to C++ routines) way to add integrated security to a C# Managed code assembly? i.e. I want to write a client-server system where the server uses Remoting instead of IIS, but I want the client to automatically pass it's credentials to the server just like a browser...

Getting authenticate AD users objectGuid from asp.net

Hi all I am using windows authentication within an ASP.NET application. I am wondering how to best get the objectGuid from the currently logged in user? Regards, Egil. ...

How do I set a default role for a new user using Windows Authentication with the SqlRoleProvider?

I have an application that is using Windows Authentication and a SqlRoleProvider for user authentication and role management respectively. It is working fine with my test users that I have added to the database as defaults. The application requires users to login (using Windows credentials) and then be able to use this internal applica...

Web application to use window domain accounts for authentication

Hi, If you have a web application that will run inside a network, it makes sense for it to support windows authentication (active directory?). Would it make sense to use AD security model as well, or would I make my own roles/security module that some admin would have to configure for each user? I've never dealt with windows security...

How to authenticate users on one site and pass credentials to other site? ( Windows Authentication, ASP.Net)

Hi, We have multiple web-applications running Windows authentication.Users log on to the websites using Domain\Username which is different from the DomainOther\UsernameOther that they use on their local computers. Considering we have 2 sites One.xyz.com and Two.xyz.com both running Windows Authentication (and user logs in to both using D...

How to set up windows authentication just for a single route in ASP.NET MVC on iis6?

I'm developing a web application and I need to mix Forms & Windows authentication together. The approach which I selected is this: authentication method on all the web site has to be forms auth. There is a form page (~/home/Login) to login in via forms auth. The magic (and trouble) is that only one page (say ~/Home/WinLogin) has to hav...

IIS7: Setup Integrated Windows Authentication like in IIS6

This is for IIS 7 on a Windows Server 2008 that is not part of an AD domain. I would like to password protect a website, where people have to enter a username/password (a windows account for example) to view the website. The website would then use its own authentication method (forms) to handle user accounts and decide whether or not t...

B2B web service using windows credentials?

Is this wise, what potential issues could you run into? ...

ASP.Net: How to properly implement this Authentication flow

Here's the flow I'm looking for for authentication: Attempt to pull in the user's name from windows authentication If that failed (user is external to network), use BASIC authentication to get the username/password. Check the username/password against the SQL database. If windows, password isn't required, if BASIC authentication and p...

Partial trust XBAP & Windows Integrated Authenitcation - Fiddler hides problem

Hi! I got a asp.net portal lanching a 3.5 sp1 partial trust XBAP. The portal is running under Integrated Windows Authentication, but I'm unable to make the XBAP run under integrated auth. The XBAP downloads, and lanches fine, but once a call a WS on the same server (different web site) I get a 401 error. If I set the WS to use anonymo...