View Issue Details

IDProjectCategoryView StatusLast Update
0034571mantisbtldappublic2024-08-25 04:31
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.26.3Fixed in Version2.26.3 
Summary0034571: ldap_simulation_get_user() does not return null when given non-string username
Description

When $p_username parameter is not a string, ldap_simulation_get_user() returns the first user found in the LDAP simulation file instead of null (= not found) as expected.

TagsNo tags attached.

Relationships

related to 0010686 closedvboctor Provide a way to simulate LDAP connection 

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master-2.26 bcc4c050

2024-08-09 06:16

dregad


Details Diff
Return null when user not found in LDAP simulation

When $p_username parameter is not a string, ldap_simulation_get_user()
returned the first user found in the LDAP simulation file instead of
null as expected.

Using strict comparison fixes the problem.

Fixes 0034571
Affected Issues
0034571
mod - core/ldap_api.php Diff File