View Issue Details

IDProjectCategoryView StatusLast Update
0012567mantisbtldappublic2011-08-05 02:31
Reportershawkris Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
PlatformWin32OSServer 2003OS VersionSP2
Product Version1.2.3 
Summary0012567: Updating LDAP user overwrites email address and real name until next login
Description

When saving an update to a user's information, such as access level, their email address and real name are ovewritten in the MySQL database. Also, no email notification is sent to that user about their account change.

Steps To Reproduce

Login with a user via LDAP
Edit their access level from manage_user_edit_page.php and save
Check in MySQL database that email and real name fields are now blank

Additional Information

manage_user_update.php doesn't check that user is LDAP so the page isn't sent updated values for email and real name.

$f_email and $f_realname are therefor blank. As a workaround, I added the following code to get the correct values from LDAP before the database update:

if ( config_get( 'use_ldap_realname' ) == ON ) {
$c_email = user_get_email( $f_user_id );
$f_email = $c_email;
$c_realname = user_get_realname( $f_user_id );
}

TagsNo tags attached.

Relationships

duplicate of 0011351 closeddhx User Real Name and E-Mail values deleted 

Activities

dregad

dregad

2010-11-26 11:04

developer   ~0027495

Known issue 0011351, already fixed in 1.2.x

shawkris

shawkris

2010-11-26 11:53

reporter   ~0027497

Is the fix in a released version?

atrol

atrol

2010-11-27 10:05

developer   ~0027498

The fix will be part of the next version 1.2.4
You can use a nightly build until this version will be released
http://www.mantisbt.org/builds/