冒充身份 [英] Impersonate Identity

查看:75
本文介绍了冒充身份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被赋予了将网站从一台服务器移动到另一台服务器的任务。

此作者已不再与我们公司合作。这个网站用C#编写了
,这是我不熟悉的,但是我可以阅读它以获得一个关于应该发生什么的

的想法。但是,在webconfig文件中,

有一行:


< identity impersonate =" true"的userName = QUOT; DOMAIN\XXX"密码=" XXX" />


坦率地说,我不知道它的用途是什么或它为什么存在。

发布后网站到新服务器,我得到一个错误消息

该行:


解析器错误消息:无法从
配置文件中指定的
凭证。操作错误

系统''客户端不持有所需的权限。 ''


我看了一下旧服务器试图找出新服务器的不同之处

,我真的不喜欢知道我应该看什么

for。


有人请花时间解释

冒充的目的是什么是什么?需要在服务器上设置什么才能使其正常工作?


谢谢,

Jennifer

解决方案

嗨Jennifer,


这意味着整个应用程序将以用户DOMAIN\XXX运行,

无论请求的身份如何。也许你的新服务器在/ b $ ba不同的域名并且用户不存在,或者它有一个不同的密码




HTH,


克里斯


感谢您的回复。至少现在我知道那行代码是什么?
for。 :)但是......服务器在同一个域上。用户存在于

Active Directory中,密码相同 - 这仍然适用于

旧服务器。是否有一些IIS设置(或其他类型的设置)

需要到位才能使用?


再次感谢,

Jennifer


尝试删除它吗?


" Jennifer" < J。********** @ gmail.com>在消息中写道

news:11 ********************* @ i39g2000cwa.googlegro ups.com ...

感谢您的回复。至少现在我知道那行代码是什么。 :)但是......服务器在同一个域上。用户存在于Active Directory中,密码相同 - 这仍然可以在旧服务器上运行。是否有一些IIS设置(或其他类型的设置)需要到位才能使用?

再次感谢,Jennifer


I was given the task of moving a website from one server to another.
The author of this is no longer with our company. The site was written
in C#, which I am not familiar with, but I can read it enough to get an
idea of what is supposed to be going on. But, in the webconfig file,
there is a line:

<identity impersonate="true" userName="DOMAIN\XXX" password="XXX"/>

Quite frankly, I have no idea what it is used for or why it is there.
After publishing the site to the new server, I got an error message for
that line:

Parser Error Message: Could not create Windows user token from the
credentials specified in the config file. Error from the operating
system ''A required privilege is not held by the client. ''

I''ve looked at the old server to try to figure out what is different
from the new server, and I really don''t know what I should be looking
for.

Could someone please take the time to explain what the purpose of
impersonating is? What needs to be set up on a server to make it work?

Thanks,
Jennifer

解决方案

Hi Jennifer,

This means that the entire application will run as the user DOMAIN\XXX,
regardless of the identity of the request. Maybe your new server is in
a different domain and the user doesn''t exist, or perhaps it has a
different password?

HTH,

Chris


Thanks for replying. At least now I know what that line of code is
for. :) But... the server is on the same domain. The user exists in
Active Directory and the password is the same - this still works on the
old server. Is there some IIS setting (or other kind of setting) that
needs to be in place for this to work?

Thanks again,
Jennifer


Try removing it?

"Jennifer" <J.**********@gmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...

Thanks for replying. At least now I know what that line of code is
for. :) But... the server is on the same domain. The user exists in
Active Directory and the password is the same - this still works on the
old server. Is there some IIS setting (or other kind of setting) that
needs to be in place for this to work?

Thanks again,
Jennifer



这篇关于冒充身份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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