From:             richard dot hyland at aegworldwide dot co dot uk
Operating system: Linux
PHP version:      5.2.12
PHP Bug Type:     LDAP related
Bug description:  LDAP_OPT_ENCRYPT support for ldap_set_option

Description:
------------
To change an Active Directory password over LDAP requires either SSL, 
TLS or LDAP_OPT_ENCRYPT (which in turn requires Kerberos)

You can change the password without SSL (which is no easy feat to 
install SSL on a domain controller) using LDAP_OPT_ENCRYPT but it seems 
to that ldap_set_option does not support this constant.



Reproduce code:
---------------
ldap_set_option($cn, LDAP_OPT_ENCRYPT, 1);
ldap_mod_replace($cn, $dn, array('unicodePwd'=>$unicodePassword));

Expected result:
----------------
Password changed in AD

Actual result:
--------------
Server is unwilling to perform as it requires SSL or encryption

-- 
Edit bug report at http://bugs.php.net/?id=50924&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50924&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50924&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50924&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50924&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50924&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50924&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50924&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50924&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50924&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50924&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50924&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50924&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50924&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50924&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50924&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50924&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50924&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50924&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50924&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50924&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50924&r=mysqlcfg

Reply via email to