php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50924 LDAP_OPT_ENCRYPT support for ldap_set_option
Submitted: 2010-02-03 10:10 UTC Modified: 2017-01-09 07:06 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: richard dot hyland at aegworldwide dot co dot uk Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 5.2.12 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: richard dot hyland at aegworldwide dot co dot uk
New email:
PHP Version: OS:

 

 [2010-02-03 10:10 UTC] richard dot hyland at aegworldwide dot co dot uk
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 14:00 UTC] jani@php.net
-Package: Feature/Change Request +Package: LDAP related
 [2017-01-09 07:06 UTC] heiglandreas@php.net
-Status: Open +Status: Not a bug
 [2017-01-09 07:06 UTC] heiglandreas@php.net
This issue has been open for about 6 years and targets a by now unsupported version of PHP. Therefore I'm closing it.

Besides enabling a hack to circumvent using TLS or SSL isn't really an option.

Should you still have these issues with a supported version of PHP please feel free to open a new issue.

Thanks
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC