问题描述
我的asp.net网站打开一个putty.exe窗口。这个putty应用程序执行一些指定的任务。
我在应用程序池的身份中配置了abc用户。用户abc拥有完全的管理权限。在web.config中我在模拟部分配置了这个abc用户。
如果我使用这个abc用户登录机器并打开该站点。然后putty.exe正常工作但我已登录到具有不同帐户的机器,如xyz,这也有完全权限然后putty.exe没有正确执行他们的任务
那么我可以在身份部分配置哪个帐户,如本地帐户,系统帐户或网络服务帐户,以允许所有管理用户正确执行他们的任务。
我尝试过:
我对权利和应用程序池不太了解。
Hi,
My asp.net site open an putty.exe window.This putty application perform a some specified task.
I have configured "abc" user in identity of application pool.And user "abc" has full administrative rights.And in web.config i configured this "abc" user in impersonate section.
If i login machine with this "abc" user and open that site.Then putty.exe work properly but i have login to machine with different account like "xyz" which also has full rights then putty.exe is not performing their task properly
So which account i can configure in identity section like local account,system account or network service account to allow all administrative users to perform their task properly.
What I have tried:
I have dont not have to much idea about rights and application pool.
推荐答案
<profile defaultProvider="DefaultProfileProvider">
<properties>
<add name="MachineID" />
<add name="MachineGenres" type="System.Collections.Generic.List`1[System.Int32]" />
</properties>
<providers>
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="MachineConnectionString1" applicationName="/" />
</providers>
</profile>
When Read back, compare with current Machine ID with profiles value
ProfileBase myprofile = HttpContext.Current.Profile;
List<Int32> listitem_ = new List<Int32>();
listitem_ = (List<Int32>)myprofile.GetPropertyValue("MachineGenres");
var machineid = (string)myprofile.GetPropertyValue("MachineID");
写时
listitem可以通过使用SetPropertyValue(MachineGenres,listitem)设置回配置文件。
你可以存储一个MachineGenres下的列表中的计算机ID列表或MachineID中的单个列表。
它将在数据库中跟踪。确保Provider数据库和系统数据库存储在同一个数据库中。
PS.:所有自定义配置文件的存储方式不同,基于不同的登录属于个人档案的单行。
谨慎安装正确的Entityframework 5.0版本仅适用于Microsoft提供商1.2和某些Visual Studio不支持高于此版本的版本。
When Write
listitem can be set back into profile by using SetPropertyValue("MachineGenres",listitem).
You can stored a list of machine ID in list under MachineGenres or single in MachineID.
It will keep track in database. Make sure Provider database and your system database stored in right same database.
PS.:All custom profiles is stored right differently based on different login in single lines belong to personel profiles.
Be Careful install right version for Entityframework 5.0 worked only in Microsoft providers 1.2 and Some visual studio doesn't suppport too much higher version than that.
这篇关于应在应用程序池的标识中设置哪个帐户,以提供对网站的完全管理访问权限。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!