ID:               50915
 User updated by:  strube at physik3 dot gwdg dot de
 Reported By:      strube at physik3 dot gwdg dot de
-Status:           Feedback
+Status:           Open
 Bug Type:         LDAP related
 Operating System: Solaris 10
 PHP Version:      5.2.12
 New Comment:

Well, I prefer our own servers over pastebin.com and put my patch in
ftp://ftp.physik3.gwdg.de/pub/HWS/php_ldap_solaris.patch (also visible
as http://www.physik3.gwdg.de/~strube/soft/php_ldap_solaris.patch)
which will exist at least for a year, probably much longer.
More details: The line numbers are correct for recent versions of PHP
5.2.x and 5.3.x; for 4.4.9, patching works with offset (-1 and -38
lines). Execution has only been tested with php 5.2.x (x = 12 and
slightly less), especially with LAM
(http://www.ldap-account-manager.org/) and PLA
(http://phpldapadmin.sourceforge.net/), both with and without SSL. SASL
has not been tested (so far I have not got it working even without
PHP).
The first hunk of the patch is required for building at all, the second
one, to allow ldap[s] URLs and to use SSL.
Note on SSL usage: this is independent of PHP's configure option
--with-openssl, since the Solaris libldap.so is linked with the
(Mozilla-type) SSL libraries from /usr/lib/mps/ (from Solaris 10 on; in
Solaris 9, ldapssl_client_init is a dummy function). The LDAP server's
CA certificate (or chain) has to be put into PHP_PREFIX/ssl/ (you may
change this path in my patch) in the Mozilla-like form of cert8.db,
key3.db, secmod.db (tools [e.g., certutil] in /usr/sfw/bin/, docs in
http://www.mozilla.org/projects/security/pki/nss/tools/).


Previous Comments:
------------------------------------------------------------------------

[2010-02-12 17:39:01] j...@php.net

Ever heard of pastebin.com ? Try that.

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

[2010-02-12 16:39:11] strube at physik3 dot gwdg dot de

> No feedback was provided for this bug for over a week
I have simply been waiting for a reply to my question from 3 Feb 9:13am
UTC. It may seem trivial to you, but I am not sure what to do. Must I
set "Version" to 5.3.1? Can the patch not be uploaded but only a link
given to a file on our local webserver (which will not exist forever)?
(BTW, my password has not been working. I got it sent to me but it was
changed - definitely not by me!)

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

[2010-02-03 09:13:01] strube at physik3 dot gwdg dot de

>Please provide patches (links) against PHP_5_3 and trunk.
How must I proceed to do so?

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

[2010-02-02 17:14:49] paj...@php.net

hi,

Please provide patches (links) against PHP_5_3 and trunk.

Cheers,

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

[2010-02-02 17:08:00] strube at physik3 dot gwdg dot de

Description:
------------
The PHP extension "ldap" can be build with the native Solaris 10
libldap and works well, except that it does not understand URL format
(ldap://host, ldaps://host). I made a patch for this, based on testing
for _SOLARIS_SDK (defined in /usr/include/ldap.h), which might also work
for other NSLDAP variants. How can I upload this?
(The line numbers seem not to have changed at least from 5.2.10 to
5.3.1.)



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


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

Reply via email to