in reply to Re: Passing values to htdigest from command line problem
in thread Passing values to htdigest from command line problem

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^2: Passing values to htdigest from command line problem

Replies are listed 'Best First'.
Re^3: Passing values to htdigest from command line problem
by chargrill (Parson) on Oct 11, 2006 at 07:05 UTC

    Sorry, I was mistaken on a few things.

    • You read the documentation.
    • You tried the command line from a DOS window and it worked -- and then it didn't work when run from perl.
    • This is a perl question, and not an apache utility program* question.

    So, I read the documentation. Khen1950fx is right (looks like he read the documentation too), there is no -b (batch mode in htpasswd (to which you're above referring to as "BasicAuth"), letting you specify a password on the command line) command line option in htdigest.

    So, the problem is that your command won't run from the command line, because the apache utility** doesn't support it. Running it from perl can't change that fact.




    * ... and their documentation.

    ** Apache (and its related utilities) are open source***, maybe you can implement the -b functionality yourself.

    *** The apache utilities tend to be written in C, not perl, so we probably won't help you with that, either.



    --chargrill
    s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
    A reply falls below the community's threshold of quality. You may see it by logging in.