sogo.auth_request.template.sh 299 B

12345678
  1. if printf "%s\n" "${ALLOW_ADMIN_EMAIL_LOGIN}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then
  2. echo 'auth_request /sogo-auth-verify;
  3. auth_request_set $user $upstream_http_x_username;
  4. proxy_set_header x-webobjects-remote-user $user;
  5. if ($args ~* (.*)(account=(?!0))(.*)) {
  6. return 401;
  7. }'
  8. fi