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 ); $NO_HTTPS = ((strcasecmp(getenv('NO_HTTPS'),'TRUE') == 0) ? TRUE : FALSE); ### $log_prefix = ""; ### $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; ?>