RE: problem starting up slide-2.0rc2
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
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
jakarta-slide-2.0-tomcat-4.1.30 / SlideRealm problem ?
I tried to run the last jakarta-slide-2.0-tomcat-4.1.30 pre-installed release. It works but I get this message in the console : ServerLifecycleListener: Can't create mbean for realm [EMAIL PROTECTED] What is this about ? Thanks Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Slide 2.0 - Webdav API Question / problem.
Hi ! Could someone explain me why the short piece of commented code here after doesn't work ? It seems that the Enumeration returned by getResources() contains null elements within it as I could see in debug mode. Then I coded the good old for loop trying to jump over the null elements. I could get the list of elements (files and subdirectories). In fact the returned list by listResources() is correct, there is in fact no need to check each element. I wonder why the Enumeration contains nulls (getResourceNames() has the same behaviour...). Thanks for any hints ! Olivier P.S. The webdav server is Slide2.0+Tomcat4.1.30 - if (webdavResource.isCollection()) { // Enumeration wdrs = webdavResource.getChildResources().getResources(); // while (wdrs.hasMoreElements()) { // WebdavResource resource = (WebdavResource) wdrs.nextElement(); // recursivelist(resource.getPath()); // } WebdavResource[] listOfResources = webdavResource.getChildResources().listResources(); for(int i=0; i listOfResources.length; i++) { WebdavResource wdr = listOfResources[i]; if (wdr != null) { recursivelist(wdr.getPath()); } } } -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Microsoft Web Folders and authentication
Thanks for help. Here is my server.xml file attached to this mail. Olivier -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mardi 4 mai 2004 19:25 À : Slide Users Mailing List Objet : Re: Microsoft Web Folders and authentication It sounds like your sliderealm is configured incorrectly in your server.xml! Did you set the sliderealm for the slide webapp only or for the entire server - maybe you could post your server.xml so we can see it! /jacob - Original Message - From: Olivier CAUSSE [EMAIL PROTECTED] To: 'Slide Users Mailing List' [EMAIL PROTECTED] Sent: Monday, May 03, 2004 2:39 PM Subject: Microsoft Web Folders and authentication Hello, Am I the only one to have problems with Web Folders (Windows XP) and authentication ? I am using Tomcat 5.0.19 and Slide 2.0 rc1. Tomcat is configured to be able to use SlideRealm. In my Domain.xml file, I set different rights for different users. Then I wanted to check this using a Web Folder on my Windows XP. (BTW. I wonder if the doc http://localhost:8080/slide-doc/xp.html written for slide 1.0.16 is still operative for slide 2.0 rc1). I couldn't login until I set the same users in tomcat-users.xml and Domain.xml. Then I have been asked two times for authentification, first one in order to open a web folder, then to read a file. The ACL were correctly handled for the different users and operated accordingly with my settings in Domain.xml Of course, to be forced to authenticate two times is not desirable, and any hints to solve this problem are welcome. Regards, Olivier - 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: Microsoft Web Folders and authentication
Here is my server.xml again. Thanx Olivier -- !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Comment these entries out to disable JMX MBeans support -- !-- You may also configure custom components (e.g. Valves/Realms) by including your own mbean-descriptor file(s), and setting the descriptors attribute to point to a ';' seperated list of paths (in the ClassLoader sense) of files to add to the default list. e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 5 documentation bundle for more detailed instructions): * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !--
RE: Microsoft Web Folders and authentication
Yes, I mean mean the explorer/webfolder functionality. I connect directly to /slide/files. I will test your suggestion about UserDatabaseRealm. Thanks, Olivier -Message d'origine- De : Jacob Lund [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 mai 2004 16:38 À : Slide Users Mailing List Objet : Re: Microsoft Web Folders and authentication Do you need the default realm? Otherwise try to comment out the UserDatabaseRealm. I am using XP as client, but my server is a purely slide configured. When you say XP as a client, the I assume you mean the explorer/webfolder functionality. Do you connect to the root of the server or directly to /slide? /jacob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: password in Domain.xml
Hi, Thanks to Oliver Zeigermann, on my install (XP, Tomcat 5.0.19), the solution was : A) to update Domain.xml like this : objectnode classname=org.apache.slide.structure.SubjectNode uri=/users/root revision property namespace=http://jakarta.apache.org/slide/; name=passwordany_password_you_want/property /revision /objectnode B)To stop Tomcat, and remove the directory %CATALINA_HOME%\bin\store as Oliver Zeigermann suggested. BTW : After I posted my question to this list, I found this info written somewhere in the documentation, but I can't remember where... ;-) PS : ps - in Oliver's reply, uri=/conf/users/root is incorrect. Should be ps uri=/users/root. I think it was Juan reply in fact (see below). And I believe that all the user creation process needs a global and complete explanation in a single page (see the number of messages about this topic). I wonder why so much info is disseminated on : http://jakarta.apache.org/slide/ , http://www.java-internals.com/code/slide/docs/conf-lib.html , and the slide-doc servlet of the distribution (which is pretty much like http://jakarta.apache.org/slide/ but more up to date I suppose. -Message d'origine- De : Phillip Qin [mailto:[EMAIL PROTECTED] Envoyé : vendredi 30 avril 2004 19:19 À : '[EMAIL PROTECTED]' Objet : password in Domain.xml I tried Oliver's solution. I still didn't need to enter a password in Windows Explorer, browser or webdav client. I tried ![CDATA[passroot]] ![CDATA['passroot']] ![CDATA[passroot]] None of them worked. What am I doing wrong? Regards, PQ Going to war for peace is like having sex for virginity - Original Message - From: Olivier CAUSSE [EMAIL PROTECTED] To: 'Slide Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 9:54 AM Subject: SlideRealm - how to set a password in Domain.xml ? I could install SlideRealm for Tomcat 5. I wonder now how to define new users/passwords. The standard sample Domain.xml contains the following settings for the root user. objectnode classname=org.apache.slide.structure.SubjectNode uri=/users/root revision property namespace=http://jakarta.apache.org/slide/; name=password/ /revision /objectnode The root user has no password value. I tried to add a password value this way : property namespace=http://jakarta.apache.org/slide/; name=passwordpassroot/property as it is mentionned in http://www.mail-archive.com/[EMAIL PROTECTED]/msg04727.html but it doesn't work. What is the correct syntax ? objectnode classname=org.apache.slide.structure.SubjectNode uri=/conf/users/root revision property namespace=http://jakarta.apache.org/slide/; name=password ![CDATA[passroot]] /property /revision /objectnode Regards, Juan Andrés. - 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]
Microsoft Web Folders and authentication
Hello, Am I the only one to have problems with Web Folders (Windows XP) and authentication ? I am using Tomcat 5.0.19 and Slide 2.0 rc1. Tomcat is configured to be able to use SlideRealm. In my Domain.xml file, I set different rights for different users. Then I wanted to check this using a Web Folder on my Windows XP. (BTW. I wonder if the doc http://localhost:8080/slide-doc/xp.html written for slide 1.0.16 is still operative for slide 2.0 rc1). I couldn't login until I set the same users in tomcat-users.xml and Domain.xml. Then I have been asked two times for authentification, first one in order to open a web folder, then to read a file. The ACL were correctly handled for the different users and operated accordingly with my settings in Domain.xml Of course, to be forced to authenticate two times is not desirable, and any hints to solve this problem are welcome. Regards, Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SlideRealm - how to set a password in Domain.xml ?
I could install SlideRealm for Tomcat 5. I wonder now how to define new users/passwords. The standard sample Domain.xml contains the following settings for the root user. objectnode classname=org.apache.slide.structure.SubjectNode uri=/users/root revision property namespace=http://jakarta.apache.org/slide/; name=password/ /revision /objectnode The root user has no password value. I tried to add a password value this way : property namespace=http://jakarta.apache.org/slide/; name=passwordpassroot/property as it is mentionned in http://www.mail-archive.com/[EMAIL PROTECTED]/msg04727.html but it doesn't work. What is the correct syntax ? Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
slide command line client and authentication
Hi, I have used the slide command line client, and I wanted to know if it's possible to open an authenticated connection with this client. I'd like to know that because I got some Forbidden ... 403 messages, and I wondered how to get the needed rights. Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]