View Issue Details

IDProjectCategoryView StatusLast Update
0014001mantisbtldappublic2012-03-15 03:59
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Product Version1.2.8 
Summary0014001: LDAP "SYSTEM NOTICE: Undefined index 0." when attempt to retrieve email for user that doesn't exist
Description

SYSTEM NOTICE: Undefined index 0.

ldap_api - ldap_get_field_from_username()

# Free results / unbind
log_event( LOG_LDAP, "Unbinding from LDAP server" );
ldap_free_result( $t_sr );
ldap_unbind( $t_ds );

START OF FIX

If no matches, return null.

if ( is_array( $t_info ) && isset( $t_info['count'] ) && $t_info['count'] === 0 ) {
    log_event( LOG_LDAP, "No matches found." );
    return null;
}

END OF FIX

# If no matches, return null.
if ( count( $t_info ) == 0 ) {
    log_event( LOG_LDAP, "No matches found." );
    return null;
}
TagsNo tags attached.

Relationships

duplicate of 0013331 closeddregad Email lookup against non-existing LDAP account displays warning 

Activities

vboctor

vboctor

2012-03-04 22:17

manager   ~0031381

Looks like this was already fixed in 1.2.9.