Changeset 587
- Timestamp:
- 01/08/09 16:38:59 (15 years ago)
- Location:
- trunk/expressoAdmin1_2/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.bocomputers.inc.php
r493 r587 87 87 return false; 88 88 } 89 $computer_info['samba NTPassword'] = exec('/home/expressolivre/mkntpwd -L '.$_POST['computer_password']);90 $computer_info['samba LMPassword'] = exec('/home/expressolivre/mkntpwd -N '.$_POST['computer_password']);89 $computer_info['sambaLMPassword'] = exec('/home/expressolivre/mkntpwd -L "' . $_POST['computer_password']. '"'); 90 $computer_info['sambaNTPassword'] = exec('/home/expressolivre/mkntpwd -N "' . $_POST['computer_password']. '"'); 91 91 } 92 92 … … 153 153 if ($_POST['computer_password'] != '') 154 154 { 155 $computer_mod_replace['sambaNTPassword'] = exec('/home/expressolivre/mkntpwd -L '.$_POST['computer_password']);156 $computer_mod_replace['sambaLMPassword'] = exec('/home/expressolivre/mkntpwd -N '.$_POST['computer_password']);155 $computer_mod_replace['sambaNTPassword'] = exec('/home/expressolivre/mkntpwd -L "'.$_POST['computer_password'] . '"'); 156 $computer_mod_replace['sambaLMPassword'] = exec('/home/expressolivre/mkntpwd -N "'.$_POST['computer_password'] . '"'); 157 157 } 158 158 -
trunk/expressoAdmin1_2/inc/class.group.inc.php
r438 r587 121 121 $return['msg'] .= lang("It was not possible create the group because the LDAP schemas are not update") . "\n" . 122 122 lang("The administrator must update the directory /etc/ldap/schema/ and re-start LDAP") . "\n" . 123 lang("A update version of thisfiles can be found here") . ":\n" .123 lang("A updated version of these files can be found here") . ":\n" . 124 124 "www.expressolivre.org -> Downloads -> schema.tgz"; 125 125 } … … 226 226 $return['msg'] .= lang("It was not possible create the group because the LDAP schemas are not update") . "\n" . 227 227 lang("The administrator must update the directory /etc/ldap/schema/ and re-start LDAP") . "\n" . 228 lang("A update version of thisfiles can be found here") . ":\n" .228 lang("A updated version of these files can be found here") . ":\n" . 229 229 "www.expressolivre.org -> Downloads -> schema.tgz"; 230 230 } … … 256 256 if (($this->current_config['expressoAdmin_samba_support'] == 'true') && (!$old_values['sambaGroup']) && ($new_values['use_attrs_samba'] == 'on')) 257 257 { 258 if (!is_file('/home/expressolivre/mkntpwd')) 258 $ldap_add['objectClass'][] = 'sambaGroupMapping'; 259 $ldap_add['sambagrouptype'] = '2'; 260 $ldap_add['sambasid'] = $new_values['sambasid'] . '-' . ((2 * $new_values['gidnumber'])+1001); 261 262 $result = $this->ldap_functions->add_user_attributes($dn, $ldap_add); 263 if (!$result['status']) 259 264 { 260 265 $return['status'] = false; 261 $return['msg'] .= lang("The file /home/expressolivre/mkntpwd does not exist") . ".\n"; 262 $return['msg'] .= lang("It is necessery to create samba passwords") . ".\n"; 263 $return['msg'] .= lang("Inform your system administrator about this") . ".\n"; 266 $return['msg'] .= $result['msg']; 264 267 } 265 268 else 266 { 267 $ldap_add['objectClass'][] = 'sambaGroupMapping'; 268 $ldap_add['sambagrouptype'] = '2'; 269 $ldap_add['sambasid'] = $new_values['sambasid'] . '-' . ((2 * $new_values['gidnumber'])+1001); 270 271 $result = $this->ldap_functions->add_user_attributes($dn, $ldap_add); 272 if (!$result['status']) 273 { 274 $return['status'] = false; 275 $return['msg'] .= $result['msg']; 276 } 277 else 278 $this->db_functions->write_log('Added samba attibutes to group',$dn); 279 } 269 $this->db_functions->write_log('Added samba attibutes to group',$dn); 280 270 } 281 271 … … 306 296 $return['msg'] .= lang("It was not possible create the group because the LDAP schemas are not update") . "\n" . 307 297 lang("The administrator must update the directory /etc/ldap/schema/ and re-start LDAP") . "\n" . 308 lang("A update version of thisfiles can be found here") . ":\n" .298 lang("A updated version of these files can be found here") . ":\n" . 309 299 "www.expressolivre.org -> Downloads -> schema.tgz"; 310 300 }
Note: See TracChangeset
for help on using the changeset viewer.