EnglishFrenchSpanish

OnWorks favicon

heimdal-history - Online in the Cloud

Run heimdal-history in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command heimdal-history that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


heimdal-history - Password history via Heimdal external strength checking

SYNOPSIS


heimdal-history [-hmq] [-b target-time] [-d database]
[-S length-stats-db] [-s strength-program] [principal]

DESCRIPTION


heimdal-history is an implementation of password history via the Heimdal external password
strength checking interface. It stores separate history for each principal, hashed using
Crypt::PBKDF2 with randomly-generated salt. (The randomness is from a weak pseudorandom
number generator, not strongly random.)

Password history is stored in a BerkeleyDB DB_HASH file. The key is the principal. The
value is a JSON array of objects, each of which has two keys. "timestamp" contains the
time when the history entry was added (in POSIX seconds since UNIX epoch), and "hash"
contains the hash of a previously-used password in the Crypt::PBKDF2 LDAP-compatible
format. Passwords are hashed using PBKDF2 (from PKCS#5) with SHA-256 as the underlying
hash function using a number of rounds configured in this script. See Crypt::PBKDF2 for
more information.

heimdal-history also checks password strength before checking history. It does so by
invoking another program that also uses the Heimdal external password strength checking
interface. By default, it runs /usr/bin/heimdal-strength. Only if that program approves
the password does it hash it and check history.

As with any implementation of the Heimdal external password strength checking protocol,
heimdal-history expects, on standard input:

principal: <principal>
new-password: <password>
end

(with no leading whitespace). <principal> is the principal changing its password (passed
to the other password strength checking program but otherwise unused here), and <password>
is the new password. There must be exactly one space after the colon. Any subsequent
spaces are taken to be part of the principal or password.

If invoked as root, heimdal-history will run the external strength checking program as
user "nobody" and group "nogroup", and will check and write to the history database as
user "_history" and group "_history". These users must exist on the system if it is run
as root.

The result of each password check will be logged to syslog (priority LOG_INFO, facility
LOG_AUTH). Each log line will be a set of key/value pairs in the format "key=value". The
keys are:

action
The action performed (currently always "check").

principal
The principal for which a password was checked.

error
An internal error message that did not stop the history check, but which may indicate
that something is wrong with the history database (such as corrupted entries or
invalid hashes). If this key is present, neither "result" nor "reason" will be
present. There will be a subsequent log message from the same invocation giving the
final result of the history check (assuming heimdal-history doesn't exit with a fatal
error).

result
Either "accepted" or "rejected".

reason
If the password was rejected, the reason for the rejection.

The value will be surrounded with double quotes if it contains a double quote or space.
Any double quotes in the value will be doubled, so """ becomes "".

OPTIONS


-b target-time, --benchmark=target-time
Do not do a password history check. Instead, benchmark the hash algorithm with
various possible iteration counts and find an iteration count that results in target-
time seconds of computation time required to hash a password (which should be a real
number). A result will be considered acceptable if it is within 0.005 seconds of the
target time. The results will be printed to standard output and then heimdal-history
will exit successfully.

-d database, --database=database
Use database as the history database file instead of the default
(/var/lib/heimdal-history/history.db). Primarily used for testing, since Heimdal
won't pass this argument.

-h, --help
Print a short usage message and exit.

-m, --manual, --man
Display this manual and exit.

-q, --quiet
Suppress logging to syslog and only return the results on standard output and standard
error. Primarily used for testing, since Heimdal won't pass this argument.

-S length-stats-db, --stats=length-stats-db
Use length-stats-db as the database file for password length statistics instead of the
default (/var/lib/heimdal-history/lengths.db). Primarily used for testing, since
Heimdal won't pass this argument.

-s strength-program, --strength=strength-program
Run strength-program as the external strength-checking program instead of the default
(/usr/bin/heimdal-strength). Primarily used for testing, since Heimdal won't pass
this argument.

RETURN STATUS


On approval of the password, heimdal-history will print "APPROVED" and a newline to
standard output and exit with status 0.

If the password is rejected by the strength checking program or if it (or a version with a
single character removed) matches one of the hashes stored in the password history,
heimdal-history will print the reason for rejection to standard error and exit with status
0.

On any internal error, heimdal-history will print the error to standard error and exit
with a non-zero status.

Use heimdal-history online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Alt-F
    Alt-F
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • 2
    usm
    usm
    Usm is a unified slackware package
    manager that handles automatic
    dependency resolution. It unifies
    various package repositories including
    slackware, slacky, p...
    Download usm
  • 3
    Chart.js
    Chart.js
    Chart.js is a Javascript library that
    allows designers and developers to draw
    all kinds of charts using the HTML5
    canvas element. Chart js offers a great
    array ...
    Download Chart.js
  • 4
    iReport-Designer for JasperReports
    iReport-Designer for JasperReports
    NOTE: iReport/Jaspersoft Studio Support
    Announcement: As of version 5.5.0,
    Jaspersoft Studio will be the official
    design client for JasperReports. iReport
    will...
    Download iReport-Designer for JasperReports
  • 5
    PostInstallerF
    PostInstallerF
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 6
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • More »

Linux commands

Ad