It is not possible to use a custom ldap authentication logic #5329

Open
opened 2026-02-20 16:59:43 -05:00 by deekerman · 0 comments
Owner

Originally created by @SinergiaCRM on GitHub (Jun 23, 2025).

Issue

It is not possible to use a custom version of the modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php file to allow custom logic in user authentication.

Possible Fix

Allow use custom/modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php if exists.

Steps to Reproduce the Issue

1. Create `custom/modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php`  file with modified authentication logic.
2. Attempt to authenticate a user using the custom logic. 
3. Observe that the custom logic is not applied.

Context

We need to implement custom authentication logic for ours SuiteCRM instances, specifically related to how users are authenticated via LDAP. The current setup does not allow for a straightforward way to modify the LDAPAuthenticateUser.php file without directly altering the core system, which is undesirable for maintainability and upgrade paths.

Version

7.14.6

What browser are you currently using?

Chrome

Browser Version

Chrome versión 131.0.6778.139 (Build oficial) (64 bits)

Environment Information

MySQL, PHP Version 7.4

Operating System and Version

Kubuntu 22.04.4 LTS

Originally created by @SinergiaCRM on GitHub (Jun 23, 2025). ### Issue It is not possible to use a custom version of the `modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php` file to allow custom logic in user authentication. ### Possible Fix Allow use `custom/modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php` if exists. ### Steps to Reproduce the Issue ```bash 1. Create `custom/modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php` file with modified authentication logic. 2. Attempt to authenticate a user using the custom logic. 3. Observe that the custom logic is not applied. ``` ### Context We need to implement custom authentication logic for ours SuiteCRM instances, specifically related to how users are authenticated via LDAP. The current setup does not allow for a straightforward way to modify the `LDAPAuthenticateUser.php` file without directly altering the core system, which is undesirable for maintainability and upgrade paths. ### Version 7.14.6 ### What browser are you currently using? Chrome ### Browser Version Chrome versión 131.0.6778.139 (Build oficial) (64 bits) ### Environment Information MySQL, PHP Version 7.4 ### Operating System and Version Kubuntu 22.04.4 LTS
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5329
No description provided.