Edit report at http://bugs.php.net/bug.php?id=43233&edit=1

 ID:               43233
 Comment by:       bruno dot chalopin at laposte dot net
 Reported by:      scott dot thomas at inin dot com
 Summary:          SASL options do not load - Missing SASL support in
                   windows builds
 Status:           Open
 Type:             Feature/Change Request
 Package:          Feature/Change Request
 Operating System: Windows 2003 Server
 PHP Version:      5.2.5

 New Comment:

There is still no sasl support in ldap on Windows binaries (5.2.x or
5.3.x)

Why isn't it activate by default on Windows ? A lot of Active Directory
Ldap server require a strong authentication like 'DIGEST-MD5' which is
only provided by ldap_sasl_bind.


Previous Comments:
------------------------------------------------------------------------
[2007-11-11 01:22:25] scott dot thomas at inin dot com

Can it be added in or perhaps a special build made so I can use this
feature?  Do I have any other options besides moving to a non-Windows
platform?

------------------------------------------------------------------------
[2007-11-10 22:18:46] [email protected]

This is not a bug, just missing feature or rather: missing sasl support
in the ldap libraries used to build win32 binaries.

------------------------------------------------------------------------
[2007-11-10 08:40:57] scott dot thomas at inin dot com

Description:
------------
Using Windows 2003 I seem to have no way to use LDAP_SASL_BIND().  All
LDAP functions work otherwise. Error is as follows:



Fatal error: Call to undefined function ldap_sasl_bind()



Manual says to compile with --with-ldap-sasl but that is not an option
for Windows deployments.

Reproduce code:
---------------
if ($connect=ldap_connect($ldap_server)) {

        ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);

        ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);

        if ($bind=ldap_sasl_bind($connect, $auth_user, $password)) {

                ldap_close($connect);

                return true;

        }

        else {

                print ldap_error($connect) . '<br />';

        }

}//if connected to ldap

ldap_close($connect);

return false;



Expected result:
----------------
return true or return false

Actual result:
--------------
Fatal error: Call to undefined function ldap_sasl_bind()


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=43233&edit=1

Reply via email to