You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Mladen Turk <ml...@mail.inet.hr> on 2001/08/13 13:21:19 UTC

[ENHANCEMENT] htpasswd utility with DBM support

Hi all,

Here is an enhancement that enables username management using either SDBM or
any other apr supported DBM. I've tested it only using SDBM on WIN32, but it
should compile on other platforms.

I know that there is a dbmmanage.pl perl script that is used to manage DBM
files, but since apr supports dbm, here is the solution.

Didn't make a diff, but rather attached the entire htpasswd.c

MT.

Re: [ENHANCEMENT] htpasswd utility with DBM support

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
From: "sterling" <st...@covalent.net>
Sent: Thursday, September 20, 2001 1:50 PM


> Did this get dropped??
> 
> I believe this functionality is a requirement.  If anyone wants to use
> auth_dbm with apr_dbm, there is currently no reliable way to generate the
> userdatabase for the dbm their apr is built with without writing c code.
> 
> This patch *does* work, though I agree with wrowe's assessment.  Anyone
> have the time to do it right?

When Mladen and I last bounced ideas back and forth, it seemed simplest to
keep htpasswd doing what htpasswd does.

He was going to hack together an htdbm (or some such) utility who's args
mirror the current options in dbmmanage.  So as of the moment, I believe
he's started to hack it.

That htdbm must include the group (groups list) and the trailing 'comment',
just as dbmmanage offers.

I would still -love- to see apr use multiple dblibs - better yet - autodetect
which db should be used use when it attempts to open one.  That might be
going a bit far, though ;)

Bill



RE: [ENHANCEMENT] htpasswd utility with DBM support

Posted by Mladen Turk <mt...@mappingsoft.com>.
I'm currently working on some kind of a 'generalized' htpasswd utility.
It is a complete rewrite of htpasswd, that will be easily expanded through
modules.
There has been some suggestions to keep the htpasswd as small as possible,
and make something like htdbm.
Don't know if that is the right way through but I'll post the new htpasswd
and wait for comments.

> -----Original Message-----
> From: sterling [mailto:sterling@covalent.net]
> Sent: Thursday, September 20, 2001 8:50 PM
> To: new-httpd@apache.org
> Cc: Mladen Turk
> Subject: Re: [ENHANCEMENT] htpasswd utility with DBM support
>
>
> Did this get dropped??
>
> I believe this functionality is a requirement.  If anyone wants to use
> auth_dbm with apr_dbm, there is currently no reliable way to generate the
> userdatabase for the dbm their apr is built with without writing c code.
>
> This patch *does* work, though I agree with wrowe's assessment.  Anyone
> have the time to do it right?
>
>
> sterling
>
>
> On Tue, 21 Aug 2001, William A. Rowe,
> Jr. wrote:
>
> > From: "William A. Rowe, Jr." <wr...@rowe-clan.net>
> > Sent: Tuesday, August 14, 2001 2:40 PM
> >
> >
> > > From: "Mladen Turk" <ml...@mail.inet.hr>
> > > Sent: Monday, August 13, 2001 6:21 AM
> > >
> > >
> > > > Here is an enhancement that enables username management
> using either SDBM or
> > > > any other apr supported DBM. I've tested it only using SDBM
> on WIN32, but it
> > > > should compile on other platforms.
> > > >
> > > > I know that there is a dbmmanage.pl perl script that is
> used to manage DBM
> > > > files, but since apr supports dbm, here is the solution.
> > >
> > > +1
> >
> > ... in theory.  However, please look at dbmmanage.pl again.
> Unfortuantely, this
> > patch appears to wipe out any changes to the user's groups or
> comments, and certainly
> > doesn't allow the user to manipulate those.
> >
> > If you don't mind submitting an dbmusers.c that rolls in these
> features, I would
> > definately be willing to consider droping the .pl script.  I'd
> really prefer we stay
> > with the dbmmanage syntax, and ultimately add some syntax to
> choose the dbm type,
> > if anyone gets to rolling that in apr-util and mod_auth_dbm.
> [Then, we can finally
> > _delete_ mod_auth_db, presuming all the features have been
> rolled into mod_auth_dbm.]
> >
> >
> >
> >
>


Re: [ENHANCEMENT] htpasswd utility with DBM support

Posted by sterling <st...@covalent.net>.
Did this get dropped??

I believe this functionality is a requirement.  If anyone wants to use
auth_dbm with apr_dbm, there is currently no reliable way to generate the
userdatabase for the dbm their apr is built with without writing c code.

This patch *does* work, though I agree with wrowe's assessment.  Anyone
have the time to do it right?


sterling


On Tue, 21 Aug 2001, William A. Rowe,
Jr. wrote:

> From: "William A. Rowe, Jr." <wr...@rowe-clan.net>
> Sent: Tuesday, August 14, 2001 2:40 PM
>
>
> > From: "Mladen Turk" <ml...@mail.inet.hr>
> > Sent: Monday, August 13, 2001 6:21 AM
> >
> >
> > > Here is an enhancement that enables username management using either SDBM or
> > > any other apr supported DBM. I've tested it only using SDBM on WIN32, but it
> > > should compile on other platforms.
> > >
> > > I know that there is a dbmmanage.pl perl script that is used to manage DBM
> > > files, but since apr supports dbm, here is the solution.
> >
> > +1
>
> ... in theory.  However, please look at dbmmanage.pl again.  Unfortuantely, this
> patch appears to wipe out any changes to the user's groups or comments, and certainly
> doesn't allow the user to manipulate those.
>
> If you don't mind submitting an dbmusers.c that rolls in these features, I would
> definately be willing to consider droping the .pl script.  I'd really prefer we stay
> with the dbmmanage syntax, and ultimately add some syntax to choose the dbm type,
> if anyone gets to rolling that in apr-util and mod_auth_dbm.  [Then, we can finally
> _delete_ mod_auth_db, presuming all the features have been rolled into mod_auth_dbm.]
>
>
>
>


Re: [ENHANCEMENT] htpasswd utility with DBM support

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
From: "William A. Rowe, Jr." <wr...@rowe-clan.net>
Sent: Tuesday, August 14, 2001 2:40 PM


> From: "Mladen Turk" <ml...@mail.inet.hr>
> Sent: Monday, August 13, 2001 6:21 AM
> 
> 
> > Here is an enhancement that enables username management using either SDBM or
> > any other apr supported DBM. I've tested it only using SDBM on WIN32, but it
> > should compile on other platforms.
> > 
> > I know that there is a dbmmanage.pl perl script that is used to manage DBM
> > files, but since apr supports dbm, here is the solution.
> 
> +1

... in theory.  However, please look at dbmmanage.pl again.  Unfortuantely, this
patch appears to wipe out any changes to the user's groups or comments, and certainly
doesn't allow the user to manipulate those.

If you don't mind submitting an dbmusers.c that rolls in these features, I would
definately be willing to consider droping the .pl script.  I'd really prefer we stay
with the dbmmanage syntax, and ultimately add some syntax to choose the dbm type,
if anyone gets to rolling that in apr-util and mod_auth_dbm.  [Then, we can finally
_delete_ mod_auth_db, presuming all the features have been rolled into mod_auth_dbm.]




Re: [ENHANCEMENT] htpasswd utility with DBM support

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
From: "Mladen Turk" <ml...@mail.inet.hr>
Sent: Monday, August 13, 2001 6:21 AM


> Here is an enhancement that enables username management using either SDBM or
> any other apr supported DBM. I've tested it only using SDBM on WIN32, but it
> should compile on other platforms.
> 
> I know that there is a dbmmanage.pl perl script that is used to manage DBM
> files, but since apr supports dbm, here is the solution.

+1

> Didn't make a diff, but rather attached the entire htpasswd.c

-1 - don't do that.  I've attached the diff for others to review, since I too
would like to see it committed.