Vault.exe GET fails when credentials and host is missing

If you are having a problem using Vault, post a message here.
Post Reply
thexray
Posts: 6
Joined: Thu Apr 29, 2010 8:26 am

Vault.exe GET fails when credentials and host is missing

Post by thexray » Thu Jun 14, 2012 6:46 am

After upgrade from Vault Standard to Professional 5.1.2 (19283) GET command of vault.exe fails if you don't specify credentials and host with the following error message:

<vault>
<error>
<exception>VaultClientIntegrationLib.UsageException: Please specify -user, -password, and -host.
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)</exception>
</error>
<result>
<success>False</success>
</result>
</vault>

How can you make it work in Professional without specifying credentials and host?

VaultGUIClient.exe is configured to automatically connect to server using saved profile just like it was in Standard edition.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Vault.exe GET fails when credentials and host is missing

Post by lbauer » Thu Jun 14, 2012 11:56 am

You can use Rememberlogin to set the login credentials. This creates an encrypted file in the VaultPro local cache folder with connection info. You probably used that before, but need to create a new one for Vault Pro, since it has a different cache folder.

usage: vault.exe REMEMBERLOGIN [options]

REMEMBERLOGIN will store server, repository and authentication information
on the local host so that it does not need to be reentered.

Server and authentication information is specified by:
-host host

Hostname of the server to connect to. Can also use "-server".
-ssl

Enables SSL for server connection.
-user username

Username to use when connecting to server.
-password password

Password to use when connecting to server.
This is a list of possible options:

-repository repositoryname

Repository to connect to.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply