Inconsistent Behaviour of WMI

Inconsistent Behaviour of WMI

Post by ZGhhcmFuaS » Fri, 15 Oct 2004 21:53:05


Hi all
I face ( as others have also in this newsgroup ) a typical problem with WMI
connections . I connected to remote systems using a user credential . But
after some minutes the same connection trails return with "Access Denied "
failures . Why such inconsistant behavior ? I heard some one talking about
recompiling MOF files . Is it needed? If so why ? How to recompile it ? Any
ideas will be welcome
 
 
 

Inconsistent Behaviour of WMI

Post by » Sat, 16 Oct 2004 00:19:05

Check:
http://www.yqcomputer.com/

/Lars



WMI
Any

 
 
 

Inconsistent Behaviour of WMI

Post by Ivan Brugi » Sat, 16 Oct 2004 17:51:55

From your previous posts, the problem is not well defined,
and, it might be related to the kind of wrapper you are using
to access the IWbemServices interface pointers.
Plain DCOM interface pointers are expected to not change their
authentication behavior,
unless you have identity tracking enabled, and you use the same interface
poitner from
different threads running from with different identities.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.yqcomputer.com/




WMI
Any
 
 
 

Inconsistent Behaviour of WMI

Post by ZGhhcmFuaS » Sat, 16 Oct 2004 18:13:05

Ivan
Could you please be specific ? To tell you what I do ..
I am running multiple threads with each threads having a WMI agent assigned
to it . Each thread has its own IWbemServices pointer along with IWbemLocator
etc etc . But its working fine for other machines like 2000 .( Its still
working fine for NT machines as long as I keep the password unchanged in it
and months ago the same code worked fine for XP machines also - but not now )

I hope I did not get your point . Please be specific . I have come to a
point where I can not proceed any further without having this problem solved
..

regds and thanks
Dharani babu S
 
 
 

Inconsistent Behaviour of WMI

Post by Ivan Brugi » Sat, 16 Oct 2004 18:45:45

I hope to read this answer right:
you have a single process, running under some identity.
Inside this process, you are using multiple locators
(only one is needes, but that does not affect your problem)
to get IWbemServices pointers to different machines.
Do you use explicit credentials on the IWbemLocator::ConnectServer ?
And if yes to the previous question,
do you have identity tracking enable on the interface pointer or not ?

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.yqcomputer.com/




assigned
IWbemLocator
it
now )
solved

interface
rights.


with
But
Denied "
about
?
 
 
 

Inconsistent Behaviour of WMI

Post by ZGhhcmFuaS » Sat, 16 Oct 2004 19:07:03

es Inside a process ( an application ) I instantiate several threads . Each
thread has its own IWbemServices \ I WbemLocater etc etc and I
ConnectServer() to remote machines using the remote systems username
/password which have WMI rights enabled . ( This is what you mean by
"Explicit credentials " right ?)
I dont understand whether I am using this "Identity tracking enabled on the
interface pointer ". I will check the IWbemServices::ConnectServer() Docs and
reply you .
Thanks again
regards and thanks in advance
Dharani Babu S

"Ivan Brugiolo [MSFT]" wrote:

 
 
 

Inconsistent Behaviour of WMI

Post by ZGhhcmFuaS » Sat, 16 Oct 2004 19:13:07

van
I checked the IWbemLocater::ConnectServer() docs in msdn and came across few
things .
The fourth parameter
strLocale - which denotes Identity is what you are talking about ? The
example says it is similar to MS_409 etc . Now Whats its relevence to my code
(If I read your answer correctly )

Pls advise me
regds and thanks
Dharani babu S


"Ivan Brugiolo [MSFT]" wrote:

 
 
 

Inconsistent Behaviour of WMI

Post by Ivan Brugi » Sun, 17 Oct 2004 02:04:06

dentity Tracking is the following concept:
per each DCOM-over-RPC call,
will the identity if the user be re-checked,
or, will the credentials used to estabilish the connection used ?
In programming terms, it's the EOAC_XXXCLOAKING business.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"dharani babu" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
few
code
rights.
still
in
not
a
specified at
message
credential .
talking
it