예제 #1
0
if(preg_match("#--verbose#",implode(" ",$argv))){$GLOBALS["VERBOSE"]=true;}
if(preg_match("#--force#",implode(" ",$argv))){$GLOBALS["FORCE"]=true;}

if($argv[1]=='--users'){CountDeUsers();die();}
if($argv[1]=='--fix-etc-hosts'){fixEtcHosts();die();}
if($argv[1]=='--sslbridge'){sslbridgre();die();}
if($argv[1]=='--ads-destroy'){ads_destroy();die();}
if($argv[1]=='--ads'){activedirectory();kinit();die();}
if($argv[1]=='--ping-ads'){activedirectory_ping();die();}
if($argv[1]=='--logon-scripts'){LogonScripts();die();}
if($argv[1]=='--administrator'){administrator_update();die();}
if($argv[1]=='--loglevel'){set_log_level($argv[2]);die();}
if($argv[1]=='--quotas-recheck'){quotasrecheck();die();}
if($argv[1]=='--quotas-recheck'){quotasrecheck();die();}
if($argv[1]=='--ldap-groups'){ldap_groups();die();}




if($argv[1]=='--help'){help_output();die();}

function help_output(){
	echo "--users...........: Save users number in cache\n";
	echo "--fix-etc-hosts...: Fix hostname in /etc/hosts\n";
	echo "--ads-destroy.....: Destroy Active directory connection\n";
	echo "--ads.............: Create Active directory connection\n";
	echo "--ping-ads........: refresh Active Directory connection\n";
	echo "--logon-scripts...: Perform logon scripts installation\n";
	echo "--administrator...: update administrator informations\n";
	echo "--loglevel........: Set log level (1-10)\n";
예제 #2
0
    die;
}
if ($argv[1] == '--loglevel') {
    set_log_level($argv[2]);
    die;
}
if ($argv[1] == '--quotas-recheck') {
    quotasrecheck();
    die;
}
if ($argv[1] == '--quotas-recheck') {
    quotasrecheck();
    die;
}
if ($argv[1] == '--ldap-groups') {
    ldap_groups();
    die;
}
if ($argv[1] == '--testjoin') {
    test_join();
    die;
}
if ($argv[1] == '--recycles') {
    recycles();
    die;
}
if ($argv[1] == '--trash-restore') {
    recycles_restore();
    die;
}
if ($argv[1] == '--trash-delete') {