4 or $SMTP['debug_level'] <0) { $SMTP['debug_level'] = 0; } $EMAIL_DOMAIN = (getenv('EMAIL_DOMAIN') ? getenv('EMAIL_DOMAIN') : Null); $default_email_from_domain = ($EMAIL_DOMAIN ? $EMAIL_DOMAIN : 'ldapusermanger.org'); $EMAIL['from_address'] = (getenv('EMAIL_FROM_ADDRESS') ? getenv('EMAIL_FROM_ADDRESS') : "admin@" . $default_email_from_domain ); $EMAIL['from_name'] = (getenv('EMAIL_FROM_NAME') ? getenv('EMAIL_FROM_NAME') : $SITE_NAME ); if ($SMTP['host'] != "") { $EMAIL_SENDING_ENABLED = TRUE; } else { $EMAIL_SENDING_ENABLED = FALSE; } ### $ACCOUNT_REQUESTS_ENABLED = ((strcasecmp(getenv('ACCOUNT_REQUESTS_ENABLED'),'TRUE') == 0) ? TRUE : FALSE); if (($EMAIL_SENDING_ENABLED == FALSE) && ($ACCOUNT_REQUESTS_ENABLED == TRUE)) { $ACCOUNT_REQUESTS_ENABLED = FALSE; error_log("$log_prefix Config: ACCOUNT_REQUESTS_ENABLED was set to TRUE but SMTP_HOSTNAME wasn't set, so account requesting has been disabled as we can't send out the request email",0); } $ACCOUNT_REQUESTS_EMAIL = (getenv('ACCOUNT_REQUESTS_EMAIL') ? getenv('ACCOUNT_REQUESTS_EMAIL') : $EMAIL['from_address']); ### $NO_HTTPS = ((strcasecmp(getenv('NO_HTTPS'),'TRUE') == 0) ? TRUE : FALSE); ### $errors = ""; if (empty($LDAP['uri'])) { $errors .= "

LDAP_URI isn't set

\n"; } if (empty($LDAP['base_dn'])) { $errors .= "

LDAP_BASE_DN isn't set

\n"; } if (empty($LDAP['admin_bind_dn'])) { $errors .= "

LDAP_ADMIN_BIND_DN isn't set

\n"; } if (empty($LDAP['admin_bind_pwd'])) { $errors .= "

LDAP_ADMIN_BIND_PWD isn't set

\n"; } if (empty($LDAP['admins_group'])) { $errors .= "

LDAP_ADMINS_GROUP isn't set

\n"; } if ($errors != "") { render_header(); print $errors; render_footer(); exit(1); } #POSIX accounts $min_uid = 2000; $min_gid = 2000; ?>