Custom authentication with WCK (WebDav Construction Kit) / JAASLoginModule

2005-03-22 Thread Bill Keese
 Is anyone using WCK with custom authentication? The wiki documentation
(Bis a little weak about the configuration steps. Any help would be
(Bappreciated!
(BAs far as I can tell, these are the steps, but I'd love to get
(Bconfirmation from someone.
(B
(B1. Create class (example: com.mycompany.myproduct.MyLoginManager) that
(Bextends
(Borg.apache.slide.simple.authentication.SessionAuthenticationManager
(B
(B
(B2. Create jaas.config file like this, in WEB-INF/conf directory.
(B
(Bslide_login {
(Borg.apache.slide.simple.authentication.JAASLoginModule required
(BfactoryClassName=com.mycompany.myproduct.MyLoginManager
(BslideRole=anonymous;
(B};
(B
(B3. Specify jaas.config location as parameter to JVM
(B-Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config
(B
(B4. Do I have to do something to disable Slide's default user checking? I
(Bread that on the wiki or the Slide site but now I can't find it.
(BMaybe I edit slide.properties like this:
(Borg.apache.slide.security=false
(B
(BOr, do I comment out the  section in web.xml?
(B
(B5. Edit web.xml to have code like this somewhere:
(B
(B  
(B
(B
(B
(BBill
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

org.apache.slide.structure.ObjectNotFoundException

2005-03-22 Thread Ethem YUKSEL
Hi to all,
when i try to execute the code below; 

NamespaceAccessToken token = Domain.accessNamespace(new
SecurityToken(this),nameSpace);
Content content = token.getContentHelper();
content.create(this.slideToken,"c:\\slide\\sample.txt",true);

i got exception:

org.apache.slide.structure.ObjectNotFoundException: No object found at
/c:\slide\sample.txt

how can i fix this problem or where does  "/" refer at filesystem.

please help me,
Ethem Yuksel


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



Re: Tests failed

2005-03-22 Thread Stefan Lützkendorf
Hi
for currently the following test sets are uses and (almost) passing for me
  xmltestcases\functional
  xmltestcases\DASL
  xmltestcases\DeltaV
  xmltestcases\BIND
(to be honestly, I'm talking about the CVS head).
To execute one of these test packages, call one of
ant tp.functional
ant tp.dasl
ant tp.deltav
ant tp.bind
in the testsuite, after adapting the tp.properties file.
To run a single test case you can run (e.g.)
ant tp.pattern -Dtp.include=**/copy423.xml
Stefan
Denis Zvonov wrote:
Hi, guys
I'm trying to run jakarta-slide-webdav-testsuite-2.1 with slide 2.1 and 
I see that some general functionality tests are failing. For example 
jakarta-slide-webdav-testsuite-2.1\testsuite\junit\xmltestcases\functional\copy\code\copy423.xml. 

The question is do slide developers use this testsuite? Or a subset of 
tests is used? If not all tests can be applied, then where can one find 
a list of "right" test cases?

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

--
Stefan Lützkendorf  --  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: org.apache.slide.structure.ObjectNotFoundException

2005-03-22 Thread A B
> NamespaceAccessToken token = Domain.accessNamespace(new
> SecurityToken(this),nameSpace);
> Content content = token.getContentHelper();
> content.create(this.slideToken,"c:\\slide\\sample.txt",true); 

The signature for this method is:
void create(SlideToken token,  java.lang.String strUri, boolean isVersioned)

The value for strUri is the value of the URI _on the server_. So, if
you want to create a versioned resource at
"/files/sample/example_one.txt", you would make the call this way:

content.create( slideToken, "/files/sample/example_one.txt", true)

That will create the revision descriptors on the server, you then need
to go get those descriptors and add content. Here's some pseudo code:

nodeRevisions = content.retrieve( slideToken, "/files/sample/example_one.txt" )
nodeRevision = content.retrieve( slideToken, nodeRevisions )
nodeContent = content.retrieve( slideToken, nodeRevisions, nodeRevision )
nodeContent.setContent( byte[] of your local file contents )
content.store( slideToken, "/files/sample/example_one.txt",
nodeRevision, nodeContent)

I haven't had a chance to test this code, but it seems that it should
work. Where I get hung up is whether the client needs to create a new
NodeRevisionDescriptor for each update to the NodeContent -- does the
server do that? Anyone know a better way? (Anyone know the *right* way
 ;-)

-AB

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



RE: org.apache.slide.structure.ObjectNotFoundException

2005-03-22 Thread Ethem YUKSEL
Hello AB,
First thank you very much for your interest. Bu i want to learn don't i have
a chance to run without server. The most important point is where do
/files/sample directory must exist?i don't want to use Tomcat or another
application server.i only want to use Slide API. 
i will be appreciated if you can help?
Kind regards.
Ethem Yuksel

-Original Message-
From: A B [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 22, 2005 3:13 PM
To: Slide Users Mailing List
Subject: Re: org.apache.slide.structure.ObjectNotFoundException


> NamespaceAccessToken token = Domain.accessNamespace(new
> SecurityToken(this),nameSpace);
> Content content = token.getContentHelper();
> content.create(this.slideToken,"c:\\slide\\sample.txt",true); 

The signature for this method is:
void create(SlideToken token,  java.lang.String strUri, boolean isVersioned)

The value for strUri is the value of the URI _on the server_. So, if
you want to create a versioned resource at
"/files/sample/example_one.txt", you would make the call this way:

content.create( slideToken, "/files/sample/example_one.txt", true)

That will create the revision descriptors on the server, you then need
to go get those descriptors and add content. Here's some pseudo code:

nodeRevisions = content.retrieve( slideToken,
"/files/sample/example_one.txt" )
nodeRevision = content.retrieve( slideToken, nodeRevisions )
nodeContent = content.retrieve( slideToken, nodeRevisions, nodeRevision )
nodeContent.setContent( byte[] of your local file contents )
content.store( slideToken, "/files/sample/example_one.txt",
nodeRevision, nodeContent)

I haven't had a chance to test this code, but it seems that it should
work. Where I get hung up is whether the client needs to create a new
NodeRevisionDescriptor for each update to the NodeContent -- does the
server do that? Anyone know a better way? (Anyone know the *right* way
 ;-)

-AB

-
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]



jndi in webapp

2005-03-22 Thread Roy Russo
Hello Sliders,

We are using slide 2.1 as the basis of our CMS for JBoss Portal. Until now, we 
used the default file system store, but also wanted to allow for users to 
implement the jdbc store. Since slide is running inside our Portal webapp, it 
was having trouble finding the jndi-name.

I made a slight modification to the code in 
org.apache.slide.store.impl.rdbms.J2EEStore.java, from various suggestions in 
this mailing list and my own tinkering. The changes are below:

Staring on line ~119 of J2EEStore.java:
// Initialize database
Context initCtx = new InitialContext();
//Context envCtx = (Context) initCtx.lookup("java:comp/env");
//ds = (DataSource) envCtx.lookup(datasource);
ds = (DataSource)initCtx.lookup("java:/" + datasource);

We currently deploy our own datasource "PortalDS", as part of the global portal 
ds. So in the domains.xml file as a ds name, we simply use:

PortalDS

Of course, we needed to make sure the ds was deployed by JBoss before slide 
could see it. 

This seems to be an ongoing issue with people on this mailing list, so my 
suggestion would be that the changes made to J2EEStore.java be incorporated to 
the slide build, and perhaps allow a config variable dictate whether slide is 
running inside a webapp where the current jndi lookup method cannot find the ds.

I mainly used this post as a reference: 
http://mail-archives.eu.apache.org/mod_mbox/jakarta-slide-user/200309.mbox/[EMAIL
 PROTECTED]

Regards,
Roy Russo
JBoss Portal Developer
 

Re: PUT of large file locks Collection?

2005-03-22 Thread Oliver Zeigermann
Yes.

Oliver


On Mon, 21 Mar 2005 16:36:17 -1000, Seth Ladd <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am testing PUT with a large file.  While the file is being uploaded,
> no other clients are able to list the contents of the collection.  Does
> using PUT into a collection lock the collection?
> 
> Thanks very much!
> Seth
> 
> --
> http://www.picklematrix.net/foaf.rdf";>Seth Ladd's FOAF
> http://www.foaf-project.org/";>What is FOAF?
> 
> -
> 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: PUT of large file locks Collection?

2005-03-22 Thread Seth Ladd
Thanks, Oliver.
Is there a way to turn this locking off?  I'd like others to be able to 
access the collection while a file is being uploaded, if possible. 
Otherwise, it seems like I'll have to make a collection for each large 
file, to isolate it so that its locks won't affect others.

Thanks again!
Seth
Oliver Zeigermann wrote:
Yes.
Oliver
On Mon, 21 Mar 2005 16:36:17 -1000, Seth Ladd <[EMAIL PROTECTED]> wrote:
Hello,
I am testing PUT with a large file.  While the file is being uploaded,
no other clients are able to list the contents of the collection.  Does
using PUT into a collection lock the collection?
Thanks very much!
Seth
--
http://www.picklematrix.net/foaf.rdf";>Seth Ladd's FOAF
http://www.foaf-project.org/";>What is FOAF?
-
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]

--
http://www.picklematrix.net/foaf.rdf";>Seth Ladd's FOAF
http://www.foaf-project.org/";>What is FOAF?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Way to LOCK for Read?

2005-03-22 Thread Seth Ladd
Hello,
Is there a way to configure Slide so that a client may LOCK a file, and 
thus prevent any reading of the file from other clients?  By first come, 
first serve LOCK, I can ensure that only one client will be able to 
process the file.

Any tips or tricks are much appreciated.  Thanks very much!
Seth
--
http://www.picklematrix.net/foaf.rdf";>Seth Ladd's FOAF
http://www.foaf-project.org/";>What is FOAF?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Custom authentication with WCK (WebDav Construction Kit) / JAASLoginModule

2005-03-22 Thread C Kramer

(BYou will also need to turn off Slide's secrity constraints in Domain.xml
(BOtherwise only user with login name "root" will have full rights, etc.
(B
(BBill Keese wrote:
(B>  Is anyone using WCK with custom authentication? The wiki documentation
(B> is a little weak about the configuration steps. Any help would be
(B> appreciated!
(B> As far as I can tell, these are the steps, but I'd love to get
(B> confirmation from someone.
(B> 
(B> 1. Create class (example: com.mycompany.myproduct.MyLoginManager) that
(B> extends
(B> org.apache.slide.simple.authentication.SessionAuthenticationManager
(B> 
(B> 
(B> 2. Create jaas.config file like this, in WEB-INF/conf directory.
(B> 
(B> slide_login {
(B> org.apache.slide.simple.authentication.JAASLoginModule required
(B> factoryClassName=com.mycompany.myproduct.MyLoginManager
(B> slideRole=anonymous;
(B> };
(B> 
(B> 3. Specify jaas.config location as parameter to JVM
(B> -Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config
(B> 
(B> 4. Do I have to do something to disable Slide's default user checking? I
(B> read that on the wiki or the Slide site but now I can't find it.
(B> Maybe I edit slide.properties like this:
(B> org.apache.slide.security=false
(B> 
(B> Or, do I comment out the  section in web.xml?
(B> 
(B> 5. Edit web.xml to have code like this somewhere:
(B> 
(B> appName="slide_login" 
(B>  userClassNames="org.apache.slide.jaas.spi.SlidePrincipal" 
(B>  roleClassNames="org.apache.slide.jaas.spi.SlideRole" 
(B>  debug="99"
(B>  useContextClassLoader="false"
(B>   />
(B> 
(B> 
(B> 
(B> Bill
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Custom authentication with WCK (WebDav Construction Kit) / JAASLoginModule

2005-03-22 Thread Bill Keese
Thanks! But specifically how do I turn off security constraints in
(BDomain.xml? Is it the  tag? Or something else?
(B
(B
(BC Kramer wrote:
(B
(B>You will also need to turn off Slide's secrity constraints in Domain.xml
(B>Otherwise only user with login name "root" will have full rights, etc.
(B>
(B>Bill Keese wrote:
(B>  
(B>
(B>> Is anyone using WCK with custom authentication? The wiki documentation
(B>>is a little weak about the configuration steps. Any help would be
(B>>appreciated!
(B>>As far as I can tell, these are the steps, but I'd love to get
(B>>confirmation from someone.
(B>>
(B>>1. Create class (example: com.mycompany.myproduct.MyLoginManager) that
(B>>extends
(B>>org.apache.slide.simple.authentication.SessionAuthenticationManager
(B>>
(B>>
(B>>2. Create jaas.config file like this, in WEB-INF/conf directory.
(B>>
(B>>slide_login {
(B>>org.apache.slide.simple.authentication.JAASLoginModule required
(B>>factoryClassName=com.mycompany.myproduct.MyLoginManager
(B>>slideRole=anonymous;
(B>>};
(B>>
(B>>3. Specify jaas.config location as parameter to JVM
(B>>-Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config
(B>>
(B>>4. Do I have to do something to disable Slide's default user checking? I
(B>>read that on the wiki or the Slide site but now I can't find it.
(B>>Maybe I edit slide.properties like this:
(B>>org.apache.slide.security=false
(B>>
(B>>Or, do I comment out the  section in web.xml?
(B>>
(B>>5. Edit web.xml to have code like this somewhere:
(B>>
(B>>  > appName="slide_login" 
(B>> userClassNames="org.apache.slide.jaas.spi.SlidePrincipal" 
(B>> roleClassNames="org.apache.slide.jaas.spi.SlideRole" 
(B>> debug="99"
(B>> useContextClassLoader="false"
(B>>  />
(B>>
(B>>
(B>>
(B>>Bill
(B>>
(B>>
(B>
(B>
(B>-
(B>To unsubscribe, e-mail: [EMAIL PROTECTED]
(B>For additional commands, e-mail: [EMAIL PROTECTED]
(B>
(B>
(B>
(B>  
(B>
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]