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

Steve steve at thupdi.net
Mon Jan 27 10:55:01 EST 2014


Hi, Nikos, echo "password"|ocpasswd will still ask "Enter password:"
for once, I think it should be directly update the password file :)

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