Changeset 27 for trunk/expressoAdmin1_2/inc/class.bocomputers.inc.php
- Timestamp:
- 05/25/07 17:50:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.bocomputers.inc.php
r2 r27 59 59 $computer_info['sambaPwdLastSet'] = strtotime("now"); 60 60 $computer_info['sambaPwdMustChange'] = '2147483647'; 61 $computer_info['samba SID'] = $current_config['expressoAdmin_sambaSID'] . '-' . ((2 *$id)+1000);61 $computer_info['sambasid'] = $_POST['sambasid'] . '-' . ((2 * (int)$id)+1000); 62 62 63 63 /* Trust Account */ … … 140 140 $computer_mod_replace['sambaNTPassword'] = exec('/home/expressolivre/mkntpwd -L '.$_POST['computer_password']); 141 141 } 142 143 if ($_POST['sambasid'] != $_POST['old_sambasid']) 144 { 145 $computer_mod_replace['sambasid'] = $_POST['sambasid'] . '-' . ((2 * (int)$_POST['uidnumber'])+1000); 146 } 147 142 148 143 149 if (count($computer_mod_add) != 0)
Note: See TracChangeset
for help on using the changeset viewer.