28.12.2013 Views

Building Secure ASP.NET Applications - People Search Directory

Building Secure ASP.NET Applications - People Search Directory

Building Secure ASP.NET Applications - People Search Directory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

206<br />

<strong>Building</strong> <strong>Secure</strong> <strong>ASP</strong>.<strong>NET</strong> <strong>Applications</strong><br />

Register Serviced Components<br />

Register serviced components in:<br />

●<br />

The Global Assembly Cache. Serviced components hosted in COM+ server<br />

applications require installation in the global assembly cache, while library<br />

applications do not.<br />

To register a serviced component in the global assembly cache, run the<br />

Gacutil.exe command line utility. To register an assembly called<br />

MyServicedComponent.dll in the global assembly cache, run the following<br />

command.<br />

gacutil –i MyServicedComponent.dll<br />

Note: You can also use the Microsoft .<strong>NET</strong> Framework Configuration Tool from the Administrative<br />

Tools program group to view and manipulate the contents of the global assembly<br />

cache.<br />

●<br />

The COM+ Catalog. To register an assembly called MyServicedComponent.dll<br />

in the COM+ catalog, run the following command.<br />

regsvcs.exe MyServicedComponent.dll<br />

This command results in the creation of a COM+ application. The .<strong>NET</strong> attributes<br />

present within the assembly are used to populate the COM+ catalog.<br />

Populate Roles<br />

Populate roles by using the Component Services tool, or by using script to program<br />

the COM+ catalog using the COM+ administration objects.<br />

Use Windows Groups<br />

Add Windows 2000 group accounts to Enterprise Services roles for maximum<br />

flexibility. By using Windows groups, you can effectively use one administration<br />

tool (the Users and Computers Administration tool) to administer both Windows<br />

and Enterprise Services security.<br />

● Create a Windows group for each role in the Enterprise Services application.<br />

● Assign each group to its respective role.<br />

For example, if you have a role called Manager, create a Windows group called<br />

Managers. Assign the Managers group to the Manager role.<br />

● After you assign groups to roles, use the Users and Computers Administration<br />

tool to add and remove users in each group.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!