windows-authentication

Passing Windows User Id as parameter to SQLDataSource gives databinding exception

女生的网名这么多〃 提交于 2019-12-13 21:32:59
问题 First question is, Am I on the right path?.ıs there a better way to pass it as parameter? If I am on the right path, please show me how can I solve the below error. The following solution does not help me with this problem: HTTPContext.Current.User.Identity.Name not working inside a control? My code: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyDbConn %>" SelectCommand="SELECT id, Bookname, RequestType, Requestor, RequestDate FROM Requests

How to logon a user on a server and run a process given a Kerberos Ticket

廉价感情. 提交于 2019-12-13 21:18:04
问题 How does authentication and logon work on Windows with Kerberos? What I want to achieve is to logon a user on a server and run a process for that user. As a first step, I create a Kerberos ticket on the client and send it to the server. On the server, I do not know the API to logon the user given its ticket. Of course I can accept the security context using AcceptSecurityContext (SSPI), but that does not initiate a logon. I think that some SSH implementations for Windows do exactly that. But

Active Directory User Data Storage

为君一笑 提交于 2019-12-13 21:15:58
问题 What is the best method using MVC4 to store user data for users authenticated with Active Directory? Should I use SID as the user id? For example: CREATE TABLE MyStuff AS { ID INT IDENTITY (1,1) NOT NULL UNIQUE, AccountDomainSid VARCHAR(50), Stuff VARCHAR(100) } 回答1: The SID of a user can change (e.g. if you merge two domains). That's why there's a SIDHistory attribute on your AD objects, too :-) See this TechNet blurb on SID vs. GUID. The one thing that will always remain the same is the

“Login failed for user ''” when trying to use Windows Authentication

拜拜、爱过 提交于 2019-12-13 15:22:06
问题 On my ASP.NET web.config I have the connection string: initial catalog=DatabaseName; data source=(local); Integrated Security=SSPI;MultipleActiveResultSets=True; Connect Timeout=200; I've used this connection string for Windows Authentication before, but now I'm getting the error: Login failed for user ''. This seems like its a SQL Authentication error, and that the username is blank as I have not supplied either a username or password. Why is the application attempting SQL Authentication and

How to determine which authentication method is used?

有些话、适合烂在心里 提交于 2019-12-13 14:51:55
问题 I was wondering: How can i determine which authentication method is in use? For example I want to execute a code if my Authentication is based on FORMS authentication and not if it's WINDOWS Authentication. 回答1: You can check what's on the web config using configuration manager ConfigurationManager.GetSection("system.web/authentication"); 回答2: You can retrieve a string property called AuthenticationType on your user's identity object: User.Identity.AuthenticationType . More documentation here

Use windows session credentials as login?? How does it work??

删除回忆录丶 提交于 2019-12-13 12:21:57
问题 I came across programs like ARCserve HA, which use windows session credentials as the login without having me to manually type in the userID and password. How does this work?? The program is actually capable of getting my window's userID and password?? As my current project which is written in Java requires me to do something similar which uses the windows session credentials as login. Could anyone provide me with any directions on how should i go about doing this? Any directions will be

Windows Authentication (ASP.NET)

微笑、不失礼 提交于 2019-12-13 08:05:27
问题 How i can implement Windows Authentication to authenticate user while logging in? I do not want to get a pop up window rather i would like to let my login page(LoginPage.aspx) do the same. Please provide me with the steps/ code(vb.net). Thanks 回答1: It requires a good amount of code to access active directory and authenticate.Please refer the article on codeproject.com or msdn articles. 回答2: Maybe you could use this tag in your web.config <authentication mode="Forms"> <forms loginUrl="login

Adding ASP.NET impersonation users of specific domain to windows authentication

淺唱寂寞╮ 提交于 2019-12-13 08:01:20
问题 I have MVC4 application installed in windows server 2008 in my company(IIS 7.5). to access the windows server remotely we use(xxxxDMZ\username, password) which are the same windows authentication required to access specific page of the website. My problem is not everyone has this "xxxxDMZ" account so they can't access that page, what I am trying to do is adding their windows login credentials to access that page(by only adding the username) which that would be 'xxxx\username'. I read that in

Setup windows authentication for ASP.NET using local workgroups?

雨燕双飞 提交于 2019-12-13 06:59:46
问题 I have requirement to build windows authentication for our web applications. We plan to created local work groups (on Windows 2008 Server) to manage users instead of Active Directory. Our reason, it takes months to create groups and move users via AD (and our client would prefer we go this route). Is it possible to setup windows authentication for an asp.net application and validate the user credentials against the local workgroups? Keep in mind we would try to match their login names to our

How to use Roles with Integrated Windows Authentication

北城以北 提交于 2019-12-13 05:54:58
问题 I'm working on a Web Application implemented in ASP.NET MVC 5 with Web API 2. I've implemented Integrated Windows Authentication by adding the following code to web.config: <system.web> <authentication mode="Windows" /> </system.web> <system.webServer> <security> <authentication> <windowsAuthentication enabled="true"/> </authentication> </security> </system.webServer> and by adding [Authorize] annotation on top of my controllers. Now, I'm asked to give access to some functionality based on