windows-authentication

Network Authentication when running exe from WMI

Hi, I have a C# exe that needs to be run using WMI and access a network share. However, when I access the share I get an UnauthorizedAccessException. If I run the exe directly the share is accessible. I am using the same user account in both cases. There are two parts to my application, a GUI client that runs on a local PC and a backen...

ValidateCredentials() returns FALSE on First Call but TRUE on Subsequent Calls

I'm using the following code to authenticate users on my web service: using (PrincipalContext context = new PrincipalContext(ContextType.Domain, domain)) { return context.ValidateCredentials(userName, password); } The obstacle I'm running into is that the first call to ValidateCredentials() is returning false but subsequent calls ...

Consume a WebService with Integrated authentication from WPF windows application

I have written a WPF 4.0 windows application that consumes a .net 3.5 WebService. This works fine when the web service in hosted to allow anonymous connections, however the WebService I need to consume when we go live will be held within a website that has Integrated Authentication enabled. The person running the WPF application will b...

Active Directory authentication for Non-Domain users

I have a web application using windows authentication. I also want to authenticate non-domain users against AD. Can I have domain members can enter site directly, and non-members enter their domain username and password. How can I do this? ...

with integrated windows authentication and asp.net, the user changes password and is prompted to login again. why?

I am working on an application that uses windows authentication. Within this application, we give the user the ability to change their password. The user can change the password just fine. However, after they change their password, that is when things get weird. Sometimes they can navigate through the application just fine. Other tim...

Is there such a thing as a "fully qualified" username within the context of Windows Authentication?

My web-app is hosted on mydomain, with the following URI associated with the domain: blah.net. I can login to using either of the following usernames: mydomain\ben [email protected] What are the names of each of these types of login (and are there any differences), within the context of Windows Authentication? ...

IIS7 folder permissions for web application

I am using windows authentication without impersonation on my company's intranet website with IIS7. Under IIS7, what account is used to access the folder which contains my web app using these settings? Would it be IIS_IUSRS? Or NETWORK SERVICE? Or another I don't know about? ...

IIS7 Mixed Mode Authentication

We're getting ready to start migrating some of our IIS6 sites to IIS7, and the application currently uses Forms Authentication. We have started getting some requests from various sites to use the Windows Authentication for the users. While this is easy enough to implement (and I've shown internally that there is no issue with the app, as...

How come IPhone and WinCE based smart phone mail still works with Exchange?

Hi We have a device that uses Exchange web services to download mail and calendar information. It uses active directory credentials to authenticate itself with Exchange. The device stores user id and password. When user changes password from his PC (as IT enforce password expiration), the device mail stops working until the password on ...

Is it possible to use Integrated Windows Auth when Server isn't on the domain?

Our production web servers ARE NOT part of the domain, but we'd like people to be able to log in automatically since they are logged into the domain on their PC. Is there anyway to get the browser (IE7+) to send the appropriate information to the server (IIS6) so I can retrieve the ServerVariables["AUTH_USER"] or ServerVariables["LOGON_...

ASP.NET Web Service Throws 401 (unauthorized) Error

Hi Experts, I have this .NET application to be run in an intranet environment. It is configured so that it requires Windows Authentication before you can access the website (Anonymous access is disabled). This website calls a web service (enable anonymous access) and the web service calls the DB. We do have a token-based authentication ...

With windows authentication, The trust relationship between the primary domain and the trusted domain failed, when calling IsInRole

I have my asp.net web server setup to use windows authentication. It is authenticating just fine with my current logged in user. I can verify this by viewing ... HttpContext.Current.User.Identity.Name And I can verify that I am authenticated by viewing... HttpContext.Current.User.Identity.IsAuthenticated However, when I call th...

I cannot seem to load an XML document using ASP (Classic), IIS6. Details inside.

So I am writing a web application for use within my organization. The application requires that it know who the current user is. This is done by calling the Request.ServerVariables("AUTH_USER") function, which works great as long as 'Anonymous Access' is disabled (unchecked) and 'Integrated Windows Authentication' is enabled (checked) wi...

Can I use a custom Membership provider for use in an asp 3.5 .net windows authentication application?

In an Intranet asp.net application, I need to use Windows authentication, however, I must filter user access to the application. I also have to use an already defined database schema with the users info and profile, so I must handle the ValidateUser. How can I use a custom membership provider with windows authentication? Thanks in adva...

Set up silent authentication using LDAP / AD

Hi, Can anybody help with the above. We're using a CMS product called Immediacy, which claims it can handle silent authentication using LDAP / AD but just can't get the thing to work. Ignoring Immediacy, can anybody point me to a good article or post that lays out the steps to do the above (assuming it's achievable)? Basically, we nee...

MSV1_0 Subauthentication Package Registration

Hi; I'm trying to register a simple MSV1_0 subauthentication package for MS Windows Server 2003. I created a dll which implements required functions described in MSDN. I copied my dll to system32 folder. After that, I created a registry key Auth255 (I also tried Auth128) with a REG_SZ value ,which specifies my dll name, to this location;...

connecting to firewalled MS-SQL server that requires Windows Authentication via proxy?

So I need to connect to a mssql server via Windows Authentication from a Unix server. Here are the obstacles: The db admin created a service account but made it Windows-Auth only, meaning I can't pass the username and password directly to the server to connect. The admin also added my host's server to the firewall so that it would only...

Domain Authentication from .NET Client over VPN

I am writing a ClickOnce WPF app that will sometimes be used over VPN. The app uses resources available only to domain authenticated users. Some of the things include accessing SSRS Reports, accessing LDAP to lookup user information, hitting web services, etc. When a user logs in from a machine that is not authenticated on the domain,...

IIS ASP.NET Windows authentication logined user name letter case

Hello everybody. I use windows authentication and have one trouble: letter case of user name in User.Identity.Name is incorrect. For example, my user name is FOO-SERVER\Borovsky_D, but User.Identity.Name shows FOO-SERVER\borovsky_d. What is trouble? Does anybody have ideas? ...

WindowsIdentity.GetCurrent() returns SYSTEM when ran from custom action

I have an install project (running on Windows 7) that launches a custom action at commit which starts the application that was just installed. During the startup of this application I have a method that checks the current user's name to perform some authentication. When launched from this custom action I am getting 'NTAUTHORITY\SYSTEM'...