Ldap not working - OpenLdap (UCS)

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
flavio.bk
Posts: 1
Joined: Wed Jul 19, 2023 6:44 pm

Ldap not working - OpenLdap (UCS)

Post 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.
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Ldap not working - OpenLdap (UCS)

Post by Thorsten »

Hi,

you need a technical user for the LDAP credentials.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply