[Mono-dev] System.DirectoryServices and LdapReferralException
Boris Kirzner
borisk at mainsoft.com
Sun Aug 21 04:25:58 EDT 2005
Hello JD Conley,
> I'm trying to connect up to an Active Directory and run a
> search and I get a LdapReferralException. For example, I am
> running a query on the host "adserver.coversant.net" and
> while iterating through search results I get a referral
> exception for
> "LDAP://coversant.net/CN=Configuration,DC=coversant,DC=net".
> The configuration DN does not even have nodes in it that
> match the filter I was searching on.
>
> Maybe Mono's System.DirectoryServices should be ignoring this
> referral?
I'm not sure that ignoring the referral result is the correct way to
solve the problem.
In order to ensure what is the correct behavior in this case, the
following things should be checked :
(I'm proposing you to check this since just now I have no an environment
I can reproduce the problem)
- Ensure you're working with the latest SVN version
- Monitor LDAP protocol network activity (for example, using the
Ethereal http://www.ethereal.com/). Make sure your code get exactly the
same result as the same code in .NET (i.e., that both get some, and the
same, kind of referral in the result). If this is not the case, probably
the problem is in the LDAP request rather than in the way we're dealing
with the response.
- If the responses are exactly the same, maybe we really should ignore
referral error in DirectorySeracher.DoSearch().
- You're more than welcome to propose the patch (and, the best - also
the test case) for solving this problem.
--
Boris Kirzner
Mono R&D team, Mainsoft Corporation.
Blogging at http://boriskirzner.blogspot.com/
More information about the Mono-devel-list
mailing list