Microsoft KB Archive/326818

= PRB: MTS and COM+ Roles Are Not Applied Immediately =

Article ID: 326818

Article Last Modified on 1/26/2004

-

APPLIES TO


 * Microsoft Transaction Services 2.0
 * Microsoft COM+ 1.0

-



This article was previously published under Q326818



SYMPTOMS
When you make changes to the accounts that have access to packages, components, or methods, the updates are not applied immediately.



CAUSE
When a component is loaded and one of its methods is called, it stores in memory a list of the Security Identifiers (SIDs) that make up the role membership. For performance reasons, this list is updated only at regular intervals. When you request a method, the user's SID list is compared with the component's SID list for access permissions.



RESOLUTION
You can modify the role membership of package or application by using Microsoft Transaction Server Explorer or Component Services snap-in or by using computer management.

Use Microsoft Transaction Server Explorer
To modify the role membership of a package, you must shut down and restart the application. You can do this manually or by using Microsoft Transaction Server Explorer or the Component Services snap-in. Modification only takes effect when the component no longer has active objects.
 * Manually shut down and restart the application:
 * Right-click the application, and then click Shut Down.
 * Right-click the application, and then click Start.
 * Use COM+ to shut down the application:
 * Right-click the application, and then click Properties.
 * In the Properties dialog box, click the Advanced tab.
 * In the Server Process Shutdown section, select Minutes until idle shutdown.
 * In the text box, type the time. The application is shut down only when it has been idle for the specified time. For example, when you specify five minutes in the text box, the application must be in the idle state for five minutes, or the changes do not take effect.

Use Computer Management
You can modify the domain or local group membership of the user account by using any one of the following:
 * Computer Management (Microsoft Windows 2000)
 * Active Directory Users and Computers (Windows 2000)
 * User Manager (Microsoft Windows NT 4.0)

For the modifications to take effect, you must log off the computer. When you log on to the computer, a new SID list is generated.



STATUS
This behavior is by design.



Steps to Reproduce the Behavior
Note The COM+ application must be a server application.  Add a role to an application:  Open Administrative Tools, and then double-click Component Services to open the COM+ application with Component Services. In the application, right-click the Roles folder, point to New, and then click Role. In the Role dialog box, type the name of the new role in the Please enter a name for the new item text box. Click OK.</li></ol> </li> Add a user to a role for an application: <ol style="list-style-type: lower-alpha;"> Expand the Roles folder.</li> Expand the role to which you want to add a user.</li> Right-click the Users folder, point to New, and then click User.</li> In the Select Users or Groups dialog box, double-click the user or group in the list.</li> Click OK.</li></ol> </li> Provide access to the role: <ol style="list-style-type: lower-alpha;"> Right-click the Components folder, and then click Properties.</li> Click the Security tab.</li> Click to select the role under Roles explicitly set for selected item(s).</li></ol> </li> Remove the user from a role or remove access to the role. Note that the user can still access the component because the modifications are not immediately updated.</li></ol>

Keywords: kbprb KB326818

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.