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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 00:01:41 2024 UTC