Changeset 587


Ignore:
Timestamp:
01/08/09 16:38:59 (15 years ago)
Author:
niltonneto
Message:

Corrigido problemas relacionados ao samba (conta de trust).
Corrigido também algumas traduções.

Location:
trunk/expressoAdmin1_2/inc
Files:
2 edited

Legend:

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

    r493 r587  
    8787                                        return false; 
    8888                                } 
    89                                 $computer_info['sambaNTPassword']       = exec('/home/expressolivre/mkntpwd -L '.$_POST['computer_password']); 
    90                                 $computer_info['sambaLMPassword']       = 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']. '"'); 
    9191                        } 
    9292                         
     
    153153                        if ($_POST['computer_password'] != '') 
    154154                        { 
    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'] . '"'); 
    157157                        } 
    158158 
  • trunk/expressoAdmin1_2/inc/class.group.inc.php

    r438 r587  
    121121                                        $return['msg'] .= lang("It was not possible create the group because the LDAP schemas are not update") . "\n" . 
    122122                                                                          lang("The administrator must update the directory /etc/ldap/schema/ and re-start LDAP") . "\n" . 
    123                                                                           lang("A update version of this files can be found here") . ":\n" . 
     123                                                                          lang("A updated version of these files can be found here") . ":\n" . 
    124124                                                                                "www.expressolivre.org -> Downloads -> schema.tgz"; 
    125125                                } 
     
    226226                                                $return['msg'] .= lang("It was not possible create the group because the LDAP schemas are not update") . "\n" . 
    227227                                                                                  lang("The administrator must update the directory /etc/ldap/schema/ and re-start LDAP") . "\n" . 
    228                                                                                   lang("A update version of this files can be found here") . ":\n" . 
     228                                                                                  lang("A updated version of these files can be found here") . ":\n" . 
    229229                                                                                        "www.expressolivre.org -> Downloads -> schema.tgz"; 
    230230                                        } 
     
    256256                        if (($this->current_config['expressoAdmin_samba_support'] == 'true') && (!$old_values['sambaGroup']) && ($new_values['use_attrs_samba'] == 'on')) 
    257257                        { 
    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']) 
    259264                                { 
    260265                                        $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']; 
    264267                                } 
    265268                                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); 
    280270                        } 
    281271                         
     
    306296                                                $return['msg'] .= lang("It was not possible create the group because the LDAP schemas are not update") . "\n" . 
    307297                                                                                  lang("The administrator must update the directory /etc/ldap/schema/ and re-start LDAP") . "\n" . 
    308                                                                                   lang("A update version of this files can be found here") . ":\n" . 
     298                                                                                  lang("A updated version of these files can be found here") . ":\n" . 
    309299                                                                                           "www.expressolivre.org -> Downloads -> schema.tgz"; 
    310300                                        }                                                                        
Note: See TracChangeset for help on using the changeset viewer.