Microsoft KB Archive/283199

= PRB: Certain LDAP API Functions Raise Errors When Called =

Article ID: 283199

Article Last Modified on 8/27/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Workstation 4.0
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT 4.0 Service Pack 4
 * Microsoft Windows NT 4.0 Service Pack 5
 * Microsoft Windows NT 4.0 Service Pack 6
 * Microsoft Windows NT 4.0 Service Pack 6a

-



This article was previously published under Q283199



SYMPTOMS
When you are using the Microsoft Lightweight Directory Access Protocol (LDAP) API from a C application that was built with Wldap32.lib, certain function calls may return errors even when they are called correctly. General protection faults or access violations may also occur when you call some functions, even though memory is properly allocated.



CAUSE
The ordinal numbers for some of the functions in the Wldap32.lib file that were included in Visual Studio 6 and its service packs do not match the ordinals exported by the Wldap32.dll file that is found in the operating systems that are listed at the beginning of this article.



RESOLUTION
A fixed version of Wldap32.lib is available from the Microsoft Platform Software Development Kit (SDK). You can download the latest version of the Platform SDK at no charge from the following Microsoft Web site:

http://support.microsoft.com/default.aspx?pr=psdk



MORE INFORMATION
When you are using Microsoft Visual C++, the easiest way to make sure that the latest libraries and header files from the Platform SDK are being used is to adjust the order of the directories in which they are found.

To instruct Visual Studio to use certain directories in a desired order, follow this procedure: From the Tools menu, click Options. Go to the Directories tab. Choose the Show directories for: drop-down box and use the UP ARROW and DOWN ARROW keys to make sure that the files in the Platform SDK directories are used before the libraries that were included with Visual Studio.

Additional query words: wldap32.lib LDAP ldap_set_option ldap_simple_bind_s ldap_sslinit

Keywords: kbdswadsi2003swept kbprb KB283199

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.