Changeset 269


Ignore:
Timestamp:
Jul 19, 2009, 10:49:42 AM (13 years ago)
Author:
sebas
Message:

los dominios con sub-dominios vuelven a funcionar con los grupos secundarios + reorganisacion + documentacion de las variables"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/alternc/patches/class/m_mail_egw.php

    r200 r269  
    5151                        $adminuser = $GLOBALS["L_EGW_ADMINUSER"];
    5252                        $adminclave = $GLOBALS["L_EGW_ADMINCLAVE"];
    53                         // $account - we use the email address which is extracted from the DB
    54                         // $firstname - we use the left side of the email adress, which will be extracted from the database
     53                        $firstname = $mail;                             // the left side of the email
    5554                        $lastname= "-";                                 // we have a generic lastname
    56                         // $passwd will be generated with some magic
    57                         // $email you know that, from the db
     55                        $email = $account = $mail ."@" .$dom;           // account and email are the same
    5856                        $expires= "never";
    5957                        $canchangepw= "yes";
    6058                        $anonuser= "no";
    61                         $primarygroup = $domain[$size-3];
    62                         $secondarygroup = join(',', array_slice($domain,0,-3));
    63                         $lastname = "-";
    64                         $firstname = $mail;
    65                         $email = $account = $mail ."@" .$dom;
    66                         $homedir = "/home/". $mail ."_" .$dom;
    67                         $loginshell = "/bin/bash";
     59                        $primarygroup = $domain[$size-3];               // domains in .ar starts at the third level
     60                        $secondarygroup = $domain[$size-4];             // the sub-domain is used as a secondary group
     61                        $homedir = "/home/". $mail ."_" .$dom;          // everyone can have a home   
     62                        $loginshell = "/bin/bash";                      // everyone can have a shell
    6863
    6964                        $go= $admincli ." " .$command ." " .$adminuser ."," .$adminclave .",\"" .$account ."\"," .$firstname ."," .$lastname ."," .$pass .",\"" .$email ."\"," .$expires ."," .$canchangepw ."," .$anonuser ."," .$primarygroup ;
     
    105100                        $adminuser = $GLOBALS["L_EGW_ADMINUSER"];
    106101                        $adminclave = $GLOBALS["L_EGW_ADMINCLAVE"];
    107                         // $account - we use the email address which is extracted from the DB
    108102                        $email = $account = $mail ."@" .$dom;
    109103
Note: See TracChangeset for help on using the changeset viewer.