View Issue Details

IDProjectCategoryView StatusLast Update
0022655mantisbtldappublic2021-01-07 07:27
Reportergfalves Assigned Toatrol  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformServerOSWindows OS Version2016
Product Version2.2.3 
Summary0022655: Login via LDAP is not working, error with special characters [APPLICATION ERROR 0000401]
Description

Good Morning!
I use MantisBt with AD integration from my organization, but the accounts here have special characters like: [á é í ç ~ ^] When I login with an account that has these characters the following error is displayed.
Could you help me?
We are users here in Brazil.

TagsNo tags attached.
Attached Files
erro login.png (33,844 bytes)   
erro login.png (33,844 bytes)   
Conta acento.png (1,782 bytes)   
Conta acento.png (1,782 bytes)   

Relationships

related to 0027420 closeddregad Cannot login due to UTF8 character using LDAP 
related to 0027848 closedcommunity Changed default $g_ldap_protocol_version from 0 to 3. 

Activities

Mr.Bricodage

Mr.Bricodage

2017-04-03 11:59

reporter   ~0056353

See 0020809, I didn't test it but could be related

gfalves

gfalves

2017-12-07 10:38

reporter   ~0058349

Mr Bricodage thanks , but that case treats when it has (at least french accents) are present in password value, but my situation is with accents in realname. (LDAP username)

I believe that I have to change the UFT8 decode, in some field, unfortunately I just do not know where to make this change?

Mr.Bricodage

Mr.Bricodage

2017-12-14 16:47

reporter   ~0058395

try in core\ldap_api.php to modify
function ldap_realname_from_username( $p_username ){
[...]
$t_realname = ldap_get_field_from_username( $p_username, $t_ldap_realname_field );

to

$t_realname = utf8_decode( ldap_get_field_from_username( $p_username, $t_ldap_realname_field ) );

atrol

atrol

2020-11-01 05:00

developer   ~0064602

There was a similar issue 0027420

The final solution was to set $g_ldap_protocol_version = 3; without any other source tweaks.
See also https://www.mantisbt.org/forums/viewtopic.php?p=70838#p70838

Can you confirm that this works for you?

dregad

dregad

2020-11-13 02:41

developer   ~0064649

Without feedback, assuming the solution outlined by @atrol addresses the issue.