From beb1f38121a9ed21793439a67fbf18a8d6122ca6 Mon Sep 17 00:00:00 2001 From: hanez Date: Wed, 28 May 2025 23:53:26 +0200 Subject: [PATCH] Content update and CGI fix. --- Gemfile | 1 + _posts/2024-09-25-checkpw.md | 15 +++------------ cgi | 2 +- projects/projects.html | 6 +++--- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/Gemfile b/Gemfile index c6fd047..5dfe501 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ source "https://rubygems.org" gem 'addressable' gem 'colorator' gem 'concurrent-ruby' +gem 'csv' gem 'em-websocket' gem 'i18n' gem 'jekyll' diff --git a/_posts/2024-09-25-checkpw.md b/_posts/2024-09-25-checkpw.md index b4895ce..5e73461 100644 --- a/_posts/2024-09-25-checkpw.md +++ b/_posts/2024-09-25-checkpw.md @@ -4,8 +4,9 @@ published: true author: hanez title: /checkpw/ date: 2024-09-25 -date_updated: 2024-11-26 +date_updated: 2025-05-28 tags: +- checkpw - cgi - static - auth @@ -17,15 +18,5 @@ tags: - checkpassword --- -I created a small C program to authenticate against a [UNIX](https://en.wikipedia.org/wiki/Unix){:class="ext" target="_blank"}/[Pluggable authentication module (PAM)](https://en.wikipedia.org/wiki/Pluggable_authentication_module){:class="ext" target="_blank"} called [checkpw](https://git.xw3.org/xw3/checkpw){:class="git" target="_blank"}. This program is only for verifiying a user's password, that is registered in /etc/passwd using /etc/shadow, or whatever PAM is configured to use. - -The program returns 0 on success, 1 otherwise. - -With this program, it will be possible to authenticate an xw3 application user against the system's user database. - -Currently only tested on [Linux](https://kernel.org/){:class="ext" target="_blank"}, but it should work on [AIX](https://en.wikipedia.org/wiki/IBM_AIX){:class="ext" target="_blank"}, [DragonFly BSD](https://www.dragonflybsd.org/){:class="ext" target="_blank"}, [FreeBSD](https://www.freebsd.org/){:class="ext" target="_blank"}, [HP-UX](https://en.wikipedia.org/wiki/HP-UX){:class="ext" target="_blank"}, [macOS](https://en.wikipedia.org/wiki/MacOS){:class="ext" target="_blank"}, [NetBSD](https://netbsd.org/){:class="ext" target="_blank"} and [Solaris](https://en.wikipedia.org/wiki/Oracle_Solaris){:class="ext" target="_blank"} operating systems too. I will test API compatibility for all OS's listed ~~soon~~ maybe some day... ;) - -HELP NEEDED! I need some people porting or helping me porting this to other OS's than Linux. AFAIK it should compile on listed OS's above and should then work, but I don't know how... :( - -Group permissions will be handled using /etc/group in a seperate program - Maybe just with a small wrapper around the "id" command (not available yet, but it should be easy to implement). +Post moved to [https://hanez.org/2025/05/28/checkpw/](https://hanez.org/2025/05/28/checkpw/){:class="ext" target="_blank"}. diff --git a/cgi b/cgi index 46d655b..5105aee 160000 --- a/cgi +++ b/cgi @@ -1 +1 @@ -Subproject commit 46d655ba11a07222c19e836f3b3688b3bd994913 +Subproject commit 5105aee437f0b4e11f140e09b9f946d9b5df8607 diff --git a/projects/projects.html b/projects/projects.html index 1c1c533..57358f8 100644 --- a/projects/projects.html +++ b/projects/projects.html @@ -39,11 +39,11 @@ tags:
  • lib - The libs from the xw3 project
  • -

    Other projects

    +

    External projects