This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function index($info) | |
//function index($info, $reason) | |
{ | |
// Load dependencies | |
//------------------ | |
$this->load->library('content_filter/DansGuardian'); | |
$this->lang->load('content_filter'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = ('Imam Omar Mochtar', ('iomarmochtar@gmail.com', 'omar@jabetto.com')) | |
from com.zimbra.common.soap import AccountConstants, AdminConstants | |
from com.zimbra.cs.account import Provisioning | |
from com.zimbra.cs.account.soap import SoapProvisioning | |
from com.zimbra.client import ZMailbox | |
from com.zimbra.common.account.Key import AccountBy | |
KBYTES = 1024 | |
MBYTES = 1024*1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on: https://wiki.zimbra.com/wiki/Get_all_user%27s_mailbox_size_from_CLI | |
all_accounts=`zmprov -l gaa` | |
for account in $all_accounts; do | |
mbox_size=`zmmailbox -z -m $account gms` | |
echo "Mailbox size of $account = $mbox_size" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = ('Imam Omar Mochtar', ('omar@jabetto.com', 'iomarmochtar@gmail.com')) | |
__version__ = (0 ,4) | |
""" | |
Dokumentasi zimbra soap berdasarkan versinyas | |
http://wiki.zimbra.com/wiki/SOAP_API_Reference_Material_Beginning_with_ZCS_8.0 | |
""" | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom password policy validator for ClearOS (6) | |
* | |
* @author Imam Omar Mochtar <iomarmochtar@gmail.com> | |
*/ | |
namespace clearos\apps\users; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// list of weak password list that will be used for Custom_Password_Validator.php | |
// you may add some more to prevent user using following weak password | |
return array( | |
'password', | |
'password1', | |
'password12', | |
'password123', | |
'password1234', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// password policy that will be used for Custom_Password_Validator.php | |
define('POLICY_MAX_LENGTH', 0); | |
define('POLICY_MIN_LENGTH', 5); | |
define('POLICY_MIN_UPPERCASE', 1); | |
define('POLICY_MIN_NUMERIC', 1); | |
define('POLICY_MIN_PUNCTUATION', 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/clearos/sandbox/usr/bin/php | |
<?php | |
/** | |
* Scan user weak password based on lists for ClearOS 6 and using OpenLDAP as directory server | |
* @author Imam Omar Mochtar <iomarmochtar@gmail.com> | |
**/ | |
//error_reporting(-1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import django | |
from django.template import Template, Context | |
from django.conf import settings | |
# optional if you just render str instead of template file | |
from django.template.loader import get_template | |
settings.configure(TEMPLATES=[{ | |
'BACKEND': 'django.template.backends.django.DjangoTemplates', | |
# if you want to render using template file | |
'DIRS': ['/tmp/template_dirs'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemon off; | |
worker_processes 1; | |
user root; | |
error_log /opt/mailman3/var/logs/nginx-error.log; | |
pid /opt/mailman3/var/logs/nginx.pid; |
OlderNewer