windows-authentication

unable to access remote database in C#

心已入冬 提交于 2020-01-06 20:00:48
问题 i have changed the connection string to point to a database in the remote server. But when I execute the project the program still points to the local db. <entityFramework> <providers> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> </providers> </entityFramework> <connectionStrings> <add name="TEDALS_Ver01.DAL.TedalsContext" connectionString="Data Source=FE0VMC0643\SQLEXPRESS; AttachDbFilename=

get user name asp.net windows auth

家住魔仙堡 提交于 2020-01-06 08:57:11
问题 SO i made a simple web form, set in windows auth in iis. then i deployed it on my server and i try to log in. it prompts me a login box, i enter my infos, looks likes its working fine with active directory. if i enter something wrong it wont work etc. obviously i need to know who is the logged on user Response.Write(HttpContext.Current.User.Identity.Name.ToString()); i found this in other threads, but it wont work for me... how do i get the info filled in the login box ? 回答1: If you using asp

Xamarin : Authenticating Android application using Windows Authentication

偶尔善良 提交于 2020-01-05 07:28:28
问题 I have a WCF Service hosted by an ASP.net web application where user is authenticated using windows authentication. Now I am trying to write an Android application to consume this WCF Service. Any idea how to get my application windows-authenticated to be able to start consuming the service? 回答1: You won't be able to use Windows Integrated authentication (it's proprietary), but you could use either Basic auth (transport-layer encryption/SSL highly recommended) or OAuth combined with OWIN. 回答2

What are the proper permissions for ColdFusion 9 on IIS 7.5 with Windows Authentication

和自甴很熟 提交于 2020-01-04 09:05:18
问题 We are running ColdFusion 9 on IIS 7.5. Our intranet website uses Windows Authentication with the Negotiate provider. We have set up an Active Directory user group (Web Developers) and assigned the permissions to the web source directory. Everything works fine for one particular user group. We created a new group (General Staff) and assigned the permissions to the source directory. After restarting all of the services involved we end up with 401.3 errors which are Authenticated but Access is

Python HTTP Basic Authentication through Selenium when username and password contains special characters

好久不见. 提交于 2020-01-04 06:20:20
问题 I have a very specific problem when trying to use default Selenium auth using this construction username:password@siteurl.com So here is an issue: if I use a password like this "''asd'asd';123asd' (with specific symbols) traceback will say that URL is incorrect. But if the password is just with numbers and letters -- everything is OK. Below is an example of a code that works correctly but for my example, I need to fill password with a lot of specific symbols and I don't have permission to

Rails app, REMOTE_USER attribute in IIS 8.5 with windows authentication

99封情书 提交于 2020-01-04 05:26:29
问题 I have setup a IIS 8.5 server that runs a rails app using HttpPlatformHandler and Windows authentication. We have also tried using ARR as reverse proxy with same results. This all works completely fine, users are authenticated using kerberos, and anonymous authentication is disabled, no problem there. We can deny specific users and see that it has effect. The problem is that there is no REMOTE_USER or AUTH_USER attribute anywhere in the http response headers. However the HTTP_AUTHORIZATION

Unable to handle Microsoft login authentication popup in headless chrome[Selenium using java]

被刻印的时光 ゝ 提交于 2020-01-04 05:20:14
问题 I am automating the web application to run in Headless Chrome. ChromeDriver Version:- ChromeDriver 74.0.3729.6 Application Login screen has windows popup to enter username and password. I used alerts to handle the popup in normal chrome WebDriverWait wait = new WebDriverWait(driver, 18); wait.until(ExpectedConditions.alertIsPresent()); Alert alert = driver.switchTo().alert(); alert.sendKeys("username" + Keys.TAB + "password"); alert.accept(); When Chrome is set to headless, windows popup is

End-to-end kerberos delegated authentication in ASP.NET

谁都会走 提交于 2020-01-04 04:02:23
问题 I'm trying to setup an internal website that will contact another backend service within the network on behalf of the user using a HttpWebRequest. I have to use Integrated Windows Authentication on the ASP.NET application as the backend system only supports this type of authentication. I'm able to setup IWA on the ASP.NET application, and it's using kerberos as I expect it to. However when the authentication is delegated to the backend system it doesn't work anymore. This is because the

End-to-end kerberos delegated authentication in ASP.NET

非 Y 不嫁゛ 提交于 2020-01-04 04:02:07
问题 I'm trying to setup an internal website that will contact another backend service within the network on behalf of the user using a HttpWebRequest. I have to use Integrated Windows Authentication on the ASP.NET application as the backend system only supports this type of authentication. I'm able to setup IWA on the ASP.NET application, and it's using kerberos as I expect it to. However when the authentication is delegated to the backend system it doesn't work anymore. This is because the

How do I get the username of the current user in a Flask app on an IIS server using Windows Authentication?

一笑奈何 提交于 2020-01-04 02:15:08
问题 I have a Flask app (Python 2.7) running on an IIS server in Windows 10. The server is configured to use Windows Authentication. I am using an HttpPlatformHandler in order to execute the Python code. I have verified that the authentication is working and am able to see the Kerberos "Negotiate" auth header. However, I cannot find a way to access the username of the user who requested the page. I have tried printing the entire request header and request environment and it is not there. This post