EldoS | Feel safer!

Software components for data protection, secure storage and transfer

WEBDAV questions

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#20193
Posted: 05/18/2012 09:50:15
by jim grenadier (Standard support level)
Joined: 05/03/2012
Posts: 4

Does your WebDav server work with any commercial clients
(such as NetDrive)?

When coding a WevDav server, how can I specify the username
and password to be passed to TELWebDAVServer?
#20196
Posted: 05/21/2012 02:13:48
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Quote
Does your WebDav server work with any commercial clients
(such as NetDrive)?

Our WebDAV server implementation was developed according to standards that describe WebDAV protocol so it should work with any client that follow these standards.

Quote
When coding a WevDav server, how can I specify the username
and password to be passed to TELWebDAVServer?

This task is a little bit complicated. You should handle TElWebDAVServer.OnRequest event handler and check if a user is already authenticated using some internal records etc. If not, then you should manually form 'WWW-Authenticate' header and add it to the server response in TElWebDAVServer.OnResponse event handler.
#20206
Posted: 05/21/2012 16:01:30
by jim grenadier (Standard support level)
Joined: 05/03/2012
Posts: 4

Thanks for the feedback.
I'll give the authentication technique a try.

I see references on your website to a mechanism for suggesting
new features but it isnt clear if the online suggestion box
is currently enabled.

So, here are a few ideas. Could you pass enter these into the
wishlist for SecureBlackbox?

1. Please add documentation for the WebDav methods to the help file.

2. Please extend the WebDav examples to show at lease one
Authentication technique and support for https.

3. Please test WebDav support with at least one commercial client.
I have had no luck with NetDrive (probably because of authentication
issues).

Regards,

Jim
#20211
Posted: 05/22/2012 05:50:50
by Vsevolod Ievgiienko (EldoS Corp.)

Quote
1. Please add documentation for the WebDav methods to the help file.

The documentation is being prepared and will be available as soon as it will be ready.

Quote
2. Please extend the WebDav examples to show at lease one
Authentication technique and support for https.

The existing sample already demonstrates how to use SSL/TLS. We'll add authentication demonstration and updated demo will be included into the next SBB build.

Quote
Please test WebDav support with at least one commercial client.
I have had no luck with NetDrive (probably because of authentication
issues).

We've already successfully tested our server implementation with a number of free and commercial clients. Indeed NetDrive fails to connect to our demo. We'll investigate this problem and improve our code if necessary.
#20212
Posted: 05/22/2012 09:36:14
by Vsevolod Ievgiienko (EldoS Corp.)

We've improved our code to work with NetDrive. This fix will be included into the next SecureBlackbox build along with enhanced demos.
#20263
Posted: 05/27/2012 19:43:18
by jim grenadier (Standard support level)
Joined: 05/03/2012
Posts: 4

Hi,

I have SSL working ok and I am now trying to get some form
of Authorization to work. I have have intercepted the Request
event and obtained Request.Authorization and I can decode that
necessary information for Basic Authentication.

I have hooked up the OnResponse event and it fires ok.

So now, the only thing i need to understand more clearly is
your statement above...

"then you should manually form 'WWW-Authenticate' header and add it to the server response in TElWebDAVServer.OnResponse event handler."

What is the exact format of then necessary "WWW-Authenticate' header and
how do i add it to the server response.

Regards,
Jim
#20265
Posted: 05/28/2012 02:33:28
by Vsevolod Ievgiienko (EldoS Corp.)

Hello.

You should handle TElWebDAVServer.OnResponse event and check if its Params.StatusCode is 401 (StatusCode is set in TElWebDAVServer.OnBeforeRequest handler). If its equal to 401 then you should add WWW-Authenticate as its shown in the sample:

Code
m_webDavServ.OnResponse += new TSBWebDavResponseEvent(DoResponse);
...
private void DoResponse(Object Sender, TElHTTPServerResponseParams Params, MemoryStream Data)
{
  if (Params.StatusCode == 401)
    Params.CustomHeaders.Add("WWW-Authenticate: Basic realm=\"EldoS WebDAV Server\"");
}


WWW-Authenticate header description can be found here: http://tools.ietf.org/html/rfc2617#page-8

BTW your question pointed me to a small bug in the sample. I've sent you an updated sample via helpdesk.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 1516 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!