Bug 5097 - php is missing LDAP support
php is missing LDAP support
Product: Red Hat Raw Hide
Classification: Retired
Component: mod_php3 (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
Depends On:
  Show dependency treegraph
Reported: 1999-09-13 00:22 EDT by carenas
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-09-24 19:20:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description carenas 1999-09-13 00:22:27 EDT
php is missing LDAP support, but could be easily added

adding the following tags where is needed on spec and making
a small configuration patch like php-3.0.12-config.patch is
all what is needed

-- add this patch to source as php-3.0.12-ldap.patch --
--- php-3.0.12/php3.ini-dist.ldap
+++ php-3.0.12/php3.ini-dist
@@ -115,6 +115,7 @@
 ;UNIX Extensions

 ; Module Settings ;

-- add to spec --
Patch5:    php-3.0.12-ldap.patch

%package ldap
Group: System Environment/Daemons
Requires: php
BuildPrereq: openldap-devel
Summary: LDAP module for PHP3

%description ldap
This is a dynamic shared object (DSO) for Apache that will
add LDAP support to PHP3.  If you need to have LDAP support
for PHP3 applications, you will need to install this package
in addition to the main php package.

%patch5 -p1 -b .ldap

# LDAP module
perl -pi -e 's/HAVE_LDAP 0/HAVE_LDAP 1/g' config.h
gcc -shared -fPIC -DCOMPILE_DL=1 -I. -I/usr/include/apache \
        -o ldap.so ./functions/ldap.c -lldap -llber -lc

install -m 755 -s ldap.so $RPM_BUILD_ROOT/usr/lib/apache

%post ldap
perl -pi -e 's|^;extension=ldap.so|extension=ldap.so|g'

%postun ldap
if [ $1 = 0 ]; then
  perl -pi -e 's|^extension=ldap.so|;extension=ldap.so|g'

%files ldap

Comment 1 Preston Brown 1999-09-24 19:20:59 EDT
added in 3.0.12-5.

Note You need to log in before you can comment on or make changes to this bug.