thorsten / phpMyFAQ

phpMyFAQ - Open Source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases
https://www.phpmyfaq.de
Mozilla Public License 2.0
588 stars 254 forks source link

Can support ldaps with port 636? #3210

Open conan522 opened 4 days ago

conan522 commented 4 days ago

Can support ldaps with port 636? Looks does not support ldaps now.

thorsten commented 3 days ago

LDAPS is supported, you just have to configure it correctly in the ldap.php configuration file, e.g.:

<?php // Main LDAP server $PMF_LDAP['ldap_server'] = 'ldaps://192.168.2.163'; $PMF_LDAP['ldap_port'] = 636; $PMF_LDAP['ldap_user'] = 'cn=admin,dc=phpmyfaq,dc=com'; $PMF_LDAP['ldap_password'] = 'Password'; $PMF_LDAP['ldap_base'] = 'ou=people,dc=phpmyfaq,dc=com';

The file has to be in phpmyfaq/config/ldap.php if you use phpMyFAQ 3.2 or earlier.

conan522 commented 1 day ago

I installed 3.2.9. How can add a domain account in "user mgmt"? which format: domain/username or email. neither can not find useres.

thorsten commented 1 day ago

You can edit the LDAP configuration under Configuration->LDAP, there standard values as default values.

conan522 commented 1 day ago

I did edit LDAP configuration as standard. But how can I test is it works. Can we add a domain user in "Users" configration or login with a domain user directly? Both did not work for me. So far I have no idea LDAP is works or not.

thorsten commented 3 hours ago

Just login with your LDAP user and it should work. What error message do you get when logging in?