From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yngve Svendsen To: Milan Zamazal Cc: gnats-devel@sources.redhat.com Subject: GNATS password management Date: Tue, 26 Jun 2001 10:51:00 -0000 Message-id: <5.1.0.14.2.20010626194604.04dcd278@mail.trd.clustra.com> X-SW-Source: 2001-q2/msg00205.html Below is an outline of the two password-management tools I'd like to see implemented for GNATS 4. gnats-pwconv is intended for upgraders from version 3 to version 4, while gnats-pw partially mimics the functionality of Apache's htpasswd tool. What do you all think? Yngve Svendsen gnats-pwconv gnats-pwconv [-mp] infile outfile gnats-pwconv -n[mp] infile Converts the plaintext passwords in the GNATS 3 password file infile and writes the resulting complete version 4 password file to outfile. Infile=outfile should be disallowed. -m, --md5 Use MD5 encryption, i.e. convert passwords to MD5 and add $1$ prefix -n, --nocreate Don't create file; display results on stdout. -d, --crypt Force CRYPT encryption of the passwords (default). -p, --plaintext Do not encrypt the passwords (plaintext). Prefixes existing passwords with $0$ -t, --test Tests which encryption methods are supported by the system -h --help -V --version gnats-pw gnats-pw [-cmdps] passwordfile username accesslevel gnats-pw -n[mdps] username accesslevel Prompts for a password (twice), then inserts or edits the corresponding entry in the specified passwordfile. If the -n option is given, the resulting passwordfile entry is written to stdout instead. -c, --create Create a new file. -n, --noupdate Don't update file; display results on stdout. -m, --md5 Force MD5 encryption of the password, i.e. convert the password to MD5 and add $1$ prefix -d, --crypt Force CRYPT encryption of the password (default). -p, --plaintext Do not encrypt the password (plaintext). Prefixes the entered password with $0$ -h, --help -V, --version