Page 1 of 1

Ldap not working - OpenLdap (UCS)

Posted: Wed Jul 19, 2023 7:15 pm
by flavio.bk
phpMyFAQ 3.1.15
UCS 4.4-9 (Samba4)

I am trying to authenticate all users with the LDAP.

When I use the user definied in ldap.conf, it works, but only this user.
If I try authenticate with other use inside the tree level, it doesn`t work.

My ldap.conf

Code: Select all

$PMF_LDAP['ldap_server'] = 'ldap://192.168.x.1';
$PMF_LDAP['ldap_port'] = 7389;
$PMF_LDAP['ldap_user'] = 'uid=bind,cn=Users,dc=company,dc=intranet';
$PMF_LDAP['ldap_password'] = 'bind@123';
$PMF_LDAP['ldap_base'] = 'cn=Users,dc=company,dc=intranet';

This other ldap.conf, when I set up, the system can't find the user: User not found.

Code: Select all

$PMF_LDAP['ldap_server'] = 'ldap://192.168.x.1';
$PMF_LDAP['ldap_port'] = 7389;
$PMF_LDAP['ldap_user'] = 'uid=flavio,ou=RH,ou=City,ou=Users,dc=company,dc=intranet';
$PMF_LDAP['ldap_password'] = 'flavio';
$PMF_LDAP['ldap_base'] = 'ou=RH,ou=City,ou=Users,dc=company,dc=intranet';
Is it possible make a Ldap Base Search recursive? Search users in all levels of tree.

Re: Ldap not working - OpenLdap (UCS)

Posted: Fri Jul 21, 2023 5:18 pm
by Thorsten
Hi,

you need a technical user for the LDAP credentials.

bye
Thorsten