windows-authentication

NancyFx and Windows Authentication

陌路散爱 提交于 2019-11-29 20:30:24
I want to use NancyFx for an intranet web app. All the documentation and forums only mention Forms and Basic authentication. Anyone successfully use Nancy with Windows Authentication? There's also something called Nancy.Authentication.Stateless but I can't see what that does (looks like it's for use in Apis). I used this in an internal project recently - I don't really like it, and it ties you to asp.net hosting, but it did the job: namespace Blah.App.Security { using System; using System.Collections.Generic; using System.Linq; using System.Security.Principal; using System.Web; using Nancy;

Web application to use window domain accounts for authentication

空扰寡人 提交于 2019-11-29 19:23:34
问题 If you have a web application that will run inside a network, it makes sense for it to support windows authentication (active directory?). Would it make sense to use AD security model as well, or would I make my own roles/security module that some admin would have to configure for each user? I've never dealt with windows security before, so I am very confused as to how I should be handling security for a web application that runs within a windows network. I guess there are 2 major points I

Integrated Windows Authentication in ABP framework

半城伤御伤魂 提交于 2019-11-29 18:17:37
I'm attempting to use ABP with Windows Authentication rather than Table-based authentication. The plan is to have the framework: Detect that the website is in a Windows security context and bypass the login page. Then associate Windows Identity/Roles and use those to map the Roles/Permissions defined in the database. I did not see anything in the documentation regarding this Windows-integrated approach. If anyone has done this previously, I appreciate any tips. I think my best bet would be to use Policy-based authorization. So where the controllers currently use ABP auth attributes, I'll

Connect to MySQL database w/ C# as non-root user?

落花浮王杯 提交于 2019-11-29 15:36:06
Let me start by saying I'm completely new to databases, but have been reading through the MySQL tutorial they have. Right now, I'm trying to make an app that allows unprivileged users (non-root) to connect and do some commands on a database through a C# GUI app. The users will login to the database using windows authentication. Now, I was able to to make a quick GUI where the person running the program can connect to the database on a local host using "root" and get whatever content is in it. My question is, how exactly do I allow users to connect w/ non-root privileges? The only things I've

Kerberos: kinit on Windows 8.1 leads to empty ticket cache

99封情书 提交于 2019-11-29 11:33:09
I installed Kerberos for Windows on a new set-up Windows 8.1 machine. Domain: not set Workgroup: WORKGROUP I edited the krb5.ini file in C:\ProgramData\MIT\Kerberos5 directory like this: [libdefaults] default_realm = HSHADOOPCLUSTER.DE [realms] HSHADOOPCLUSTER.DE = { admin_server = had-job.server.de kdc = had-job.server.de } After a restart, I made a kinit -kt daniel.keytab daniel to authenticate me against the Realm via console. Also getting a ticket by user and password via the Kerberos Ticket Manager seems to work fine, as the ticket is shown in the UI. What I'm wondering about is, that

IIS7 and Authentication problems

北战南征 提交于 2019-11-29 10:50:48
i've got a stock standard ASP.NET web site, deployed to our development machine (internal machine in our server room). Now, this dev site can be accessed by both INTERNAL and EXTERNAL users. Now, in IIS6 we used to have it so that Anonymous Authentication was turned off and something else was turned on .. giving the users a popup model box for username and password. I think they had to type some username or password that was defined in a web.config file? (not their website account username/password)/ Now, with IIS7, when i turn Anon Auth off , and turn on Basic or Windows Auth , i get access

Getting authenticate AD users objectGuid from asp.net

做~自己de王妃 提交于 2019-11-29 09:38:07
问题 I am using windows authentication within an ASP.NET application. I am wondering how to best get the objectGuid from the currently logged in user? Regards, Egil. 回答1: You can do this with the System.DirectoryServices namespace. Dim entry As DirectoryServices.DirectoryEntry Dim mySearcher As System.DirectoryServices.DirectorySearcher Dim result As System.DirectoryServices.SearchResult Dim myEntry As DirectoryEntry Dim domainName As String Dim userId As String Dim objectGuid As Guid 'Split the

App pool identity versus impersonation identity?

谁说胖子不能爱 提交于 2019-11-29 09:14:56
I found only one thread relating to this but it did not answer the question. I'm curious to a link or explanation of the difference between setting an impersonation user via in the web.config versus setting the application pool identity in IIS. They seem to be independent and am confused on the detailed differences. Thanks. Using impersonation in the web.config allows you to override whatever identity was configured for the Application Pool the app is running under - it's just a more fine grained method to control identity ( on the app level vs. the ApplicationPool level), so you could have

How do you find the users name/Identity in C#

北战南征 提交于 2019-11-29 09:14:55
I need to programatically find the users name using C#. Specifically, I want to get the system/network user attached to the current process. I'm writing a web application that uses windows integrated security. Marc Gravell The abstracted view of identity is often the IPrincipal / IIdentity : IPrincipal principal = Thread.CurrentPrincipal; IIdentity identity = principal == null ? null : principal.Identity; string name = identity == null ? "" : identity.Name; This allows the same code to work in many different models (winform, asp.net, wcf, etc) - but it relies on the identity being set in

Using fiddler with Windows Authentication

百般思念 提交于 2019-11-29 09:07:45
I am testing some proxy settings for our application but I need to test a proxy that requires Windows Authentication (or network credentials). For testing, I assigned the credential of the proxy to the network credentials System.Net.WebProxy proxy = new System.Net.WebProxy("127.0.0.1", 8888); proxy.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; //proxy.Credentials = new System.Net.NetworkCredential("1", "1"); System.Net.WebRequest.DefaultWebProxy = proxy; Currently, I use Fiddler with the Require Proxy Authentication rule turned on. How can I configure Fiddler so I can use