02-18-2014 11:37 AM
We are using the CiscoIPServices SDK (7.1) running on Windows 2008 with IIS7, specifically the localizeddirectory.asp file to provide search of our AD for our VOIP phone users. We have been using it for close to a year with no issues as far as we could tell. Now we get errors when I search a certain way, and I can recreate it just by using IE going to the website. Here is what we see:
When we search
http://myserver/CiscoIPServices/LocalizedDirectory/localizeddirectory.asp?action=list&f=Smiths
it works fine, however, if I search
http://myserver/CiscoIPServices/LocalizedDirectory/localizeddirectory.asp?action=list&f=Smi
I get "Website cannot be displayed" and in the IIS Log I get
===============
2014-02-18 19:23:23 myserver GET /CiscoIPServices/LocalizedDirectory/localizeddirectory.asp action=list&f=Smi|214|800a005e|Invalid_use_of_Null:_'CStr' 80 - myserver Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) 500 0 0 15
===============
and if I search
http://10.65.77.137/CiscoIPServices/LocalizedDirectory/localizeddirectory.asp?action=list&f=Sn
or
http://10.65.77.137/CiscoIPServices/LocalizedDirectory/localizeddirectory.asp?action=list&f=Sl
it works fine.
It seems to be only if I seach sm-smiths, that it fails but if I add smithso it works again. Does ANYONE have any idea why this would be?
thanks,
Jason
02-19-2014 01:49 PM
Not aware of any particular limitation in the LDAP search object, but I would suppose that 'Smi' might end up returning a large number of records...
The LDAP search object in the SDK is pretty obsolete, and is no longer being maintained. The good news is that it is quite straightforward in most modern CGI environments to query an LDAP. Here is one link r.e .Net:
Querying Microsoft Active Directory Using Microsoft .NET Framework Library - CodeProject
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide