You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Michael J. Prichard" <mi...@willowtreeinteractive.com> on 2005/03/18 05:01:59 UTC

WebDav Acces (User Auths) with JDBC Datasource

Hello.

I am trying to set up a webdav server that hits a MySQL database to get 
the authentication information.  I also want to direct the user to their 
"home" directory structure after they log in.

Is this possible and, if so, does anyone out there have any experience 
with it?

Thanks,
Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: WebDav Acces (User Auths) with JDBC Datasource

Posted by Andy Depue <an...@marathon-man.com>.
WebDAV is only part of our architecture.  We have rich clients that also 
communicate with services via Spring's http based remote protocol and via 
JMS.  Sometimes the client may access a document directly, but sometimes the 
client may invoke a service which then needs access to a document.  The user 
must be authenticated to access the service, which must be authenticated to 
access the document (with the user's priveledges).  We wanted to keep all 
authentication in one place (Acegi) and handle it consistently in all cases 
for security purposes, scalability purposes, and auditing purposes.  Acegi 
provides a set of servlet filters that handle all authentication up-front, 
before servlets are invoked (such as the remote invocation servlet, or the 
remote JMS servlet, or the WebDAV servlet).  This keeps authentication in one 
"place", which benefits those things I mentioned earlier (security, 
scalability, and auditing).

  - Andy

On Friday 18 March 2005 08:28 am, Michael J. Prichard wrote:
> Hey Andy,
>
> Thanks for the response and the code.  I am curious, what reason did you
> build the authentication outside of Slide?
>
> I am new to Slide (and Webdav) so please bear with me :)
>
> Thanks,
> Michael
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: WebDav Acces (User Auths) with JDBC Datasource

Posted by "Michael J. Prichard" <mi...@willowtreeinteractive.com>.
Hey Andy,

Thanks for the response and the code.  I am curious, what reason did you 
build the authentication outside of Slide? 

I am new to Slide (and Webdav) so please bear with me :)

Thanks,
Michael

Andy Depue wrote:

>I submitted code a few weeks ago to accomplish something very similar.  You 
>will still have to write a few simple methods (by implementing a DAO style 
>interface) to retrieve your users from MySQL, but my contribution takes care 
>of mapping your user info to the principal store format that Slide expects.  
>My code also assumes that you are not relying on Slide to authenticate, but 
>have already authenticated the current user before entering Slide.  My 
>"principal store" implementation does not expose passwords to Slide, only 
>user information, roles, etc.  Take a look at 
>http://issues.apache.org/bugzilla/show_bug.cgi?id=33639 for my contribution.  
>I also include code to integrate Acegi authentication (which is what we use) 
>with Slide's WebDAV servlet - and to facilitate some IoC style configuration 
>(in my case, Spring).
>
>  - Andy
>
>On Thursday 17 March 2005 08:01 pm, Michael J. Prichard wrote:
>  
>
>>Hello.
>>
>>I am trying to set up a webdav server that hits a MySQL database to get
>>the authentication information.  I also want to direct the user to their
>>"home" directory structure after they log in.
>>
>>Is this possible and, if so, does anyone out there have any experience
>>with it?
>>
>>Thanks,
>>Michael
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>  
>

-- 
Michael J. Prichard
WillowTree Interactive, Inc.
925 E. Jefferson St.
Charlottesville, VA 22902
h: http://www.WillowTreeInteractive.com
e: michael@willowtreeinteractive.com
b: (434) 220-0382
c: (407) 529-8852
f:  (866) 530-9107
 
------------------------------------------------------------------------
STATEMENT OF CONFIDENTIALITY
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information.  If you are not
the addressee, note that any disclosure, copy, distribution or use of
the contents of this message is prohibited.  If you are not the intended
recipient, please notify Michael J. Prichard of WillowTree Interactive,
Inc. immediately at either 434-220-0382 or at
Michael@willowtreeinteractive.com, and destroy all copies of this
message and any attachments.



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: WebDav Acces (User Auths) with JDBC Datasource

Posted by Andy Depue <an...@marathon-man.com>.
I submitted code a few weeks ago to accomplish something very similar.  You 
will still have to write a few simple methods (by implementing a DAO style 
interface) to retrieve your users from MySQL, but my contribution takes care 
of mapping your user info to the principal store format that Slide expects.  
My code also assumes that you are not relying on Slide to authenticate, but 
have already authenticated the current user before entering Slide.  My 
"principal store" implementation does not expose passwords to Slide, only 
user information, roles, etc.  Take a look at 
http://issues.apache.org/bugzilla/show_bug.cgi?id=33639 for my contribution.  
I also include code to integrate Acegi authentication (which is what we use) 
with Slide's WebDAV servlet - and to facilitate some IoC style configuration 
(in my case, Spring).

  - Andy

On Thursday 17 March 2005 08:01 pm, Michael J. Prichard wrote:
> Hello.
>
> I am trying to set up a webdav server that hits a MySQL database to get
> the authentication information.  I also want to direct the user to their
> "home" directory structure after they log in.
>
> Is this possible and, if so, does anyone out there have any experience
> with it?
>
> Thanks,
> Michael
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org