Article ID: 316258 - Last Review: October 25, 2006 - Revision: 2.6 Connection to SMS Provider Without Impersonation May Cause the Wrong User Groups to Be Retrieved
This article was previously published under Q316258 On This PageSYMPTOMS
When you are using a program that does not set the WBEM security level to Impersonate (wbemImpersonationLevelImpersonate (3)) during a
connection to the Systems Management Server (SMS) provider, the SMS provider may obtain the incorrect user groups to which that user belongs. The user may then have more or less access rights in a running SMS Administration console (or program that uses the SMS SDK) than is defined in the SMS Security rights.
CAUSE
The SMS Provider is incorrectly dealing with provider connections which are not setting the DCOM security level to Impersonate.
RESOLUTIONService Pack InformationTo resolve this problem, obtain the latest service pack for Microsoft Systems Management Server 2.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:288239
(http://support.microsoft.com/kb/288239/EN-US/
)
How to Obtain the Latest Systems Management Server 2.0 Service Pack Hotfix InformationA supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support
(http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
The hotfix originally provided for the problem that is described in this Microsoft Knowledge Base article is no longer available. The hotfix for the following Microsoft Knowledge Base article now supercedes it.
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
324204
(http://support.microsoft.com/kb/324204/EN-US/
)
SMS: Collections That Are Based on Complex Queries Do Not Update
If you want to resolve the problem that is described in this article, you must install the hotfix for Microsoft Knowledge Base article Q324204.
WORKAROUND
To work around this problem, always set the WBEM authentication level to Impersonate in any program or script that connects to the SMS provider. If you are using the WMI Scripting API, verify that the registry on the computer that is running the script has a default impersonation level set in the registry:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Systems Management Server 2.0 Service Pack 5. MORE INFORMATIONHow to Install the HotfixApply this fix on all of the sites in the SMS hierarchy, including the SMS provider if it is located on a separate database server. To install the fix, use one of the following methods.How to Use the Hotfix InstallerNOTE: You can use this method only on Intel-based computers.
How to Manually Install the Hotfix
'++++++ Example script to output Sitecode and Sitename for each site +++++
Before you install the hotfix, when a client tries to connect to the SMS provider without impersonation, you may receive the following entry in the SMS provider log (Smsprov.log):
Option Explicit Dim oLocator Dim oServices Dim sServer, sSiteCode 'Setting the constant to 3 (Allows objects to use the credentials of the caller) Const wbemImpersonationLevelImpersonate = 3 ' Create locator, needed to connect to WMI namespaces Set oLocator = CreateObject("WbemScripting.SWbemLocator") sServer = InputBox ("SMS Site Server Name") sSiteCode = InputBox ("SMS Code Code") Set oServices = oLocator.ConnectServer(sServer, "root\sms\site_" & sSiteCode) ' Set security impersonation level oServices.Security_.ImpersonationLevel = wbemImpersonationLevelImpersonate For Each Site in Sites MsgBox "Sitecode =" & Site.SiteCode & ", Site Name =" &Site.SiteName Next Set oLocator=Nothing Set oServices=Nothing Set Sites=Nothing Set Site=Nothing
-- Updating NT Group membership
With the hotfix installed, the SMS provider will log the following in its log file. The SMS provider will not allow a connection without impersonation set.
!!!Client connected without impersonation - group membership may be incomplete!!
Client connected without impersonation activated, cannot retrieve group membership. Set the impersonation level to impersonate in the client application.
| Article Translations
|
Back to the top
