Re: Server 2003 AD, security context APIs, "operations error" ??
- From: "Ollie Jones" <olliejones@xxxxxxxxx>
- Date: 30 Jun 2006 07:21:44 -0700
Thanks for the reply, Joe. (I will read your book -- I have mountains
of ignorance to cross). May I ask a couple of n00b questions as
followup?
Joe Kaplan (MVP - ADSI) wrote:
2003 AD doesn't support anonymous searches by default, so that's probably
the difference.
This could indeed be the problem. Are you saying that the NTLM security
context retrieved from the client isn't passed along to the AD? Is the
act of passing along the security context the thing called "delegation"
in Windows security parlance?
My guess is that your code has never been successfully
authenticating with AD and has been binding as the anonymous user all along.
This is probably right. The server AD get call fails another way --
actually it fails trying to read the server machine's local registry
according to sysinternal's regmon -- if the server process doesn't have
local machine administrator privileges.
Since you have a multiple
machine hop in here but can't delegate, you'll end up with anonymous
authentication to AD via NTLM.
So the get function to the AD first tries using the thread's security
context and if that fails it tries anonymous access, is that correct?
Is it important to use the client's security context to hit AD via LDAP?
What I have to do is retrieve an ExtendedRight that is set for the
client on a serviceConnectionPoint underneath the server's computer
directory entry. If the client doesn't have that right set, the
server is to refuse the client's request. The server certainly don't
need the client security context to carry out the operation once it's
authorized. What I am not clear on is whether the server must
impersonate the client to perform the check. Obviously everything
would be simpler if it didn't.
Any wisdom?
Thanks.
.
- Follow-Ups:
- Re: Server 2003 AD, security context APIs, "operations error" ??
- From: Joe Kaplan \(MVP - ADSI\)
- Re: Server 2003 AD, security context APIs, "operations error" ??
- References:
- Server 2003 AD, security context APIs, "operations error" ??
- From: Ollie Jones
- Re: Server 2003 AD, security context APIs, "operations error" ??
- From: Joe Kaplan \(MVP - ADSI\)
- Server 2003 AD, security context APIs, "operations error" ??
- Prev by Date: WlxQueryConsoleSwitchCredentials failing with ERROR_IO_PENDING
- Next by Date: Re: verifying cmd.exe
- Previous by thread: Re: Server 2003 AD, security context APIs, "operations error" ??
- Next by thread: Re: Server 2003 AD, security context APIs, "operations error" ??
- Index(es):
Relevant Pages
|