HOW TO MAKE PROJEQTOR WORK WITH ACTIVE DIRECTORY
After a lot of trial and error trying to configure Projeqtor with Active Directory LDAP connections I finally made it work.
I decided then to share the steps i took in order to help other people because i couldn´t find any working answer to my case on the internet .
I hope this could help someone with the same problem.
In my case i installed Projeqtor over a Linux CentOS 8 with Apache, PHP and MariaDB installed.
In order to set the AD communication on Projeqtor this are the steps that worked for me:
* In the Main Menu go to Configuration - Global Parameters
* Select Authentication option on the menu bar at the top of the screen.
* Go to the "Ldap management parameters" section
These are the fields i had to fill and the content:
--------
connection with LDAP user: YES
LDAP base dn: This depends on your organization (cn=users,dc=domain,dc=acme,dc=org)
LDAP host: (The server name or IP of your Active Directory Server)
LDAP port: 389 (unless your organization uses a different port)
LDAP version: 3 (2 if your AD level is old)
LDAP user: cn=ADUSER,cn=users,dc=acme,dc=org
change ADUSER for an existing user of your active directory that can query the tree and the base cn with the one of your servers
LDAP password: The password of that user
LDAP user filter: (&(objectClass=user)(sAMAccountName=%USERNAME%))
This is the setting that worked for me but i also had to install some linux packages. More details ahead.
--------
Save the changes with the image of a diskette (yes i knew them on the 80´s) on the top right.
Now i had to install the php-ldap package for my CentOS. In my case the command was
yum install php-ldap
After installing this package Projeqtor gives me errors if i try to enter again so before atempting to connect please install the following packages also:
php-pdo
php-mysqlnd (php-pdo_mysql)
The commands i used where:
yum install php-pdo
yum install php-pdo_mysql
I think is not needed but you can restart the apache too
systemctl restart httpd (again, this depends on the distro of Linux you have and the name of the service)
After all those steps (and many others that didn´t work) i was able to log to Projeqtor with an Active Directory user.
I hope this works for you too.