应在应用程序池的标识中设置哪个帐户,以提供对网站的完全管理访问权限。 [英] Which account should be set in identity of application pool to give full administrative access to website..

查看:59
本文介绍了应在应用程序池的标识中设置哪个帐户,以提供对网站的完全管理访问权限。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的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.

推荐答案

我觉得你应该检查一下身份(在应用程序池 - 进程模型 - 身份下打开),例如ASP.NET v4.0,检查它是内置还是自定义。首先,您可以在网络中将权限设置为某个用户帐户名称用于限制访问某些文件或文件夹。然后选择自定义帐户,选择一个用户帐户和密码设置。不要忘记选择您设置的特定应用程序池(单击默认网站下的高级设置 )。



这是我在部署中使用时通常用于访问受限网络资源的方式。
I Think you should check "Identity" (open under "Applications Pools-Process Model-Identity) for example ASP.NET v4.0 , check whether is it is built-in or custom".First you can set permission right in your network to certain "user account name" for restrict access to certain files or folder.Then choose "custom account", choose the one user account and password set.Don't forget to pick particular "Application pool" you have set (click Advanced Settings under "Default Web Sites").

This is the way I normally used to access restricted network resource whenever I used in deploy.


您可以尝试使用Microsoft .ASPNET.Providers存储在每个customeproperties配置文件中的Machine ID \\\ Value。 ASP.NET是goob基于推广个性化网站。



在web.config中,



you can try using Microsoft.ASPNET.Providers to stored Machine ID\Value in each customeproperties profiles. ASP.NET is goob based to promote personalised websites.

In web.config,

<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>



<回读时,将当前机器ID与配置文件值进行比较



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.


这篇关于应在应用程序池的标识中设置哪个帐户,以提供对网站的完全管理访问权限。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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