Author: Flyingis
Security, in the software project development process will consider from multiple aspects, previously written 《Security Technology in. NET web ADF applicationsUsing the security technology of ASP. NET Website management, define the features of the ADF according to different users, so that different levels of users can access the WebGIS website with different functions.
ArcGIS Server has its own security mechanism, which is relatively simple. When installing ArcGIS Server, you have met users who need to specify the agsusers and agsadmin groups, different user groups are granted different functions and permissions.
ESRI. arcGIS. ADF. identity identity = New ESRI. arcGIS. ADF. identity ( " User " , " passwd " , " domain " );
ESRI. ArcGIS. ADF. Connection. AGS. agsserverconnection ags_connection;
Agsconnection= NewESRI. ArcGIS. ADF. Connection. AGS. agsserverconnection ("Hostname" , Identity );
Agsconnection. Connect ();
Iserverobjectmanager som=Agsconnection. serverobjectmanager;
If the current user only belongs to the agsusers group,ProgramAll you can do is create servercontext and some basic GIS server information, which corresponds to the iserverobjectmanager interface. users in the agsadmin group can execute more management functions and correspond to the iserverobjectadmin interface.
It can be seen that agsadmin belongs to the top-level user group of ArcGIS Server. In program development, most users only need to have permissions for the agsusers user group. In the past, ArcIMS service management was implemented through ArcIMS administrator or ArcXML command line. Admin request can only obtain some very limited information, currently, ArcGIS Server has enhanced server and service management and can be managed through APIS, which is much easier than ArcIMS.