windows-authentication

Sending large POST requests with integrated Windows authentication in OWIN self-host

廉价感情. 提交于 2020-02-05 06:16:06
问题 I'm trying to set up an endpoint for authenticated HTTP POST requests that will handle requests whose bodies sit at around 15 kB. I followed the description on MSDN and defined var httpListener = (OwinHttpListener) appBuilder.Properties[typeof(OwinHttpListener).FullName]; httpListener.Listener.AuthenticationSchemeSelectorDelegate = request => request.HttpMethod == "POST" ? AuthenticationSchemes.IntegratedWindowsAuthentication : AuthenticationSchemes.Anonymous; in my Startup.Configuration .

Simulating an Active Directory Login in Dev/Test Environment

99封情书 提交于 2020-01-31 03:58:07
问题 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 is all-or-nothing; if their password is correct, there is no (current) concern with retrieving groups, rights or anything of that nature. The development

authentication issue with an intranet website running under IIS6

女生的网名这么多〃 提交于 2020-01-22 10:02:05
问题 I have an an intranet website running under IIS6 (under a specific port, not the default one) with a integrated windows authentication enabled and uses an application pool configured with a service account. the issue is, if I access the website using the server name with a fully qualified domain in the URL, it throws a login prompt (doesn't work even if enter my windows login credentials), but if I use the IP address of the server then it works fine. Please let me know what I need to do to

WCF REST : (C# 4.0 template) Securing with windows authentication and hosting in a windows service?

。_饼干妹妹 提交于 2020-01-17 13:50:46
问题 I am trying to find out how to secure my web services with Windows Authentication (Active Directory). I am using the "NEW" templates provided for c# 4.0 (vs 2010) and currently have this but i need to host it in a windows service - is this possible? I thought the WCF Rest clientCredentialType ="Windows" actually uses IIS to provide this type of security? I have searched the internet and found many examples with C# 3.5 but none for the new template provided to vs 2010 C# 4.0 to create a rest

WCF REST : (C# 4.0 template) Securing with windows authentication and hosting in a windows service?

≡放荡痞女 提交于 2020-01-17 13:49:06
问题 I am trying to find out how to secure my web services with Windows Authentication (Active Directory). I am using the "NEW" templates provided for c# 4.0 (vs 2010) and currently have this but i need to host it in a windows service - is this possible? I thought the WCF Rest clientCredentialType ="Windows" actually uses IIS to provide this type of security? I have searched the internet and found many examples with C# 3.5 but none for the new template provided to vs 2010 C# 4.0 to create a rest

WCF Server Configuration for ws2007FederationHttpBinding and Windows Authentication

本秂侑毒 提交于 2020-01-16 09:36:09
问题 I have to implement "Windows Authentication" on a service hosted on Server. I am using "ws2007FederationHttpBinding". I am using "ws2007FederationHttpBinding" binding since I am receiving token from my ADFS server. Below are my server configuration: web.config <authentication mode="Windows" /> <ws2007FederationHttpBinding> <binding name="SamlTokenCustomStsBindingConfig"> <security mode="Message"> <message establishSecurityContext="false"> </message> </security> </binding> <

Cannot get authentication working in IIS 8.5

心不动则不痛 提交于 2020-01-16 07:39:31
问题 We have installed Basic and Windows authentication for IIS 8.5 on our Windows 2012 server but cannot get the server to prompt the client for credentials. Under the "Authentication" feature we have only 2 options (despite restarting IIS numerous times): Anonymous Authentication: Disabled ASP.NET Impersonation: Disabled When we set anonymous to Disabled we get a 401 but no Authenticate headers. When we Enable it we get a 200 but are anonymous. We've tried all sorts of settings in web.config and

MVC Windows Authentication

本小妞迷上赌 提交于 2020-01-16 06:10:29
问题 i'm trying to implement windows authentication in a MVC application but I'm having some trouble. I had create a new user called "test" and i gave him all the permissions to the folder in IIS In the web config i wrote this code: <system.web> <authentication mode="Windows"/> <authorization> <deny users="?"/> </authorization> ... I i set the attribute authorized on the products controller as follows [Authorize(Users="test")] public class ProductsController : Controller { ... i also try only

Windows password Authentication with LDAP

淺唱寂寞╮ 提交于 2020-01-16 02:54:11
问题 I have a desktop application and i can get the domain username with authentication.getPrincipal().toString() code line.If the domain name and the user input matches exactly i granted all access to user .On the other hand , when the user types another username(which doesn't match the domain user name ) ,the programme checks the password in Database. The problem is that I want to check the password with windows domain passwords not with DB.When the user writes the username , the programme

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

有些话、适合烂在心里 提交于 2020-01-15 12:06:08
问题 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 across the domains, however they need to authenticate You know the login details The username you would log in with has the appropriate permissions to write Anyone have