Command line tools report error about username and password

If you are having a problem using Vault, post a message here.
Post Reply
AGJBond007
Posts: 2
Joined: Thu Dec 06, 2012 5:35 am

Command line tools report error about username and password

Post by AGJBond007 » Thu Dec 06, 2012 5:41 am

Hi Guys,

I am trying to use the LABEL command from the command line with these options

vault LABEL -host myvaultserver -user username -password "password" -repository "RepositoryName" $/FolderABC "Release 1.0"

When I run this from the command line within the install folder I get this error message

<vault>
<error>
<exception>System.Exception: The username or password supplied is invalid.
---> System.Web.Services.Protocols.SoapException: VaultServiceAPILib.VaultSoap
Exception: 1000 : FailNotValidLogin at VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles, String username, String strEncryptedPassword, String strRMKey, String& strAuthToken)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at VaultClientNetLib.ClientService.VaultService.Login(String strHostname, Boolean bUseFullFiles, String username, String strEncryptedPassword, String strRMKey, String& strAuthToken)
at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserLogin, String strPassword)
at VaultClientOperationsLib.ClientInstance.Login(String urlbase, String username, String password)
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)
--- End of inner exception stack trace ---
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)
at VaultClientIntegrationLib.ServerOperations.Login()
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)</exception>
</error>
<result>
<success>False</success>
</result>
</vault>

I am using SourceGear Vault Command Line Client 5.0.4.18845.

Thanks for the help

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

Re: Command line tools report error about username and passw

Post by lbauer » Thu Dec 06, 2012 9:15 am

Vault thinks the password or username is invalid. Are you putting quotes around "password?" If so, type the password without quotes around it.

Can you login to Vault using this account and the Vault GUI Client?

Can you log in with a different account?

Are you using Vault authentication or Windows Authentication for Vault?
Linda Bauer
SourceGear
Technical Support Manager

AGJBond007
Posts: 2
Joined: Thu Dec 06, 2012 5:35 am

Re: Command line tools report error about username and passw

Post by AGJBond007 » Thu Dec 06, 2012 10:51 am

I did the suggestion with the password already no joy. Yes I can login with the account I am using for the command. Others are logged into vault via the GUI only. We are using vault authentication.

What next?

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

Re: Command line tools report error about username and passw

Post by lbauer » Thu Dec 06, 2012 11:12 am

Does it work if you use a different Vault user/password with the CLC? Trying to determine if this is an account issue or a CLC issue.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply