Re: problem starting up slide-2.0rc2

2004-05-17 Thread Oliver Zeigermann
No idea how this happened, but it seems collection users has been added 
to the root collection only half way. Please send the XML descriptor 
files for / and users that can be found in the store directory 
configured in Domain.xml to see what went wrong.

Cheers,
Oliver
Stan Pinte wrote:
hello,
when starting up I have this:
2004-05-13 10:06:38,498 INFO  [STDOUT] 13 May 2004 10:06:38 - 
org.apache.slide.store.txfile.rm.impl.FileResourceManager - INFO - 
Started RM
2004-05-13 10:06:38,630 INFO  [STDOUT] 13 May 2004 10:06:38 - 
org.apache.slide.common.Namespace - INFO - Loading namespace slide base 
data
2004-05-13 10:06:38,804 INFO  [STDOUT] 13 May 2004 10:06:38 - 
org.apache.slide.common.Namespace - INFO - Init namespace slide 
configuration
2004-05-13 10:06:38,805 INFO  [STDOUT] 13 May 2004 10:06:38 - 
org.apache.slide.common.Namespace - INFO - Import data into namespace slide
2004-05-13 10:06:38,813 INFO  [STDOUT] 13 May 2004 10:06:38 - 
org.apache.slide.common.XMLUnmarshaller - INFO - Loading object /
2004-05-13 10:06:38,937 INFO  [STDOUT] 13 May 2004 10:06:38 - 
org.apache.slide.common.XMLUnmarshaller - INFO - Loading object /users
2004-05-13 10:06:38,944 INFO  [STDOUT] 13 May 2004 10:06:38 - 
org.apache.slide.common.Namespace - ERROR - Unable to read Namespace 
base configuration file :
2004-05-13 10:06:38,945 INFO  [STDOUT] 13 May 2004 10:06:38 - 
org.apache.slide.common.Namespace - ERROR - 
java.lang.IllegalStateException: Existing binding users at / has to be 
removed first
2004-05-13 10:06:38,945 ERROR [STDERR] java.lang.IllegalStateException: 
Existing binding users at / has to be removed first
2004-05-13 10:06:38,946 ERROR [STDERR]  at 
org.apache.slide.structure.ObjectNode.addBinding(ObjectNode.java:470)

any suggestion?
thanks a lot,
Stan.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Oracle Store

2004-05-17 Thread Oliver Zeigermann
Davide Savazzi wrote:
On Thursday 13 May 2004 09:48, Oliver Zeigermann wrote:

As some sort of motivation for sequences. They are really *mandatory*
when you use versioning and have more than one Client creating new
resources concurrently. Without sequences you will get many conflicts as
the 2.0 workaround does not have any effect with Oracle.

Ok, I will look at it... (2.0 workaround?)
Some code that prevents deadlocks with the file stores. Merely a hack...
I have added support for content compression, 2 problems:
- the field bcompress in StandardRDBMSAdapter is private, can it be changed 
to protected?
Done
- another OutOfMemoryError: StoreContentZip creates a ByteArrayOutputStream 
that stores all the zipped content in memory.

I've modified StandardRDBMSAdapter to write compressed data in temp file.
Hmmm, I am not quite sure if this is a good solution. Compression was 
introduced to achive a speedup. I guess writing to a temporary file 
first rather slows down everything, am I wrong? Maybe the solution would 
be to disable compression when you want up-/download large files?

I've tested these changes with Oracle and MySql. Oracle works fine, MySql 
still suffers of OOM exceptions, but I think the problem is the JDBC driver. 
On mysql.com they say With newly added large-packet protocol support, the 
driver can send rows and BLOBs up to 2 gigabytes in size. But in the README 
of the driver:
---
This version of the driver also supports large packet sizes
(up to the limits of your server) when you're using MySQL-4.0
or newer. Your JVM will need to be able to allocate enough
memory to store the entire large packet, as well as an overhead
of 16 megabytes or so.
---

With MySql and compression enabled I have also random IOExceptions (even 
without my changes, in 2.0):

14 May 2004 12:24:18 - org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter 
- ERROR - java.io.EOFException: Unexpected end of ZLIB input stream
java.io.EOFException: Unexpected end of ZLIB input stream
Maybe it is because of the BLOB size limitation to 64K we have discussed 
before. I think data above 64K simply get truncated. A suggested 
solution was to use LONGBLOB (or so).

Oliver
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


compression support [Was: Re: Oracle Store]

2004-05-17 Thread Davide Savazzi
On Monday 17 May 2004 09:36, Oliver Zeigermann wrote:

 Hmmm, I am not quite sure if this is a good solution. Compression was
 introduced to achive a speedup. I guess writing to a temporary file
 first rather slows down everything, am I wrong? 

It's obviously slower but the real bottleneck is always the db, I'll make some 
benchmark ;)
What do you think about using NIO to keep all in memory but outside the vm?

 Maybe the solution would
 be to disable compression when you want up-/download large files?

Or write to a tmp file only if ByteArrayOutputStream becomes too big?

-- 
Davide Savazzi



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: compression support [Was: Re: Oracle Store]

2004-05-17 Thread Oliver Zeigermann
Davide Savazzi wrote:
On Monday 17 May 2004 09:36, Oliver Zeigermann wrote:

Hmmm, I am not quite sure if this is a good solution. Compression was
introduced to achive a speedup. I guess writing to a temporary file
first rather slows down everything, am I wrong? 

It's obviously slower but the real bottleneck is always the db, I'll make some 
benchmark ;)
What do you think about using NIO to keep all in memory but outside the vm?
Well, we onced decided to rely on Java 1.3 only, I guess, but we may 
change this for the 2.1 if people agree...


Maybe the solution would
be to disable compression when you want up-/download large files?

Or write to a tmp file only if ByteArrayOutputStream becomes too big?
Sounds good. But I am wondering why using the compression mode anyhow if 
it is slower? Could you please verify with your benchmark.

Oliver
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Deploying Slide on WebLogic

2004-05-17 Thread Peter.Nevermann
Hi, I'm a newbie with WebLogic ... has anybody experience with the deployment of Slide 
on WebLogic? 

It works fine for me with security switched-off. 

But when I try to use security, after adapting the realm for WebLogic, I get problems 
with the class loaders. I get it only work if I put certain classes (mainly, the realm 
and everything it depends on) in the *global* class path (workaround). Putting 
classses in common/lib or server/lib (like I can do in Tomcat) doesn't seem to help 
... i.e. classes aren't found by any of WebLogic's classloaders.

What I did in WebLogic 8.1:
- created a new domain mydomain
- opened the console (http://localhost:7001/console)
  - configured the realm (Security  Realms  Configure a new Realm)
  - deployed Slide (Deployments  Web Application Modules  Deploy a new ...

Any hints?

Thanks,
Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploying Slide on WebLogic

2004-05-17 Thread Oliver Zeigermann
Hi Peter,
this seems to be the same problem as with Tomcat, but I do not think 
common/lib or server/lib do exist in WebLogic, do they? You will have to 
find a locations for the relam code that is accessible for the WebLogic 
kernel class loader. Maybe there is no other than the global one? In 
Tomcat sever/lib is accesible from the Tomcat core, so I put it there. 
Anyway, be careful to have all other classes accessible from the Slide 
WebApp as well (that's why other classes are in common/lib).

Oliver
[EMAIL PROTECTED] wrote:
Hi, I'm a newbie with WebLogic ... has anybody experience with the deployment of Slide on WebLogic? 

It works fine for me with security switched-off. 

But when I try to use security, after adapting the realm for WebLogic, I get problems 
with the class loaders. I get it only work if I put certain classes (mainly, the realm 
and everything it depends on) in the *global* class path (workaround). Putting 
classses in common/lib or server/lib (like I can do in Tomcat) doesn't seem to help 
... i.e. classes aren't found by any of WebLogic's classloaders.
What I did in WebLogic 8.1:
- created a new domain mydomain
- opened the console (http://localhost:7001/console)
  - configured the realm (Security  Realms  Configure a new Realm)
  - deployed Slide (Deployments  Web Application Modules  Deploy a new ...
Any hints?
Thanks,
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Deploying Slide on WebLogic

2004-05-17 Thread Peter.Nevermann
Thanks, Oliver.

 this seems to be the same problem as with Tomcat, but I do not think 
 common/lib or server/lib do exist in WebLogic, do they?

Well, I found something like C:\bea\weblogic81\common\lib and
C:\bea\weblogic81\server\lib ... B-)

 You will have to 
 find a locations for the realm code that is accessible for 
 the WebLogic kernel class loader. 

OK ... so the problem is where to put the classes the realm depends on
...

Regards,
Peter

 -Original Message-
 From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 17, 2004 11:15
 To: Slide Users Mailing List
 Subject: Re: Deploying Slide on WebLogic
 
 
 Hi Peter,
 
 this seems to be the same problem as with Tomcat, but I do not think 
 common/lib or server/lib do exist in WebLogic, do they? You 
 will have to 
 find a locations for the relam code that is accessible for 
 the WebLogic 
 kernel class loader. Maybe there is no other than the global one? In 
 Tomcat sever/lib is accesible from the Tomcat core, so I put 
 it there. 
 Anyway, be careful to have all other classes accessible from 
 the Slide 
 WebApp as well (that's why other classes are in common/lib).
 
 Oliver
 
 [EMAIL PROTECTED] wrote:
 
  Hi, I'm a newbie with WebLogic ... has anybody experience 
 with the deployment of Slide on WebLogic? 
  
  It works fine for me with security switched-off. 
  
  But when I try to use security, after adapting the realm 
 for WebLogic, I get problems with the class loaders. I get it 
 only work if I put certain classes (mainly, the realm and 
 everything it depends on) in the *global* class path 
 (workaround). Putting classses in common/lib or server/lib 
 (like I can do in Tomcat) doesn't seem to help ... i.e. 
 classes aren't found by any of WebLogic's classloaders.
  
  What I did in WebLogic 8.1:
  - created a new domain mydomain
  - opened the console (http://localhost:7001/console)
- configured the realm (Security  Realms  Configure a new Realm)
- deployed Slide (Deployments  Web Application Modules  
 Deploy a new ...
  
  Any hints?
  
  Thanks,
  Peter
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploying Slide on WebLogic

2004-05-17 Thread Oliver Zeigermann
[EMAIL PROTECTED] wrote:
Thanks, Oliver.

this seems to be the same problem as with Tomcat, but I do not think 
common/lib or server/lib do exist in WebLogic, do they?

Well, I found something like C:\bea\weblogic81\common\lib and
C:\bea\weblogic81\server\lib ... B-)
Ah, ok. So put *only* the real wrapper to server/lib, the rest to 
common/lib. This way it might work.

Oliver
You will have to 
find a locations for the realm code that is accessible for 
the WebLogic kernel class loader. 

OK ... so the problem is where to put the classes the realm depends on
...
Regards,
Peter

-Original Message-
From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 11:15
To: Slide Users Mailing List
Subject: Re: Deploying Slide on WebLogic
Hi Peter,
this seems to be the same problem as with Tomcat, but I do not think 
common/lib or server/lib do exist in WebLogic, do they? You 
will have to 
find a locations for the relam code that is accessible for 
the WebLogic 
kernel class loader. Maybe there is no other than the global one? In 
Tomcat sever/lib is accesible from the Tomcat core, so I put 
it there. 
Anyway, be careful to have all other classes accessible from 
the Slide 
WebApp as well (that's why other classes are in common/lib).

Oliver
[EMAIL PROTECTED] wrote:

Hi, I'm a newbie with WebLogic ... has anybody experience 
with the deployment of Slide on WebLogic? 

It works fine for me with security switched-off. 

But when I try to use security, after adapting the realm 
for WebLogic, I get problems with the class loaders. I get it 
only work if I put certain classes (mainly, the realm and 
everything it depends on) in the *global* class path 
(workaround). Putting classses in common/lib or server/lib 
(like I can do in Tomcat) doesn't seem to help ... i.e. 
classes aren't found by any of WebLogic's classloaders.

What I did in WebLogic 8.1:
- created a new domain mydomain
- opened the console (http://localhost:7001/console)
 - configured the realm (Security  Realms  Configure a new Realm)
 - deployed Slide (Deployments  Web Application Modules  
Deploy a new ...
Any hints?
Thanks,
Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Deploying Slide on WebLogic

2004-05-17 Thread Peter.Nevermann
  
  Well, I found something like C:\bea\weblogic81\common\lib and
  C:\bea\weblogic81\server\lib ... B-)
  
 
 Ah, ok. So put *only* the real wrapper to server/lib, the rest to 
 common/lib. This way it might work.

Well, that's the way it works in Tomcat ... but not in WebLogic :-(

Regards,
Peter

 -Original Message-
 From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 17, 2004 11:34
 To: Slide Users Mailing List
 Subject: Re: Deploying Slide on WebLogic
 
 
 [EMAIL PROTECTED] wrote:
 
  Thanks, Oliver.
  
  
 this seems to be the same problem as with Tomcat, but I do 
 not think 
 common/lib or server/lib do exist in WebLogic, do they?
  
  
  Well, I found something like C:\bea\weblogic81\common\lib and
  C:\bea\weblogic81\server\lib ... B-)
  
 
 Ah, ok. So put *only* the real wrapper to server/lib, the rest to 
 common/lib. This way it might work.
 
 Oliver
 
 You will have to 
 find a locations for the realm code that is accessible for 
 the WebLogic kernel class loader. 
  
  
  OK ... so the problem is where to put the classes the realm 
 depends on
  ...
  
  Regards,
  Peter
  
  
 -Original Message-
 From: Oliver Zeigermann [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 17, 2004 11:15
 To: Slide Users Mailing List
 Subject: Re: Deploying Slide on WebLogic
 
 
 Hi Peter,
 
 this seems to be the same problem as with Tomcat, but I do 
 not think 
 common/lib or server/lib do exist in WebLogic, do they? You 
 will have to 
 find a locations for the relam code that is accessible for 
 the WebLogic 
 kernel class loader. Maybe there is no other than the 
 global one? In 
 Tomcat sever/lib is accesible from the Tomcat core, so I put 
 it there. 
 Anyway, be careful to have all other classes accessible from 
 the Slide 
 WebApp as well (that's why other classes are in common/lib).
 
 Oliver
 
 [EMAIL PROTECTED] wrote:
 
 
 Hi, I'm a newbie with WebLogic ... has anybody experience 
 
 with the deployment of Slide on WebLogic? 
 
 It works fine for me with security switched-off. 
 
 But when I try to use security, after adapting the realm 
 
 for WebLogic, I get problems with the class loaders. I get it 
 only work if I put certain classes (mainly, the realm and 
 everything it depends on) in the *global* class path 
 (workaround). Putting classses in common/lib or server/lib 
 (like I can do in Tomcat) doesn't seem to help ... i.e. 
 classes aren't found by any of WebLogic's classloaders.
 
 What I did in WebLogic 8.1:
 - created a new domain mydomain
 - opened the console (http://localhost:7001/console)
   - configured the realm (Security  Realms  Configure a 
 new Realm)
   - deployed Slide (Deployments  Web Application Modules  
 
 Deploy a new ...
 
 Any hints?
 
 Thanks,
 Peter
 
 
 
 
 -
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem starting up slide-2.0rc2

2004-05-17 Thread Olivier CAUSSE
Here is my Domain.xml file
Olivier


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: problem starting up slide-2.0rc2

2004-05-17 Thread Olivier CAUSSE
My Domain.xml file again :

?xml version=1.0?
slide
namespace name=slide
definition
store name=tx
nodestore
classname=org.apache.slide.store.txfile.TxXMLFileDescriptorsStore
parameter name=rootpathstore/metadata/parameter
parameter name=workpathwork/metadata/parameter
/nodestore
securitystore
reference store=nodestore/
/securitystore
lockstore
reference store=nodestore/
/lockstore
revisiondescriptorsstore
reference store=nodestore/
/revisiondescriptorsstore
revisiondescriptorstore
reference store=nodestore/
/revisiondescriptorstore
contentstore
classname=org.apache.slide.store.txfile.TxFileContentStore
parameter name=rootpathstore/content/parameter
parameter name=workpathwork/content/parameter
/contentstore
/store
scope match=/ store=tx/
/definition
configuration
!-- Actions mapping --
read-object/actions/read/read-object
create-object/actions/write/create-object
remove-object/actions/write/remove-object
grant-permission/actions/write-acl/grant-permission
revoke-permission/actions/write-acl/revoke-permission
read-permissions/actions/read-acl/read-permissions
 
read-own-permissions/actions/read-current-user-privilege-set/read-own-per
missions
lock-object/actions/write/lock-object
kill-lock/actions/unlock/kill-lock
read-locks/actions/read/read-locks
read-revision-metadata/actions/read/read-revision-metadata
 
create-revision-metadata/actions/write-properties/create-revision-metadat
a
 
modify-revision-metadata/actions/write-properties/modify-revision-metadat
a
 
remove-revision-metadata/actions/write-properties/remove-revision-metadat
a
read-revision-content/actions/read/read-revision-content
 
create-revision-content/actions/write-content/create-revision-content
 
modify-revision-content/actions/write-content/modify-revision-content
 
remove-revision-content/actions/write-content/remove-revision-content
bind-member/actions/bind/bind-member
unbind-member/actions/unbind/unbind-member
!-- Paths configuration --
userspath/users/userspath
rolespath/roles/rolespath
actionspath/actions/actionspath
filespath/files/filespath
parameter name=davtrue/parameter
parameter name=standalonetrue/parameter
parameter name=acl_inheritance_typepath/parameter
!-- Nested roles: 0 means no nesting (default), 1 means one
sublevel, etc. --
parameter name=nested_roles_maxdepth0/parameter
/configuration
data
objectnode classname=org.apache.slide.structure.SubjectNode
uri=/
!-- Subject can be:
any user all
authenticated user   authenticated
unauthenticated user unauthenticated
self self
owner of resourceowner
a user   /users/john
a role   /roles/admin
--
permission action=all subject=/roles/root
inheritable=true/
permission action=/actions/read-acl subject=all
inheritable=true negative=true/
permission action=/actions/write-acl subject=all
inheritable=true negative=true/
permission action=/actions/unlock subject=all
inheritable=true negative=true/
permission action=/actions/read subject=all
inheritable=true/
!-- /users --
objectnode
classname=org.apache.slide.structure.SubjectNode uri=/users
permission action=all subject=self
inheritable=true/
permission action=all subject=unauthenticated
inheritable=true negative=true/
!-- /users/root represents the administrator --
objectnode
classname=org.apache.slide.structure.SubjectNode uri=/users/root
revision
property
namespace=http://jakarta.apache.org/slide/; name=passwordroot/property

/revision
/objectnode
!-- /users/john and /users/john2 represent
authenticated users --
objectnode
classname=org.apache.slide.structure.SubjectNode uri=/users/john
revision
property
namespace=http://jakarta.apache.org/slide/; name=passwordjohn/property

/revision
/objectnode
  

RE: Slide and XP drive mapping

2004-05-17 Thread Michael Oliver
Even with web folders you might notice that your Windows Login user info
gets used for live attributes/properties like the owner of a lock
instead of the user that authenticated to Slide.

I have no troubles with the WebDrive product and Slide and they even
support automatic locking on open for edit with products that don't
support WebDav, like AutoCad.  The WebDrive let's you specify what
/user/ you want to use for Locks, etc.  I am not affiliated with
SouthRiverTech or WebDrive, I just am very happy with the product.

http://www.southrivertech.com/products/webdrive/index.html

Michael Oliver
CTO
Matrix Intermedia Inc.
3325 N. Nellis Blvd, #1
Las Vegas, NV 89115
Phone:(702)643-7425
Fax:(520)844-1036
 

-Original Message-
From: Glen Stampoultzis [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 16, 2004 9:27 PM
To: [EMAIL PROTECTED]
Subject: Slide and XP drive mapping


XP supports drive mapping of webdav shares.  I was wondering whether
slide 
supports this?  I'm having authentication problems when I try this.
Web 
Folders work fine however.

Regards,


Glen Stampoultzis
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cutom authentication for Slide

2004-05-17 Thread Jean-Baptiste Lièvremont
Hi,
I'm using Slide 2.0 within Tomcat 5.0.19, JDK 1.4.2_03. I would like to 
use a custom (SSO) authentication mechanism to control access to the 
Slide server. Actually, I want to totally get rid of the simple HTTP 
auth mechanism and use an external tool - for information, the Central 
Authentication Service (CAS - https://www.yale.edu/tp/cas).

Is there any roadmap to follow / featured API to help with this task ?
Regards,
J.B. Lievremont
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


some questions

2004-05-17 Thread aaz
Hi,
I am trying to develop a WebDav servlet and don't know where else to go to get help 
for this. There appears to be no general development mailing lists for people trying 
to implement a DAV server.

First off, how do you get apps like MS Word and Adobe Acrobat to re-submit an OPTIONS 
request? Problem is when I first was experimenting with the returned DAV headers I 
only specified level 1 support, now I want the apps to try LOCK/UNLOCK which is level 
2, and now the apps never requery via OPTIONS so I cannot seem to test this. How do 
you get these apps to clear whatever cache/dav server history?

thanks
Aaron

Again: administration web-frontend for slide?

2004-05-17 Thread Frank Schmaus
Is it possible my message didn't arrive?
I got it via mail client, but can't find it in the html archive on 
http://jakarta.apache.org/site/mail2.html#Slide
Can someone help finding a serverside webfrontend using the slide client 
api?
Frank Schmaus wrote:

Hi there,
I'm quite new to slide (and apache projects in general). I realy liked 
the idea of slide, but somehow thought it might bring some webfrontend 
to admin all this.
I need all the nice features, the client-api has, packed inside this
frontend (adding/removing users/groups, setting rights on resources...)

Questions:
- Is there some add on project, solving the web admin issue?
- I read in this mailing list, that cocoon would bring some frontend,
but couldn't find something about this there?
- Is there a list of public projects, build on top of the slide 
client-api?
Having read the mailing archive let me believe a lot of
people are implementing their own frontend using this api. Isn't there 
something as ready, so the owner could publish it?

Grüße,
Frank

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Cutom authentication for Slide

2004-05-17 Thread Ben Alex
Hi Jean

 I'm using Slide 2.0 within Tomcat 5.0.19, JDK 1.4.2_03. I 
 would like to use a custom (SSO) authentication mechanism to 
 control access to the Slide server. Actually, I want to 
 totally get rid of the simple HTTP auth mechanism and use an 
 external tool - for information, the Central Authentication 
 Service (CAS - https://www.yale.edu/tp/cas).
 
 Is there any roadmap to follow / featured API to help with this task ?

I integrated CAS support into the Acegi Security System
(http://acegisecurity.sourceforge.net), which I've also integrated into
Slide, so hopefully I can offer some pointers.

Slide has a utility class, org.apache.slide.webdav.util.WebdavUtils, which
has a method, getSlideToken(). This method obtains the principal from the
web container using the normal request.getUserPrincipal() method, or,
failing that, from a session attribute named
org.apache.slide.webdav.method.principal. This is your magic bridge
between third party authentication systems and Slide. :-)

For this to work, you DON'T authenticate using standard web container
services. So disable web.xml security-constraints etc. You'll need a
filter that detects requests to the WebdavServlet from a user that hasn't
got a HttpSession attribute with the above name. When the unauthenticated
user is detected, you'll redirect them to the CAS server. After login, CAS
will post back to another one of your filters which validates the CAS
service ticket and sets up a valid Principal implementation in the
HttpSession attribute named above. From that point forward, the WebdavUtils
class will be able to extract the Principal. Slide only uses
Principal.getName(), and then relies on its own authorization store to
determine the ACLs that apply.

The most work is in the filters/servlets that tie in the CAS login. Also, of
course, you'll have a problem in that non-web-browser clients cannot obtain
the CAS ticket as they use BASIC authentication which doesn't understand
HTTP redirects (which is central to how CAS works). There are some ways you
can approach it, though:

- Forget about non-browser clients. Ouch...

- Write a filter that detects the BASIC authentication request, then posts
it through to CAS on behalf of the BASIC authentication client, and then
processes the resulting opaque service ticket as described above.

- Have dual authentication methods. For web browsers use native CAS. For
BASIC authentication clients, directly validate against the backend database
from your BASIC authentication processing filter. This is the cleanest
model.

Acegi Security might be worth a look for some code samples. It does BASIC
authentication, CAS integration etc. You could also use it natively to
perform most (if not all) of the above.

Hope this helps.

Ben


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Again: administration web-frontend for slide?

2004-05-17 Thread James Mason
Frank,
Cocoon does have a Slide admin interface. Cocoon 2.1 has Slide 2
bundled in by default. For users/roles the interface works quite well,
but I've found it a bit lacking for dealing with files/folders.

-James

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]