windows-authentication

Windows authentication token C++

风流意气都作罢 提交于 2019-12-07 22:19:49
问题 Simply said: Can I generate in C++ some kind of text information - user token, session token, access token (?) - of currently logged in Windows user and then verify this text information (authenticate the user) somewhere else (different computer in domain)? I have two computers. On the first one user should be able to connect via client app to my server app running on the second computer. He has to use Windows Authentication so server will use his windows groups for some information - no

WCF Test client and authentication

强颜欢笑 提交于 2019-12-07 22:05:48
问题 I'm trying to call a webservice with WCF Test Client but the webservice requires authentication. How do I log on and call it by WCF Test Client (I tried to get it from browsers and then to call but does not work). I could use SOAP UI, but I'd like to do it with WCF Test Client if is possible. Maybe changing WCF config? Error: Cannot obtain Metadata from If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at

ASP.NET > SqlServer; trust and delegation

会有一股神秘感。 提交于 2019-12-07 20:42:55
问题 we have a system where they client wants integrated Windows authentication. This is an ASP.NET 3.5 application, connecting to Sql Server 2005. The web server is Server 2003 R2 SP2. The db server is Server 2003 SP2 (not R2). In the db server, I ran the following script exec sp_grantlogin 'myDomain\myUserGroup' USE myDbName exec sp_grantdbaccess 'myDomain\myUserGroup' I have 3 users in the Windows user group 'myDomain\myUserGroup' right now. All three users' accounts are marked as trusted for

User.Identity.Name - which assembly reference brings that into your project?

那年仲夏 提交于 2019-12-07 19:49:38
问题 I can't find out which reference assembly the User.Identity.Name comes from. How do I find that out? I need to add it to a class library rather than the default MVC 5 app I have made so that I can have access to it? http://msdn.microsoft.com/en-us/library/system.web.httpcontext.user(v=vs.110).aspx C# Class Library / AUser.cs public class AUser { public string Username { get { return User.Identity.Name // doesn't notice User } } } 回答1: Appears to be in the System.Web namespace. http://msdn

Forms Authentication Using Active Directory / LDAP

ⅰ亾dé卋堺 提交于 2019-12-07 15:24:18
问题 First off--thanks for having a look. MY QUESTION In a .NET web app, is using Windows Authentication for a extra-net on a WAN consisting of various users, companies, user-agents, etc a bad idea? BACKGROUND I am lead dev on a fast track (very fast) web application for an extra-net that will allow the client's vendors, suppliers, partners, etc to log on and push and pull certain assets such as image files, videos, flash files, etc. PLATFORM/TECHNOLOGY Asp.Net 4.0, C#, MVC3 PROBLEM (Maybe) The

Classic ASP & ASP.Net Authentication

允我心安 提交于 2019-12-07 14:26:36
问题 I have two separate apps (one is classic asp, the other is asp.net) which, from the point of view of the user, should appear seamlessly as one "application". As others have pointed out, the two apps can't share session information, so I am planning to use windows authentication along these lines:- In the ASP world: Request.ServerVariables("AUTH_USER") and in ASP.Net (.Net 2.0): System.Threading.Thread.CurrentPrincipal.Identity.Name which is called from my business logic layer (i.e.

MVC + Ajax call to Controller Loses Authentication

旧巷老猫 提交于 2019-12-07 12:05:11
问题 I've seen similar issues in some posts but none of the answers have helped yet. My MVC app has a few AJAX/JSON response methods in one controller, and the calls get to destination but it doesn't work in IE or Chrome, and in mozilla it does, but Firebug returns a very strange set of 3 attempts (all return 401 error) but the last one does actually work! My App has windows authentication, how can I extend this to my Ajax methods? the rest of the app works fine. I've tried bypassing the 401 by

3 requests for every resource (2 x 401.2 and 1 x 200) in a windows authenticated asp.net mvc app

自古美人都是妖i 提交于 2019-12-07 03:56:27
I was trying to track down why my site was so painfully slow in IE9 when I pulled out Fiddler and realised that every request is being sent 3 times (twice I get 401.2 and then a success). I verified this happens on all browsers, its just that Chrome's speed was masking this (or it could be that this has nothing to do with my sites performance issues in IE). I've set up break points in my begin/end request handlers and the request comes in for say a css file. It is not authenticated and the response goes out with a 401.2, I doubled checked that I'm not setting the response status anywhere

How do I re-authenticate a user in an ASP.NET MVC 3 Intranet application?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 02:09:18
问题 The application is already using Windows integrated security, not Forms. What I am trying to accomplish is a so called "step-up" authentication, or "force re-authentication" for the following scenario: the user is browsing the site doing common, trivial stuff suddenly, the user has to do a sensitive action such as authorizing a resource allocation or confirming a car loan or something similar the user is prompted for the credential before (s)he's redirected to the sensitive page, in a manner

Domain Authentication from .NET Client over VPN

做~自己de王妃 提交于 2019-12-06 14:48:13
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, I need to somehow get his credentials, authenticate him on the domain, and store his credentials. What is the recommended approach for authenticating domain users over VPN? How can I securely store the credentials? I've found several articles but, not much posted