From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18626 invoked from network); 15 Jun 2023 07:40:57 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 15 Jun 2023 07:40:57 -0000 Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 3aba920e; Thu, 15 Jun 2023 07:40:39 +0000 (UTC) Return-Path: Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [2a00:1450:4864:20::336]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id ca0d5d8f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 15 Jun 2023 07:40:37 +0000 (UTC) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f78a32266bso16443845e9.3 for ; Thu, 15 Jun 2023 00:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20221208; t=1686814837; x=1689406837; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=oeN9XTQ/R2xujF2ekTeaWNowzbisQucmlE5Sd5hN3qc=; b=Mwj4Tr99rK7pmfiK9No1qUB6eu9u5U4AGEyMTarDQE98iEQvy+7SYMkE9/xQncBqLZ OaQopUin4ZTOrPJKtdwwll8BE6WgFY2MTv75yhez4TuxjqpYXUDOpLSEgYp+W96Mn7gZ ZWSnrqIy97DDXZf6NzsRFkdhACVqR41IJuOVhEekf1HKYTyva5JrpZ81wjkAYOGpcTRl QG5Ujy6n89v5me+acI6KWPluJb/O4RyI0GYbOR9zfRPEVsMbGS/X8K2iCuIu7NxZc8M7 hMzhML3ew3B4JKZjSXz9YO6ORh7/UUXniRe6v9Py3JK8AUwvxLb4IGbzCm9itT5cJkxb YqXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686814837; x=1689406837; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oeN9XTQ/R2xujF2ekTeaWNowzbisQucmlE5Sd5hN3qc=; b=LJFqiLCOHjRDqGwtao3D/xKjyia7ufO1VwQulEvn9SDOp0rDhsu3e1rzSu42qR2sYl sTC2nIIw08MEviQgzYZwWvWKqCyoqJUnOCIysWUao8RJ/WLY7S19QhqgaEIrAnhbeM5a lbbfzV3GIj3sSDyZ02jlXDBySzGFjfMGv2ymCNlZwR6OYPWAuF+XMQ+6e8F2yvGsd7fw NR6dVEbnqddSKhUszpoB9+L/GvkjLRRM0mJe5uVPUQdMpFyIM9QvoQwgDay52dSGHAh9 cxcdSgysx96RiuMq6j1FpV6CnV6bS44vgqlcgT6zerrLbyTv5I5C71Je4JiO1Vyq+0X2 Zn6A== X-Gm-Message-State: AC+VfDylPB+DZuFrIjlCt/zZsrLldjxC2l5nSZucfRhRr7GN4tnxC2z7 OcM09bkALNWlgic5y3ug/5JKPLVQJyM= X-Google-Smtp-Source: ACHHUZ7lZd0jw2978mPXqNNelHb0lQaaK9cWmMm9YSb7QQ+wIvgx8nFUrI987c5TmTKF6pVqcb0kyg== X-Received: by 2002:a7b:cc84:0:b0:3f7:3545:4630 with SMTP id p4-20020a7bcc84000000b003f735454630mr14143262wma.20.1686814836505; Thu, 15 Jun 2023 00:40:36 -0700 (PDT) Return-Path: Received: from ?IPV6:2001:9e8:6409:6000:f0ce:f7b5:69b3:cab4? ([2001:9e8:6409:6000:f0ce:f7b5:69b3:cab4]) by smtp.gmail.com with ESMTPSA id h4-20020adffa84000000b0030647d1f34bsm20162853wrr.1.2023.06.15.00.40.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jun 2023 00:40:36 -0700 (PDT) From: Yazar Strulik X-Google-Original-From: Yazar Strulik Message-ID: Date: Thu, 15 Jun 2023 09:40:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: cgit@lists.zx2c4.com Subject: cgit simple-authentication.lua problem Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" Hi cgit-people, I need some help with getting the simple-authentication.lua running. I'm using gitolite as my git base with cgit as my front-end and apache2 as the webserver. The main cgit configuration works but it cant interpret the .lua files when using the authentication-filters by adding following line to the cgitrc: ``` auth-filter=/usr/lib/cgit/filters/simple-authentication.lua ``` The error I get from apache2 error.log is: ``` AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 1: : /usr/lib/cgit/cgit.cgi AH01215: --: not found: /usr/lib/cgit/cgit.cgi AH01215: : /usr/lib/cgit/cgit.cgi AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 2: --: not found: /usr/lib/cgit/cgit.cgi AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 3: --: not found: /usr/lib/cgit/cgit.cgi AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 4: --: not found: /usr/lib/cgit/cgit.cgi AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 6: Syntax error: newline unexpected: /usr/lib/cgit/cgit.cgi ``` Which seems from "--: not found" as if he is trying to execute the lua comments at the start of simple-authentication.lua. I enabled the cgi and lua mods for apache (with a2enmod) and apt installed luajit, lua-posix and luaossl. I'm not really sure how to fix this problem but maybe someone of you knows how to fix it, since problems on that are rare on the internet. Greetings, Yaz