httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52313] New: htdbm enhancement: options for colon-in-username, no-overwrite, extract-entry
Date Fri, 09 Dec 2011 16:26:36 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52313

             Bug #: 52313
           Summary: htdbm enhancement: options for colon-in-username,
                    no-overwrite, extract-entry
           Product: Apache httpd-2
           Version: 2.2.21
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: enhancement
          Priority: P1
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: perske@uni-muenster.de
    Classification: Unclassified


Created attachment 28059
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28059
htdbm enhancement: options for colon-in-username, no-overwrite, extract-entry

I implemented three enhancements for htdbm that I needed:

* htdbm unconditionally disallows colons in user names. This is OK as far as
you want to use DBM files for AuthType Basic. But with AuthType Digest, a colon
is needed to separate user name and realm.

* Though the underlying DBM routines allow to do so, htdbm does not offer a way
to add an entry only if the entry does not exist. This causes race conditions
if multiple applications want to add only new entries using htdbm.

* htdbm does not offer a way to extract a value.

The appending patch solves all three problems for me, by adding options:

-a allows colons in the username.

-k keeps existing entries when you try to add an entry.

-w can be used together with -v to write the database entry to stdout. (The
entry is always written even if verification fails, thus you can say "htdbm
-vwb dbmfile user dummy" to get the DBM entry and disregard the exit code.)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message