You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Eric Covener <co...@gmail.com> on 2005/04/04 22:48:51 UTC

[PATCH] htdbm enhancement/cleanup

Summary of changes:

disallow colons in comments (interpreted as groups by mod_authz_dbm)
add flag to specify groups
list groups during -l
don't silently overwrite an entry in db unless explicit option specified

use apr_getopt instead of honegrown argv processing
add options for positional parameters (Username, Database, Password, Comment)
Update usage

Notable differences between previous version:

1)
-b and -t used to mean "password and comment follow as positional 
parameters at end of command line"  and now take their arg immediately

old: htdbm -b -t DATABASE USER PASSWORD COMMENT
new: htdbm -b PASSWORD -t COMMENT DATABASE USER

2)
Don't allow colons in the comment field (old htdbm had no explicit way
to add groups but could include them as part of the comment)

new htdbm -g "admin,editor,viewer" -t "my comment"  /home/joe/joedb newuser
old htdbm -t  /home/joe/joedb newuser "admin,editor,viewer:my comment"

3)
Don't overwrite existing entries by default,

Hopefully submitting the group changes with the arg processing stuff
isn't too much for one patch.   This is a change to the syntax due to
not accepting comments and password as non-option arguments.

-- 
Eric Covener
covener@gmail.com