Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can support ldaps with port 636? #3210

Open
conan522 opened this issue Oct 22, 2024 · 12 comments
Open

Can support ldaps with port 636? #3210

conan522 opened this issue Oct 22, 2024 · 12 comments
Assignees

Comments

@conan522
Copy link

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

@thorsten thorsten self-assigned this Oct 22, 2024
@thorsten
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@conan522
Copy link
Author

conan522 commented Oct 25, 2024

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
Copy link
Owner

thorsten commented Oct 26, 2024

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

@conan522
Copy link
Author

conan522 commented Oct 29, 2024

error message is "Wrong username or password." Also what is correct username format: "domain/username" or "username" or "email address" for logging?But all got same error message. BTW, if do not add LDAP user in "Users" in admin panel, how can grant permission to which user can access FAQS if I do not want any visitor can access FAQS. It is does not make sense. Thanks.

@thorsten
Copy link
Owner

With the first successful login the LDAP user will be stored in the phpMyFAQ database and when you can add the permissions. For the LDAP questions you have to ask your LDAP admin in your company as I'm not a LDAP expert. Sorry. Usually you should see the error in your LDAP server logs.

@conan522
Copy link
Author

Yes, I will check LDAP server logs and ask LDAP admin if it is a LDAP issue. But could you tell me how to fill in ldap username in login field. Is "domain/username" or "username" or "email address"? which is correct format? Thanks.

@thorsten
Copy link
Owner

@conan522 depends on your configuration

@conan522
Copy link
Author

sorry,could you share where is the configuration and how to setup? Thanks.

@thorsten
Copy link
Owner

Just log into the admin backend, go to Configuration and open the LDAP tab. There you'll find all the LDAP configuration items.

@thorsten
Copy link
Owner

@conan522 any feedback on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants