From:             scott dot thomas at inin dot com
Operating system: Windows 2003 Server
PHP version:      5.2.5
PHP Bug Type:     *Network Functions
Bug description:  SASL options do not load

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 bug report at http://bugs.php.net/?id=43233&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43233&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43233&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43233&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43233&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43233&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43233&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43233&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43233&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43233&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43233&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43233&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43233&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43233&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43233&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43233&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43233&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43233&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43233&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43233&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43233&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43233&r=mysqlcfg

Reply via email to