AllowRepositories format

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
gkn
Posts: 7
Joined: Wed Jun 14, 2006 4:45 pm

AllowRepositories format

Post by gkn » Thu Dec 07, 2006 5:36 pm

In the vault.config file on the web server, there is the key "<AllowRepositories>*</AllowRepositories>"

Not having access to the web server, what is the format for this key, assuming that this allows us to restrict the web service to "seeing" only certain repositories?

Thanks
Last edited by gkn on Tue Jan 30, 2007 9:23 pm, edited 1 time in total.

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

Post by lbauer » Thu Dec 07, 2006 6:03 pm

Within a vault.config you will find an "AllowRepositories" xml element. You can place a comma delimited list in this element to configure the Vault Server to only serve up a given repository.

For example, if you have 5 repositories, you'll need to know their repository ids (SELECT repid, name FROM sgvault.dbo.tblrepositories). If you wanted to only allow access to repositories with ID numbers 1, 2, and 3, you would configure the Vault Server with <AllowRepositories>1,2,3</AllowRepositories>.

Users would not be able to access repositories 4 and 5.
Linda Bauer
SourceGear
Technical Support Manager

gkn
Posts: 7
Joined: Wed Jun 14, 2006 4:45 pm

Post by gkn » Thu Dec 07, 2006 6:06 pm

Is that via the admin tool as well? (ie using the admin tool will only be able to see the selected repositories)

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

Post by lbauer » Fri Dec 08, 2006 10:01 am

Yes, Vault clients and the Admin tool will only be able to see and connect to the designated repositories.
Linda Bauer
SourceGear
Technical Support Manager

Locked