windows-authentication

IIS Windows Authentication before Anonymous

I have a website that I would like to allow both Forms and Windows Auth for. My problem is that it seems that when you setup IIS to allow both anonymous (Required for forms auth) and Windows auth that the browser won't send the user's network credentials. It just uses the anonymous login. Is there any way either in IE8 or IIS to have it...

What's the official name of a "domain\username" authentication method for a domain?

Does anyone know what the official name is for a "domain\username" based login? I'm trying to troubleshoot an application which claims to have support for LDAP integration with OpenLDAP, Sun One etc. When I reviewed logs , and sniffed the network traffic I could see that in every instance of authentication a "domain\username" is passed...

Windows network authentication the right way.

I am about to start on a project that will be running as a windows service listening for incoming connections and doing some things locally then sending a reply message. I understand the basic concepts with sockets and communicating over the network, however the things the service are doing could very easily abused. I would like to authe...

SQL Server Windows Authentication using a Service

I am running a Java Application as a Service in Windows that's using JDBC to connect to SQL Server. This application is started as a different user than the one logged into the Machine. My question is will the JDBC Driver use the user assigned to start the service to authenticate against or the logged in user (which there might not be on...

windows authentication

I want to get whether current user is Admin or guest of a machine ...

Log in box keeps popping up in sharepoint

Hi everyone, I have a problem with my sharepoint site, when I go to the home page the log in box keeps popping up, I have to click about 3 to 4 times before it goes away, and it does that everytime I go to the home page, all the other pages does not do that. Can any one please help me out here. Thank you. ...

how do you capture httpcontext user information in your controller code when using visual studio

i asked this question which allowed me to capture user by using: string userName = this.HttpContext.User.Identity.Name; in my controller code. One issue i have is that when testing in visual studio it shows up as an empty string. I want to track this field for my testing. Is there anyway to have this work in the local ASP.net web...

windows authenticated website prompt for firefox but doesn't for internet explorer

i added windows authentication on my website to track user names. For IE it works fine and is seemsless but it prompts for windows login for user using firefox. any ideas? ...

Simulating an Active Directory Login in Dev/Test Environment

Currently building a WPF app that will run in an environment where the user logs into Windows PC which is on a domain (DC). The app will ask the user to enter their login and password again when it starts up, and the login/password will be verified against Active Directory (forgive me if my terminology is not correct here). The login i...

How do I authenticate a user to consume a web service programmatically?

I have a web service set up on an IIS server. When I navigate to the page in a web browser it asks me for my user name an password, as desired. However I want to consume the service in a .NET application (C#). What do I need to do to provide a user name and password programmatically so that I can consume the service? Or is there some oth...

HowTo: iPhone Web Service call to WCF Service with Certificate Authentication

We are a .Net shop currently developing a iPhone app that requires the app to call a WCF web service. Our WCF Services are secured with a x509 certificate for authentication purposes. I have been searching the internet for an example on how to do the following: Deploy a certificate with an iPhone app. Use that certificate in a web se...

Accessing WCF service with Integrated Windows Authentication from Windows Service using local SYSTEM account

Hi, We have WCF service using Integrated windows authentication deployed on a dedicated server. There will be Windows Service on Client machines[windows service uses Local System Account].We get an error when the WCFServiceClient in Windows service accesses the WCF service.[If windows service is on server machine it works fine] System....

Unauthorised access when accessing WSS Lists.asmx web service using AD accounts

I am having an issue where I try to access the Lists.asmx web service in a remote or local site and am getting a 401 error. To be clear, this is /_vti_bin/Lists.asmx. The setup is I have one WSS 3.0 site which connects via soap to the lists service of another, WSS/MOSS site. On our stage environment these two sites are on the same box, b...

Mixing Forms authentication with Windows authentication

I have an (ASP.NET 3.5) intranet application which has been designed to use forms authentication (along with the default aspnet membership system). I also store additional information about users in another table which shares its primary key with the aspnet_users table. For users who are part of our domain I store their domain account ...

Accessing SVN repo via CruiseControl.NET and Windows Authentication

Hi, this is a bit of an ambiguous one as to whether it is for StackOverflow or ServerFault. I figured developers would have as much chance of solving this problem, so I opted for here. I have two servers: SVNServer. This is a Windows 2003 Server box and hosts VisualSVN which is working fine and allows authentication via Windows Authen...

How to automatically maintain a table of users that have been authenticated by IIS 7.0 using Windows Authentication

I want to build and maintain a table of users. All users that access the ASP.NET MVC site are authenticated via Windows Authentication so they're bound to have a unique username. I'm grabbing the user name from: System.Web.HttpContext.Current.User.Identity.Name I feel like I could go two ways with this. Anytime the user table o...

Mix anonymous and windows authentication for web services in the same directory

Hi, I have a web application containing two web services, let's say PublicHello.asmx and RestrictedHello.asmx. PublicHello must be accessed from anywhere, without requiring login. RestrictedHello must be accessed only from domain through Windows authentication (and its behavior is different from one user to another). In IIS, if I en...

How do I pass windows credentials to an ADO.NET Data Services call from Silverlight 4 when running out of browser (OOB)?

I have a Silverlight 4 client application that is calling out to an ASP.NET Data Services service hosted inside IIS 7, restricted to Windows Authentication. Both are hosted in the same location in IIS. When running the application within the browser, I am prompted for credentials via the browser, and when provided everything works fine. ...

How to use a logged in person's credentials to search Active Directory?

I have a web app (.NET 3.5) which is sending notifications by email to users. In order to do this, I search Active Directory to find each person's email. At the moment, I am hardcoding my own username and password like so in order to search AD: Dim entry As New DirectoryEntry("LDAP://companyad", "myUsername", "myPassword", Authenti...

How to enumerate all Kerberos tickets for objects in a specified AD organization unit

Hi, How can I list all cached Kerberos tickets, that are connected to objects in a specific active directory organization unit? Thanks! ...