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
[4] LDAP authenticate without domain in username #35573
Comments
This comment was marked as abuse.
This comment was marked as abuse.
Any fix/action? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
This comment was marked as abuse.
This comment was marked as abuse.
Do you know, any good plugin to synch AD and working with Joomla 4? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
I'm rewriting plugin, but I need more time. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
Im not developer but commercial plugin using this PHP library https://www.php.net/manual/en/book.ldap.php Maybe this has been helpful for you. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
You need, add files on GitHub and some from team must review, test etc. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
https://docs.joomla.org/Working_with_git_and_github This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
This comment was marked as abuse.
This comment was marked as abuse.
Hi. I dont have access to secured LDAP. Can anyone test is it work on secured LDAP? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
This comment was marked as abuse.
This comment was marked as abuse.
You have to copy "layouts" and "src" folders to LDAP folder. They contains definition and layout of this button. This solution is taken from other core plugins. If You did thatm, then try to force refresh or Joomla cache (?). This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
@PhilETaylor Also I see no test authentication button This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35573. |
This comment was marked as abuse.
This comment was marked as abuse.
#37959 probably fixes this issue too (but with minimalist change) - if configuration is done correctly. If it worked in V3, it should work in V4 - except for SSL. |
With #37962, secured LDAP also works (with minimal changes). Can someone test if these PRs fixes this issue? On a side note: why was the PR first created suddenly closed? |
Steps to reproduce the issue
Activate LDAP plugin in "direct bind" method and authenticate only with user name (not username@domain).
Expected result
Allow only user name to be used for LDAP authentication (not username@domain), like in standard Joomla! authentication method.
Actual result
Full DN is required in "username" login field (like username@domain), because it is used in "ldap_bind" and "ldap_search" methods.
System information (as much as possible)
Joomla 4.0.3
Additional comments
One possible solution is to add "ldap_prefix" and "ldap_suffix" fields in LDAP plugin configuration for "direct bind" method. This allows to use "userdn" like "domain/username" or "username@domain". Just check and merge "ldap_prefix", username (from login form) and "ldap_suffix".
I can do it but how to send corrected files.
The text was updated successfully, but these errors were encountered: