View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0028089 | mantisbt | authentication | public | 2021-03-18 20:15 | 2021-04-11 06:03 |
Reporter | duanshd | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | duplicate | ||
Summary | 0028089: username top-level domain size | ||||
Description | Hello, Does mantisbt supports $g_ldap_uid_field being an user email address (UPN) with a top level domain higher than 4 characters? How can we achieve such goal? thank you | ||||
Tags | No tags attached. | ||||
As far as I know, MantisBT does not place any restrictions on the contents of the username field; we just issue an LDAP search query like I do not know what is wrong, but maybe this is caused by your LDAP server ? Try to set |
|
The LDAP server is a functional AD server. Did not mentioned before but enabling LOG_LDAP does not produce a single output log line when trying to login with such top-level domain user (higher than 4 characters), while if they are up to such size all LDAP log outputs are seen as expected. Is there a way (php functions edition or mantis config files) to allow $g_ldap_uid_field = 'userPrincipalName'; to use top-level domains bigger than 4 digits (as mentioned there is a reason to use UPN)? thanks once again |
|
Some additional information that might help
|
|
Really ? I find that very hard to believe, as that would imply ldap_authenticate_by_username() is not even being called... I would expect at the very least a Not having access to a setup like yours, I will not be able to reproduce the problem, you need to give more information for troubleshooting. In addition to what atrol requested, please provide the following:
|
|
MantisBT 2-24.4, PHP 7.4, Ubuntu LTS 20.04 no significant config_inc changes other than ldap auth, using userprincipalname as uid. No other customization on ther config files. No plugins or custom functions. pretty straight forward install No modification of mantis source code again issue only when a user has a upn with a top-level domain bigger than 4 characters! and yes, no log output when trying to login with such users, when with others (top-level domain up to 4 characters) the log shows expected LDAP binding flow. This a simply install and not customized and a simple error to reproduce so, either mantis does not support such userprincipalname based uid auth method, or there is a component that does not allow username top-level domain higher than 4 characters. |
|
Possibly, but only if one has access to an LDAP environment such as yours, which is not our case. Unless you provide the information that could help us pinpoint the problem's root cause (see my last note 0028089:0065266, and relevant config_inc.php requested by atrol), we won't be able to help. |
|
Hello dregad, apparently this is a known issue and should be resolved on 2.25 release. |
|