Ignore:
Timestamp:
05/25/07 17:50:27 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.bocomputers.inc.php

    r2 r27  
    5959                        $computer_info['sambaPwdLastSet']               = strtotime("now"); 
    6060                        $computer_info['sambaPwdMustChange']    = '2147483647'; 
    61                         $computer_info['sambaSID']                              = $current_config['expressoAdmin_sambaSID'] . '-' . ((2 * $id)+1000); 
     61                        $computer_info['sambasid']                              = $_POST['sambasid'] . '-' . ((2 * (int)$id)+1000); 
    6262                         
    6363                        /* Trust Account */ 
     
    140140                                $computer_mod_replace['sambaNTPassword']        = exec('/home/expressolivre/mkntpwd -L '.$_POST['computer_password']); 
    141141                        } 
     142 
     143                        if ($_POST['sambasid'] != $_POST['old_sambasid']) 
     144                        { 
     145                                $computer_mod_replace['sambasid'] = $_POST['sambasid'] . '-' . ((2 * (int)$_POST['uidnumber'])+1000); 
     146                        } 
     147 
    142148                         
    143149                        if (count($computer_mod_add) != 0) 
Note: See TracChangeset for help on using the changeset viewer.