Apache HTTP Server Version 2.4
htdbm
is used to manipulate the DBM format files used to
store usernames and password for basic authentication of HTTP users via
mod_authn_dbm
. See the dbmmanage
documentation for more information about these DBM files.
htdbm
[ -TDBTYPE ]
[ -i ]
[ -c ]
[ -m |
-B |
-d |
-s |
-p ]
[ -C cost ]
[ -t ]
[ -v ]
filename username
htdbm -b
[ -TDBTYPE ]
[ -c ]
[ -m |
-B |
-d |
-s |
-p ]
[ -C cost ]
[ -t ]
[ -v ]
filename username password
htdbm -n
[ -i ]
[ -c ]
[ -m |
-B |
-d |
-s |
-p ]
[ -C cost ]
[ -t ]
[ -v ]
username
htdbm -nb
[ -c ]
[ -m |
-B |
-d |
-s |
-p ]
[ -C cost ]
[ -t ]
[ -v ]
username password
htdbm -v
[ -TDBTYPE ]
[ -i ]
[ -c ]
[ -m |
-B |
-d |
-s |
-p ]
[ -C cost ]
[ -t ]
[ -v ]
filename username
htdbm -vb
[ -TDBTYPE ]
[ -c ]
[ -m |
-B |
-d |
-s |
-p ]
[ -C cost ]
[ -t ]
[ -v ]
filename username password
htdbm -x
[ -TDBTYPE ]
filename username
htdbm -l
[ -TDBTYPE ]
-b
-i
option.-i
-c
-n
option.-n
-c
option.-m
-B
-C
-B
(bcrypt
hashing). It sets the computing time used for the bcrypt algorithm
(higher is more secure but slower, default: 5, valid: 4 to 31).-d
crypt()
hashing for passwords. The default on all
platforms but Windows and Netware. Though possibly supported by
htdbm
on all platforms, it is not supported by the
httpd
server on Windows and Netware.
This algorithm is insecure by today's standards.-s
-p
htdbm
will support
creation on all platforms, the httpd
daemon will
only accept plain text passwords on Windows and Netware.-l
-v
-x
-t
filename
.db
, .pag
, or .dir
. If
-c
is given, the DBM file is created if it does not already
exist, or updated if it does exist.username
password
-b
flag.-TDBTYPE
One should be aware that there are a number of different DBM file
formats in existence, and with all likelihood, libraries for more than
one format may exist on your system. The three primary examples are
SDBM, NDBM, GNU GDBM, and Berkeley/Sleepycat DB 2/3/4. Unfortunately,
all these libraries use different file formats, and you must make sure
that the file format used by filename is the same format that
htdbm
expects to see. htdbm
currently has
no way of determining what type of DBM file it is looking at. If used
against the wrong format, will simply return nothing, or may create a
different DBM file with a different name, or at worst, it may corrupt
the DBM file if you were attempting to write to it.
One can usually use the file
program supplied with most
Unix systems to see what format a DBM file is in.