internals:windows:libs:ldap

This is an old revision of the document!


OpenLDAP support in PHP relies on two of the OpenLDAP libraries:

  • olber32
  • oldap32

Our (patched) sources contain project files for VC8/9. OpenSSL is yet enabled.

But that should not be too hard now that the project files are in places (see the source directory in our pecl2 download pages).

You can place the include files in openldap\include in php_builds or in the default include in phpbuilds\include (5.2) or in deps\include (5.3+).

For VC9, it is necessary to patch the portable.h on line 1102:

#if _MSC_VER >= 15000
/* define to snprintf routine */
#define vsnprintf _vsnprintf
#endif

For VC5, the following option has to be added to the linker:

/NODEFAULTLIB:msvcrt

The latest patched sources available in our repository contain the project files for VC6/8/9.

internals/windows/libs/ldap.1214783114.txt.gz · Last modified: 2017/09/22 13:28 (external edit)