Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  152 Posts | 0 Stories | 2310 Comments | 653 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

LDAP, AD, ADSI, DS, GDS

AODSC (any old directory services crap)
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
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati