C# LDAP Bind how to bypass Server Record and use A record Directly

Question:  I am setting up a WSDL hitting a load balancer for our 2003 AD.  I am curious if there is a way to force the LDAP bind using either SPSP or SDP to not look for the DNS Server record but instead only use the A record.  2.0 NET is being used.  

BIvsAIAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris DentPowerShell DeveloperCommented:
Specify a server when you construct your searcher / perform a bind. That is, this uses discovery (serverless binding) and will use service records:

LDAP://DC=domain,DC=com

These will not:

LDAP://domain.com/DC=domain,DC=com
LDAP://server.domain.com/DC=domain,DC=com

That applies to both System.DirectoryServices and System.DirectoryServices.Protocols for LDAP operations and is the only way to go if your service is not part of the domain (cannot discover). It should perhaps be noted that serverless binding is usually better as it is both (AD) site-aware and relatively fault tolerant, but that doesn't mean you must use it.

Is that what you mean?

Chris
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BIvsAIAuthor Commented:
It is .. I am actually using variable to pass in a FQDN of a server which has an DNS A  record but not a server record.   But for some reason it is still sending out queries when I do a wireshark looking for a server record instead of just using the A record in DNS.

Any suggestions.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.