Re: Taking Ownership
- From: "Stephen Engle" <engle.stephen@xxxxxxxxx>
- Date: Thu, 13 Oct 2005 12:39:06 -0400
I have indeed been checking my return codes. The only one that fails is the
call to apply the changes back to the AD group (E_ACCESSDENIED). But thanks
for all of your help and suggestions. I will look for another place to post
and check on this.
"William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx> wrote in message
news:eFo4Oe2zFHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
> "Stephen Engle" <engle.stephen@xxxxxxxxx> wrote in message
> news:uKtfcU2zFHA.1264@xxxxxxxxxxxxxxxxxxxxxxx
> > Sorry - I should have been more plain about the user. I log on as the
> > user
> > (a test id) in question to test my app (and also to test that user's
> > rights
> > using Active Directory Users & Computers). Unfortunately, the only
thing
> > I
> > have been able to determine is that the user id has the appropriate
rights
> > (because ADU&C can make the change) but my app still won't work, unless
> > I'm
> > logged in as myself. I am a Domain Admin and therefore have so many
> > rights
> > that I don't know for sure what the difference really is. But since
ADU&C
> > can work for the test id, I would think there must be some way to do
this
> > with my app.
>
> > Do you have any ideas as to what group might be more appropriate to post
> > this question to. I have looked at the huge list of Microsoft groups
and
> > have only found this and potentially the
microsoft.public.win2000.security
> > group that seemed to touch on this.
>
> The two languages groups (this and m.p.vc.language) field lots of
questions
> on things people do with the language even though the groups' focus is
> ostensibly on the language itself.
>
> The kernel group (m.p.win32.programmer.kernel) has a similar mix of skills
> among the regulars and more than a few who grok security.
>
> Apart from the kernel group, I'd plug
>
> activedirectory
>
> or
>
> adsi
>
> into the newsgroup search edit box to find a more appropriate one. If I
read
> any of these groups I'd suggest one, but as I said, I don't so I can't.
:-(
>
> At the risk of stating the obvious ... are you checking the return codes
> from the functions that you call? It is a really really rare event for a
> function in the Win32 API to fail silently. One thing you can do is type
>
> err
>
> in the watch window in the debugger. This pseudo-variable is an alias for
> the calling thread's last error code. When a function fails (and only if
it
> fails so you need to check return codes or look at the EAX register if you
> forgot to capture the return) this is the place to look for the underlying
> cause of the failure.
>
> > Thanks again.
>
> You are welcome.
>
> Regards,
> Will
>
>
.
- Follow-Ups:
- Re: Taking Ownership
- From: William DePalo [MVP VC++]
- Re: Taking Ownership
- References:
- Taking Ownership
- From: Stephen Engle
- Re: Taking Ownership
- From: Stephen Engle
- Re: Taking Ownership
- From: William DePalo [MVP VC++]
- Re: Taking Ownership
- From: Stephen Engle
- Re: Taking Ownership
- From: William DePalo [MVP VC++]
- Taking Ownership
- Prev by Date: Esay Problem about "std::getline"
- Next by Date: Re: help me....
- Previous by thread: Re: Taking Ownership
- Next by thread: Re: Taking Ownership
- Index(es):
Relevant Pages
|