Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T. LDAP, AD, ADSI, DS, GDS AODSC (any old directory services crap)
System.DirectoryServices.DirectorySearcher.Timeout and ServerTimeLimit not working for non AD LDAP directory (GDS)

I've been running several searches against a GDS LDAP directory - and
the Timeout and ServerTimeLimit properties of the DirectorySearcher
class appear to have no effect.

After further testing I've discovered that the problem is caused because I was using sub second timeout periods eg 500ms - and the LDAP server I'm accessing (GDS) only supports timeout periods of whole number seconds.

HTH

Tim

Posted On Friday, May 19, 2006 8:34 AM

ADSI error: The directory datatype cannot be converted to/from a native DS datatype. When retrieving DS property value.
This occurs when using ADSI (ActiveDs.dll) when retreiving a property value whose type (in the schema) is not the same as that specified in the method you use. In my case I was trying to access a property which was a dn (distinguished name), however the method I was using to retrieve the value was defaulting to type ADSTYPEENUM.ADSTYPE_CASE_IG... This caused the following error: Exception Information****************... Type: System.Runtime.InteropServi... ......

Posted On Wednesday, November 9, 2005 1:17 PM

Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net