To make LABE (LDAP address book editor) work with PHP, one needs to recompile PHP with LDAP support:
--with-ldap=/usr
The command line should look like this
./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/usr --with-gd=/usr --with-zlib=/usr --enable-mbstring --with-ldap=/usr