WebDAV not working

If you are having a problem using Vault, post a message here.
Post Reply
dprothero
Posts: 44
Joined: Sun Mar 21, 2004 12:18 pm
Location: Stockton California
Contact:

WebDAV not working

Post by dprothero » Fri Jun 03, 2011 12:07 pm

We're trying to use the WebDAV functionality. Our server is vault.tresearch.net and the repository is named TherapeuticResearchNet. So, in doing the sanity check, we built this URL:

vault.tresearch.net/sgdav/wd.ashx/vault.tresearch.net/TherapeuticResearchNet/SanityCheck

(I removed the http:// from the above so the forum wouldn't try to turn it into a link.)

When entering this URL into a browser, we get a login prompt, but it will not accept any credentials we provide.

David

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: WebDAV not working

Post by Beth » Fri Jun 03, 2011 3:52 pm

Do you know the admin password for Vault? If so, just type in admin for the login name and the admin password.

Does Vault work by itself on that machine or the Vault web client?
Beth Kieler
SourceGear Technical Support

dprothero
Posts: 44
Joined: Sun Mar 21, 2004 12:18 pm
Location: Stockton California
Contact:

Re: WebDAV not working

Post by dprothero » Fri Jun 03, 2011 4:08 pm

Using the admin account does not get us access either. It does think for a while, but then returns with the logon prompt. The logon prompt also indicates it's trying to logon to our Windows Domain.

Yes, the Vault GUI client and the web client work from this machine.

David

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: WebDAV not working

Post by Beth » Fri Jun 03, 2011 4:28 pm

Does TheraputicResearchNet have any spaces in it?

I've attached a screenshot of what logging in as admin should look like. Does your screen look that way?

What error are you given?
You do not have the required permissions to view the files attached to this post.
Beth Kieler
SourceGear Technical Support

dprothero
Posts: 44
Joined: Sun Mar 21, 2004 12:18 pm
Location: Stockton California
Contact:

Re: WebDAV not working

Post by dprothero » Fri Jun 03, 2011 5:05 pm

I get one logon prompt, and then a second with my attempted username filled in (see attached). I have to click OK a couple times and then I get the error message attached (Capture3.jpg).
You do not have the required permissions to view the files attached to this post.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: WebDAV not working

Post by Beth » Mon Jun 06, 2011 7:40 am

In your IIS Manager, expand the website that Vault was installed to. Right-click sgdav and select Properties (IIS6). Click on Directory Security, and then click on the first Edit button. Do you have Anonymous Access enabled?

If you are on IIS7, you will select sgdav, then double-click Authentication in the center pane.
Beth Kieler
SourceGear Technical Support

dprothero
Posts: 44
Joined: Sun Mar 21, 2004 12:18 pm
Location: Stockton California
Contact:

Re: WebDAV not working

Post by dprothero » Mon Jun 06, 2011 11:47 am

It's IIS 6 and, yes, anonymous access is enabled.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: WebDAV not working

Post by Beth » Mon Jun 06, 2011 12:22 pm

The two logins you are getting are from Windows and you're not even getting to the Vault login.

If you go to the Vault web page, do you get the same kinds of login windows? The regular Vault web page is at http://your Vault server/vaultservice/vaultweb.
Beth Kieler
SourceGear Technical Support

dprothero
Posts: 44
Joined: Sun Mar 21, 2004 12:18 pm
Location: Stockton California
Contact:

Re: WebDAV not working

Post by dprothero » Mon Jun 06, 2011 12:46 pm

If they're from Windows (which I agree with), it's strange that they don't allow access even when providing correct username/password (have tried prefixing username with domain, as well).

Accessing vaultweb does not produce any Windows logon dialogs. I checked in IIS and the authentication configuration for both the /VaultService and the /SgDav virtual folders is the same... both only have two options checked (Enable anonymous access and Integrated Windows authentication) and both are using the same anonymous user account.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: WebDAV not working

Post by Beth » Mon Jun 06, 2011 12:49 pm

If you turned off the Windows authentication on vaultservice, does Vault stop working for you?
Beth Kieler
SourceGear Technical Support

dprothero
Posts: 44
Joined: Sun Mar 21, 2004 12:18 pm
Location: Stockton California
Contact:

Re: WebDAV not working

Post by dprothero » Mon Jun 06, 2011 12:59 pm

Vault works fine with Windows authentication turned off for /VaultService.

So, I tried turning it off for /SgDav and things have changed, but still appear to not be working...

Now, instead of getting the Windows logon, I get the following logon dialog:
Capture.JPG
Then, the browser spins for a while (maybe 45 - 60 seconds) and I get the following result that shows the logon "failed":
Capture2.JPG
You do not have the required permissions to view the files attached to this post.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: WebDAV not working

Post by Beth » Mon Jun 06, 2011 3:33 pm

On the new login you get, now try a Vault user. The log dialog box looks like it is referencing your actual repository.
Beth Kieler
SourceGear Technical Support

dprothero
Posts: 44
Joined: Sun Mar 21, 2004 12:18 pm
Location: Stockton California
Contact:

Re: WebDAV not working

Post by dprothero » Mon Jun 06, 2011 3:46 pm

I tried the "admin" user and got a quick response, but still a login failure:

Request URI: http://vault.tresearch.net:80/sgdav/wd. ... anityCheck
Vault Pro server: vault.tresearch.net
Vault Pro repository: TherapeuticResearchNet
Vault credentials: admin/*************
Working folder: C:\WINDOWS\Temp\IUSR_WEB
Login: failed

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: WebDAV not working

Post by Beth » Tue Jun 07, 2011 9:04 am

Can you check your Vault Server Log for an error on the login? The log is at %windir%\temp\sgvault\sgvault.log.
Beth Kieler
SourceGear Technical Support

dprothero
Posts: 44
Joined: Sun Mar 21, 2004 12:18 pm
Location: Stockton California
Contact:

Re: WebDAV not working

Post by dprothero » Tue Jun 07, 2011 9:09 am

It has the following two lines from an attempt:

Code: Select all

----6/7/2011 8:07:53 AM      admin--VAULT.tresearch.net(192.168.1.47)--SSL Disabled	Login 
----6/7/2011 8:07:53 AM      admin--VAULT.tresearch.net(192.168.1.47)--SSL Disabled	Logout

Post Reply