ocpasswd password from the command line rather than prompting for it?

Steve steve at thupdi.net
Sun Jan 26 22:50:39 EST 2014


Hi, echo "password"|ocpasswd would work as expected :) Thanks.

On Mon, Jan 27, 2014 at 2:49 AM, Nikos Mavrogiannopoulos
<nmav at gnutls.org> wrote:
> On 01/25/2014 12:38 PM, Steve wrote:
>> Hi, could you please add an -b option for ocpasswd like htpasswd?
>>
>> htpasswd:
>> -b  Use the password from the command line rather than prompting for it.
>
> Hello,
>  Is that really needed? I'm thinking into modifying ocpasswd to only ask
> for the password once when stdin isn't a tty. That way
> echo "password"|ocpasswd would work as expected. Would that address your
> use case?
>
> regards,
> Nikos
>



More information about the openconnect-devel mailing list