cancel
Showing results for 
Search instead for 
Did you mean: 

Passing secondary password on command-line (Linux)

Carl Ponder
Occasional Contributor

Passing secondary password on command-line (Linux)

I can open a VPN connection using the form

/opt/pulsesecure/bin/pulselauncher -U https://gateway.domain -r domain -u $VPNID -p $PASSWORD

It makes me re-enter the ID and a second (fixed) password that tells it to issue a Duo-push request:

User Name:
Password:

How can I pass these additional fields on the command-line?

7 REPLIES 7
Carl Ponder
Occasional Contributor

Re: Passing secondary password on command-line (Linux)

When I use the GUI interface, it pulls up a secondary window to enter these last 2 parameters. The GUI doesn't auto-fill any of this, in spite of the fields being identical every time.

I want to roll this up into a macro so I don't have to enter anything.

Carl Ponder
Occasional Contributor

Re: Passing secondary password on command-line (Linux)

Piping multiple lines of input to the command

| /opt/pulsesecure/bin/pulselauncher ....

doesn't work either, likely because the password is read from a different channel than STDIN so it won't show.

zanyterp
Moderator

Re: Passing secondary password on command-line (Linux)

unfortunately, yes, you are correct that this is not possible; only single-factor credentials can be sent through the command-line launcher (both the platforms that have it). does enabling the automatic push option on your duo registration meet your need?
Carl Ponder
Occasional Contributor

Re: Passing secondary password on command-line (Linux)

That sounds like what I need. How do I enable it?

Carl Ponder
Occasional Contributor

Re: Passing secondary password on command-line (Linux)

From the command-line, preferably.

Carl Ponder
Occasional Contributor

Re: Passing secondary password on command-line (Linux)

Actually, I've just gotten what I wanted using the Ubuntu 22.04 Network menu.
It's saving both the passwords and the server at the other end kicks off the Duo-handshake successfully.

zanyterp
Moderator

Re: Passing secondary password on command-line (Linux)

i am glad to hear you were able to get this working in the way you need