Ver 1.53:
* html fixes in show_groups.php3
* When reporting sql errors also print the output of da_sql_error
+* When updating ldap user information don't do an update if the new attribute value
+ is '-' (default value)
Ver 1.52:
* Add Reply-Message in conf/user_edit.attrs so that it appears in the user/group edit pages
* Allow the administrator to specify a group in the New User page. Update lib/sql/create_user.php3 to add
if ($ds){
$r = @ldap_bind($ds,"$config[ldap_binddn]",$config[ldap_bindpw]);
if ($r){
- if ($Fcn != '' && $Fcn != $cn)
+ if ($Fcn != '' && $Fcn != '-' && $Fcn != $cn)
$mod['cn'] = $Fcn;
- if ($Fmail != '' && $Fmail != $mail)
+ if ($Fmail != '' && $Fmail != '-' && $Fmail != $mail)
$mod['mail'] = $Fmail;
- if ($Fou != '' && $Fou != $ou)
+ if ($Fou != '' && $Fou != '-' && $Fou != $ou)
$mod['ou'] = $Fou;
- if ($Ftelephonenumber != '' && $Ftelephonenumber != $telephonenumber)
+ if ($Ftelephonenumber != '' && $Ftelephonenumber != '-' && $Ftelephonenumber != $telephonenumber)
$mod['telephonenumber'] = $Ftelephonenumber;
- if ($Fhomephone != '' && $Fhomephone != $homephone)
+ if ($Fhomephone != '' && $Fhomephone != '-' && $Fhomephone != $homephone)
$mod['homephone'] = $Fhomephone;
if ($dn != ''){
@ldap_mod_replace($ds,$dn,$mod);