Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stephdl
Created February 11, 2021 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephdl/109d4cbbc34fd3d8dcdc56218594599d to your computer and use it in GitHub Desktop.
Save stephdl/109d4cbbc34fd3d8dcdc56218594599d to your computer and use it in GitHub Desktop.
samba AD config-site.php
<?php
/*
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
*/
define('SITE_NAME_CONST', 'SITE_NAME');
$config[SITE_NAME_CONST] = 'piler.nethservertest.org';
$config['SITE_URL'] = 'https://piler.nethservertest.org/';
$config['SMTP_DOMAIN'] = $config[SITE_NAME_CONST];
$config['SMTP_FROMADDR'] = 'no-reply@' . $config[SITE_NAME_CONST];
$config['ADMIN_EMAIL'] = 'admin@' . $config[SITE_NAME_CONST];
$config['DB_PASSWORD'] = 'MYSQL_PASSWORD';
$config['DECRYPT_BINARY'] = '/usr/bin/pilerget';
$config['DECRYPT_ATTACHMENT_BINARY'] = '/usr/bin/pileraget';
$config['PILER_BINARY'] = '/usr/sbin/piler';
$config['DB_HOSTNAME'] = 'mysql';
$config['DB_PASSWORD'] = 'E6DIaKPyt_JBUCB9';
$config['ENABLE_MEMCACHED'] = 1;
$memcached_server = ['memcached', 11211];
$config['ENABLE_LDAP_AUTH'] = 1;
$config['LDAP_HOST'] = 'ldaps://nsdc-ns7loc13.ad.nethservertest.org';
$config['LDAP_HELPER_DN'] = 'ldapservice@AD.NETHSERVERTEST.ORG';
$config['LDAP_HELPER_PASSWORD'] = 'jcTCw_AE2hR5bYkQ';
$config['LDAP_ACCOUNT_OBJECTCLASS'] = 'user';
$config['LDAP_MAIL_ATTR'] = 'userPrincipalName';
$config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'group';
$config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'member';
$config['LDAP_BASE_DN'] = 'dc=ad,dc=nethservertest,dc=org';
// admin@nethservertest.org is admin of piler
$config['LDAP_ADMIN_MEMBER_DN'] = 'CN=admin,CN=Users,DC=ad,DC=nethservertest,DC=org';
// members of PilerAuditor are auditors
$config['LDAP_AUDITOR_MEMBER_DN'] = 'CN=PilerAuditor,CN=Users,DC=ad,DC=nethservertest,DC=org';
$config['RESTORE_OVER_IMAP'] = 1;
$config['IMAP_RESTORE_FOLDER_INBOX'] = 'INBOX';
$config['IMAP_RESTORE_FOLDER_SENT'] = 'Sent';
$config['IMAP_HOST'] = 'ns7loc13.nethservertest.org';
$config['IMAP_PORT'] = 993;
$config['IMAP_SSL'] = true;
$config['CAPTCHA_FAILED_LOGIN_COUNT'] = 3;
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment