Priority = $mail_priority; $mailer->CharSet = $mail_charset; $mailer->ContentType = $mail_contenttype; $mailer->WordWrap = $mail_wordwrap; $mailer->Sendmail = $mail_sendmailpath; $mailer->Mailer = $mail_protocol; $mailer->SMTPDebug = $mail_smtp_debug; $mailer->Debugoutput = $mail_debug_format; $mailer->Host = $mail_smtp_host; $mailer->Port = $mail_smtp_port; $mailer->SMTPSecure = $mail_smtp_secure; $mailer->SMTPAutoTLS = $mail_smtp_autotls; $mailer->SMTPAuth = $mail_smtp_auth; $mailer->Username = $mail_smtp_user; $mailer->Password = $mail_smtp_pass; $mailer->SMTPKeepAlive = $mail_smtp_keepalive; $mailer->SMTPOptions = $mail_smtp_options; $mailer->Timeout = $mail_smtp_timeout; #============================================================================== # Other default values #============================================================================== if (!isset($ldap_login_attribute)) { $ldap_login_attribute = "uid"; } if (!isset($ldap_fullname_attribute)) { $ldap_fullname_attribute = "cn"; } if (!isset($pwd_forbidden_chars)) { $pwd_forbidden_chars = ""; } if (!isset($hash_options)) { $hash_options = array(); } if (!isset($samba_options)) { $samba_options = array(); } if (!isset($ldap_starttls)) { $ldap_starttls = false; } # Password policy array $pwd_policy_config = array( "pwd_show_policy" => $pwd_show_policy, "pwd_min_length" => $pwd_min_length, "pwd_max_length" => $pwd_max_length, "pwd_min_lower" => $pwd_min_lower, "pwd_min_upper" => $pwd_min_upper, "pwd_min_digit" => $pwd_min_digit, "pwd_min_special" => $pwd_min_special, "pwd_special_chars" => $pwd_special_chars, "pwd_forbidden_chars" => $pwd_forbidden_chars, "pwd_no_reuse" => $pwd_no_reuse, "pwd_diff_last_min_chars" => $pwd_diff_last_min_chars, "pwd_diff_login" => $pwd_diff_login, "pwd_complexity" => $pwd_complexity, "use_pwnedpasswords" => $use_pwnedpasswords, "pwd_no_special_at_ends" => $pwd_no_special_at_ends, "pwd_forbidden_words" => $pwd_forbidden_words, "pwd_forbidden_ldap_fields" => $pwd_forbidden_ldap_fields ); if (!isset($pwd_show_policy_pos)) { $pwd_show_policy_pos = "above"; } if (!$use_restapi) { die("Rest API disabled"); }