You are not logged in.

#1 2013-02-14 21:03:26

matt_max
Member
From: Warsaw
Registered: 2013-02-14
Posts: 4

phpldapadmin problem with ldapi

Openldap configured as described in wiki tutorial. I would like to use unix sockets communication ONLY so in my /etc/openldap/ldap.conf I set:

URI ldapi://%2Fvar%2Frun%2Fopenldap%2Fldapi

and even add something like this in my /usr/lib/systemd/system/slapd.service

ExecStart=/usr/sbin/slapd -u ldap -g ldap -h "ldapi://%2Fvar%2Frun%2Fopenldap%2Fldapi"

It seems that everything is ok. I see ldapi socket in /var/run/openldap directory, i can test connection for example like this:

ldapsearch -H ldapi://%2Fvar%2Frun%2Fopenldap%2Fldapi -D "cn=admin,dc=nomatter,dc=what" -W -x

So rootdn and rootpw i set properly in /etc/openldap/slapd.conf and socket is working as expected.

So I'm attempting to configure phpldapadmin by changing config.php. When I set:

$servers->setValue('server','host','ldapi://%2Fvar%2Frun%2Fopenldap%2Fldapi');

I just cannot connect sad Always the same damn Can't contact LDAP server (-1) for user.

I don't know what else should I do. Can someone tell me what to do to correct the problem? Where (or maybe how) should the key be predefined?

nginx (1.2.7-1) with php-fpm (5.4.11-2) and openldap (2.4.33-3), libldap (2.4.33-3), php-ldap(186-4) - of course extension=ldap.so i set in php.ini and finally that crappy phpldapadmin (1.2.3-1).

Offline

#2 2013-02-20 11:48:01

matt_max
Member
From: Warsaw
Registered: 2013-02-14
Posts: 4

Re: phpldapadmin problem with ldapi

*bump*

Offline

Board footer

Powered by FluxBB