G
Guest
An odd problem, but here goes:
We implemented an ASMX web service as a gateway to the University's OpenLDAP directory to provide basic gorup membership / attribute lookups based on UID using the System.DirectoryServices namespace. Problem is that on a W2k3 box (member of AD), DirectorySearcher.FindOne() fails with a "Object reference not set to an instance..." error, with the stack dump pointing to the "IADsContainer::GetObject" method. On Win XP SP1, SP RC2, Win2k Server, Win2k Adv Server, and Win 2k Workstation (all members of the same AD), this works fine - but NOT on 2k3...tried both ConsoleMode (even running as Admin - yuck!!) app and WebPage / Service.
After verifying that firewalls were not causing our problem(s), I wrote a simple Win32 DLL using the LDAP API directly (with the same criteria) to query the OpenLDAP server, and (as expected) it works flawlessly. I can, however, simulate the same problem with the LDAP API by attempting ANY sort of binding operation against the OpenLDAP server...the code stalls for a few moments, then bombs out, failing on the bind attempt (the OpenLDAP directory provided by the University is set up for anonymous read-only querying ONLY - skipping the binding allows the queries to run successfully).
Question is: Are there any known changes / updates on server 2k3 (I assume a security and/or ADSI change) would cause this to operation to fail?? I have no problem using my Win32 DLL, but I would rather use the built-in supported namespaces instead.
TAI,
MichaelY
We implemented an ASMX web service as a gateway to the University's OpenLDAP directory to provide basic gorup membership / attribute lookups based on UID using the System.DirectoryServices namespace. Problem is that on a W2k3 box (member of AD), DirectorySearcher.FindOne() fails with a "Object reference not set to an instance..." error, with the stack dump pointing to the "IADsContainer::GetObject" method. On Win XP SP1, SP RC2, Win2k Server, Win2k Adv Server, and Win 2k Workstation (all members of the same AD), this works fine - but NOT on 2k3...tried both ConsoleMode (even running as Admin - yuck!!) app and WebPage / Service.
After verifying that firewalls were not causing our problem(s), I wrote a simple Win32 DLL using the LDAP API directly (with the same criteria) to query the OpenLDAP server, and (as expected) it works flawlessly. I can, however, simulate the same problem with the LDAP API by attempting ANY sort of binding operation against the OpenLDAP server...the code stalls for a few moments, then bombs out, failing on the bind attempt (the OpenLDAP directory provided by the University is set up for anonymous read-only querying ONLY - skipping the binding allows the queries to run successfully).
Question is: Are there any known changes / updates on server 2k3 (I assume a security and/or ADSI change) would cause this to operation to fail?? I have no problem using my Win32 DLL, but I would rather use the built-in supported namespaces instead.
TAI,
MichaelY