Author Topic: LDAP support  (Read 2323 times)

0 Members and 1 Guest are viewing this topic.

LDAP support
« on: February 13, 2019, 12:24:05 PM »
Iam trying to getting ldap-support working, so that my webapplications can use windows authentication.

I have followed the following steps:
- yum install php-ldap
- echo "" >> /usr/local/php/php.ini
- service httpd restart

now the only place where phpinfo shows ldap, is in the curl section.
So it seems it isnt loaded correctly.

The extension_dir =/usr/local/lib/php/extensions/no-debug-non-zts-20100525
So i have copied the to this folder and did a restart, but it didnt make a difference.

Any idea where to search?

Re: LDAP support
« Reply #1 on: August 28, 2019, 12:55:35 PM »
Little late to the party, but this is how I installed LDAP support in php.

Open SSH connection to the server and do the following:

Code: [Select]
mkdir -p /usr/local/php-7-2
cd /usr/local/php-7-2
tar zxvf php-7.2.17.tar.gz
cd php-7.2.17
./configure  --with-config-file-path=/usr/local/php --with-config-file-scan-dir=/usr/local/php/php.d --with-zlib=/usr --enable-mbstring --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-tidy --with-curl --with-iconv --with-gmp --with-pspell --with-gd --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-jis-conv --with-zlib-dir=/usr --with-xpm-dir=/usr --with-openssl --with-pdo-mysql=mysqlnd --with-gettext=/usr --with-bz2=/usr --with-recode=/usr --with-mysqli --enable-soap --enable-phar --with-xsl --with-xmlrpc --with-kerberos --enable-posix --enable-sockets --with-pcre-regex --with-libdir=lib64 --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-intl --with-icu-dir=/usr --with-ldap
make && make install

So basically this downloads and compiles php 7.2.17, but you can probably do this with any version of php.  I found this to be the easiest way to install ldap.

Re: LDAP support
« Reply #2 on: August 28, 2019, 01:52:18 PM »
the simples is to edit php conf files and then build php

Example if you use main version 7.0:

And at the end of this file we add:

VPS & Dedicated server provider with included FREE Managed support for CWP.

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.