运行传统的ASP页面,IIS帐户下时启用了Windows身份验证 [英] Running a classic ASP page as under IIS account when Windows auth is enabled

查看:132
本文介绍了运行传统的ASP页面,IIS帐户下时启用了Windows身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP页面上启用,这样我可以抓住当前用户的用户名的Windows身份验证。这将强制ASP页作为用户运行。我要锁定一些文件下来,目前正在由该页面访问。有没有一种方法来启用Windows身份验证和仍然是运行IIS的?

I've got windows authentication enabled on an ASP page so that I can grab the current user's username. This forces the ASP page to run as that user. I want to lock some files down that are currently being accessed by that page. Is there a way to have Windows Authentication enabled and still run the page under the account that IIS is running as?

推荐答案

在最后,我只是将要迁移这ASP.net。有一个在微软模拟方面的文章在 http://support.microsoft.com/kb/248187。他们有一个页面上code一个名为LoginAdmin.dll库,它有带来的安全上下文回到该帐户运行IIS的功能RevertToSelf时。这可以在ASP.net更容易进行。

In the end, I'm just going to be migrating this to ASP.net. There is an article at Microsoft regarding impersonation at http://support.microsoft.com/kb/248187. They have code on that page for a library called LoginAdmin.dll which has a RevertToSelf function that brings the security context back to that of the account running IIS. This can be done much more easily in ASP.net.

这篇关于运行传统的ASP页面,IIS帐户下时启用了Windows身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆