I am wanting to perform a number of tasks in SourceGear Vault (V4.1.4) with Nant (V0.86.3317.0).
Is there any way we can get Vault to use Windows Authentication from Nant to create the connection?
The Nant block I am using to initialise the vault connect is :
<target name="InitialiseVaultSettings">
<echo>InitialiseVaultSettings</echo>
<vaultsetloginoptions user="${vault.Username}" password="${vault.Password}" URL="${vault.Host}" repository="${vault.Repository}" />
<vaultsetworkingfolder repositoryFolderPath="${vault.Folder}" diskPath="${vault.WorkingDirectory}" createDiskPath="true" />
As I am working on the project with other developers, hard coding user names and passwords into the Nant build file is not a good idea. Both username
and password
are required options in the vaultsetloginoptions
command.
Other alternatives (all with catches) include :
(a) Hardcode the 'Admin' account into the Nant properties and log vault in using that. This isn't so great, as we then loose an audit trail of who is responsible for the check-in / check-out operations the nant script performs. It also causes problems when the solution has files checked out (part of the script ensures all files are checked back into source control prior to generating a label in Vault).
(b) Use a C# script from the Nant code to set the properties of username and password dynamically ... except we've then got a problem of getting the password from the user still
(c) Read the stored profile information from the Vault client and connect using that (except I'm not sure where it is stored).
Thanks for your consideration.