Content update and CGI fix.
This commit is contained in:
parent
d5244ca8ed
commit
beb1f38121
4 changed files with 8 additions and 16 deletions
1
Gemfile
1
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'
|
||||
|
|
|
|||
|
|
@ -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... ;)
|
||||
|
||||
<span style="color:red;">HELP NEEDED!</span> 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"}.
|
||||
|
||||
|
|
|
|||
2
cgi
2
cgi
|
|
@ -1 +1 @@
|
|||
Subproject commit 46d655ba11a07222c19e836f3b3688b3bd994913
|
||||
Subproject commit 5105aee437f0b4e11f140e09b9f946d9b5df8607
|
||||
|
|
@ -39,11 +39,11 @@ tags:
|
|||
<li><a href="https://git.xw3.org/xw3/lib/" target="_blank" class="git">lib</a> - The libs from the xw3 project</li>
|
||||
</ul>
|
||||
|
||||
<h2>Other projects</h2>
|
||||
<h2>External projects</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="https://git.xw3.org/xw3/checkpw/" target="_blank" class="git">checkpw</a> - A program that checks the validity of a users password on a UNIX/PAM-based system</li>
|
||||
<li><a href="https://git.xw3.org/xw3/checkpwrule/" target="_blank" class="git">checkpwrule</a> - A program that checks if an input string validates a password rule</li>
|
||||
<li><a href="https://git.xw3.org/hanez/checkpw/" target="_blank" class="git">checkpw</a> - A program that checks the validity of a users password on a UNIX/PAM-based system</li>
|
||||
<li><a href="https://git.xw3.org/hanez/checkpwrule/" target="_blank" class="git">checkpwrule</a> - A program that checks if an input string validates a password rule</li>
|
||||
<!--<li><a href="https://git.xw3.org/xw3/firegate/" target="_blank" class="git">firegate</a> - A simple TUI program for managing your firewall/gateway</li>-->
|
||||
</ul>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue