How does one change the password for sgvaultuser?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Jeremy Heiner

How does one change the password for sgvaultuser?

Post by Jeremy Heiner » Fri Mar 05, 2004 12:00 pm

Our Vault connects to the DB using SQLServer authentication. I know how to change the password for the sgvaultuser login... But how do I get the change into web.config?

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Mon Mar 08, 2004 9:38 am

jeremy:

as you've already noticed, the password in web.config's connect string is encrypted.

if you change the sgvaultuser password, you will have to change the connect string to match.

here are some options you can use:
1) uninstall / reinstall the vault server. the vault server will correctly change your settings in vault.config. upon both runs, make sure NOT to drop the database.

2) i'm attaching to this message an officially UNsupported* tool to help encrypt passwords. it must be run on the machine where the vault server is installed. extract and run 'vaultenchelper e'. it should prompt you for your plain text password, and spit out what the encrypted text. replace the PWD entry with this info. * - i haven't fully tested this application in every scenario, so let me know if it fails. i'll try to help see what is up.

3) use a PLAIN TEXT password. the connect string supports plain text password information when used with the PASSWORD property. just change PWD = encrypted_pwd to PASSWORD = plaintext_pwd. in this scenario, please make sure you've looked security access down on web.config, because gaining unauthorized read access to this file may pose a big security risk.
Attachments
vaultenchelper.zip
vault encryption helper - can encrypt, decrypt and generate key information req'd for vault.
(26.18 KiB) Downloaded 625 times
Jeff Clausius
SourceGear

Albert

Where is the PASSWORD Property ?

Post by Albert » Sat May 28, 2005 11:57 pm

jclausius wrote:jeremy:

3) use a PLAIN TEXT password. the connect string supports plain text password information when used with the PASSWORD property. just change PWD = encrypted_pwd to PASSWORD = plaintext_pwd. in this scenario, please make sure you've looked security access down on web.config, because gaining unauthorized read access to this file may pose a big security risk.
Where is the PASSWORD property located in ? in vault.config ? web.config ? How can I change it ?

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Mon May 30, 2005 9:46 am

The SQL connection information ( along with PWD / PASSWORD is in web.config )

Use a text editor of your choice to modify the file.
Jeff Clausius
SourceGear

Post Reply