[1237] in Hesiod
[Hesiod] Announce: Hesutils, the Hesiod utilities
daemon@ATHENA.MIT.EDU (JFLF)
Wed Feb 24 14:29:04 2021
To: <hesiod@mit.edu>
From: JFLF <jflf-gitlab@outlook.com>
Message-ID: <VI1PR04MB71012F159D7C80C8EA1C53F7819F9@VI1PR04MB7101.eurprd04.prod.outlook.com>
Date: Wed, 24 Feb 2021 20:28:05 +0100
Content-Language: en-US
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: hesiod-bounces@mit.edu
Hello all,
This has to be the lowest-volume mailing list to which I am subscribed. :)
In case anyone is reading, I would like to announce the public availability of a little project of mine: the Hesutils.
It is available there:
https://gitlab.com/jflf/hesutils
This project evolved from short Bash scripts that I wrote a few years ago for a Hesiod development. Over the years I worked on it on and off, and it's getting to the point where I think that it could be useful to other people. So I'm making it available.
In a nutshell, the main script creates Hesiod records for a subset of the regular users and groups already existing on the current system. It is a database translation tool. It can produce output in various formats for different DNS servers, and has quite a few parameters to control what is written. In particular there is a rather complex group of options to control FILSYS records, with home path rewriting, external file or command, etc. It's probably too much for anyone remotely sane, but I had fun writing it.
The code should be reasonably reliable. The core operations (generating the PASSWD, UID, GROUP, GID records) have been working for years, and used on a production system. There might still be bugs here and there for some combinations of options. I would be grateful if you could report any issue that you find.
Any advice or suggestion for improvement is also welcome.
I am currently writing the documentation. There is already enough in the "docs" subdirectory to get going, if you are familiar with Hesiod. At the moment not every link of the index points to a valid file, but eventually I'll fill that in.
There is no release tag yet. I'll tag once the doc will be in shape, and I'll have many more tests.
For now the easiest way to try is:
git clone https://gitlab.com/jflf/hesutils
cd hesutils
# edit the configuration file hesutils.conf to your taste
./src/hesgen -c hesutils.conf
It won't modify or damage anything, and the records are printed on stdout.
Note: the following packages are required:
bash (>= 4.0)
awk
sed
column
Thanks!
JF
_______________________________________________
Hesiod@mit.edu
http://mailman.mit.edu/mailman/listinfo/hesiod