intranet

MVC3 Windows Authentication override User.Identity

只谈情不闲聊 提交于 2019-11-29 00:50:35
问题 I am building a intranet application using MVC3 with a MSSQL backend. I have authentication and roles (through a custom roles provider) working properly. What I am trying to do now is overriding User.Identity to allow for items like User.Identity.FirstName. But I cannot find any code that will show me how do this in WindowsIdentity I have tried writing a custom provider: public class CPrincipal : WindowsPrincipal { UserDAL userDAL = new UserDAL(); public CPrincipal(WindowsIdentity identity) :

Windows authentication for Intranet/Internet

北慕城南 提交于 2019-11-28 23:14:24
问题 I am developing an ASP.net web application for my company. Some users use this site in the internal network (Intranet) and some use the Internet site. I am using Windows Authentication mode. I need to find a way to not prompt Windows Authentication mode for an Intranet user and prompt Windows Authentication mode for an Internet user. How can I do this? 回答1: Based on what your are describing, Windows Authentication in IIS will do the trick. First some links: Technet as an article about the

Why is connecting to MySQL server so slow?

落花浮王杯 提交于 2019-11-27 13:57:32
I use JDBC to connect to MySQL. When it’s at localhost:3306 , everything is OK. But when I move my application to another computer in the intranet, and use <Intranet-IP>:3306 to connect to the MySQL database, it takes about 1 minute to connect to MySQL successfully. What’s up with this? Davide Ungari Well it could be a DNS problem. You can disable DNS host name lookups by starting mysqld with the --skip-name-resolve option in the configuration file. Read here for more details: http://dev.mysql.com/doc/refman/5.0/en/host-cache.html The --skip-name-resolve worked great for me. To make it

Why is connecting to MySQL server so slow?

允我心安 提交于 2019-11-26 16:33:05
问题 I use JDBC to connect to MySQL. When it’s at localhost:3306 , everything is OK. But when I move my application to another computer in the intranet, and use <Intranet-IP>:3306 to connect to the MySQL database, it takes about 1 minute to connect to MySQL successfully. What’s up with this? 回答1: Well it could be a DNS problem. You can disable DNS host name lookups by starting mysqld with the --skip-name-resolve option in the configuration file. Read here for more details: http://dev.mysql.com/doc

Override intranet compatibility mode IE8

梦想与她 提交于 2019-11-26 01:24:20
问题 By default IE8 forces intranet websites into compatibility mode. I tried changing the meta header to IE8, but it doesn\'t acknowledge the meta header and just uses the browser setting. Does anyone know how to disable this? 回答1: It is possible to override the compatibility mode in intranet. For IIS, just add the below code to the web.config. Worked for me with IE9. <system.webServer> <httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=edge" /> </customHeaders> <