View Issue Details

IDProjectCategoryView StatusLast Update
0014442mantisbtldappublic2014-09-23 18:05
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.12 
Target Version1.2.12Fixed in Version1.2.12 
Summary0014442: LDAP binding calls are made even if $g_login_method <> LDAP
Description

If for some reason $g_use_ldap_email or $g_use_ldap_realname are ON with
$g_login_method <> 'LDAP', binding calls are attempted when retrieving
the user's e-mail or real name.

Additional Information

Log:

2012-07-02 17:12 CEST ldap Retrieving field 'mail' for 'testuser'
2012-07-02 17:12 CEST ldap Binding to LDAP server
2012-07-02 17:12 CEST ldap Attempting connection to LDAP URI 'ldap://example.com:3268/'.
2012-07-02 17:12 CEST ldap Connection accepted by LDAP server
2012-07-02 17:12 CEST ldap Setting LDAP protocol version to 3
2012-07-02 17:12 CEST ldap Attempting bind to ldap server with username and password
2012-07-02 17:12 CEST ldap Bind to ldap server successful
2012-07-02 17:12 CEST ldap Searching for (&(sAMAccountName=testuser))
2012-07-02 17:12 CEST ldap Unbinding from LDAP server
2012-07-02 17:12 CEST ldap No matches found.

TagsNo tags attached.

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036159

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master aca7cf7d

2012-07-02 04:43

dregad


Details Diff
LDAP binding calls are made even if $g_login_method <> LDAP

If for some reason $g_use_ldap_email or $g_use_ldap_realname are ON with
$g_login_method <> 'LDAP', binding calls are attempted when retrieving
the user's e-mail or real name.

Adding a check on $g_login_method to avoid this unwanted behavior.

Fixes 0014442
Affected Issues
0014442
mod - core/user_api.php Diff File

MantisBT: master-1.2.x 8d35e57a

2012-07-02 04:43

dregad


Details Diff
LDAP binding calls are made even if $g_login_method <> LDAP

If for some reason $g_use_ldap_email or $g_use_ldap_realname are ON with
$g_login_method <> 'LDAP', binding calls are attempted when retrieving
the user's e-mail or real name.

Adding a check on $g_login_method to avoid this unwanted behavior.

Fixes 0014442
Affected Issues
0014442
mod - core/user_api.php Diff File