Hello
I have a program that binds to ADAM (running on W2K3 SP2) and performs a simple query (looking for a particular node, where I know the full DN). Connection to ADAM using Digest authentication. This has been working correctly for some time (thanks to Joe and Ryan on this forum back in August 2007 for helping with this).
I now have a scenario where this code is failing. I am catching a DirectoryOperationException which contains Response.ErrorMessage="000004DC: LdapErr: DSID-0C09062B, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece".
I don't understand the error, because I have performed a successful bind.
However, it's not as simple as that. My code is being used inside a WCF middletier, which is impersonating the client (using Kerberos delegation). Also I am connecting to the ADAM server using it's IP address instead of it's name (see footnote below).
If I connect to the ADAM server by name instead of IP the problem disappears and code works perfectly. Or if I disable the client impersonation (and thus connect to ADAM using the middletier service's account) the problem also disappears. Unfortunately neither of these are acceptable solutions for me so I'm searching for a reason.
The only reference to this error I've been able to find was at http://blog.joeware.net/2006/03/15/259/ but this doesn't match my scenario.
Any suggestions greatly appreciated.
PEvans
Footnote: Actually the problem first surfaced because we are running ADAM on a 2-server NLB cluster (ADAM installed on both nodes, with replication between each other). The problem occurs when we connect to ADAM on the cluster's name, but disappears when connecting to ADAM on either server1 or server2. I don't think that NLB is relevant, because the problem also surfaces as described in the main text, when connecting to server1 (or server2) by IP instead of name.
1. I am connecting to the ADAM server using it's IP address instead of its name; and
2. I am connecting