RE: Did anybody successfully authentiate with Slide beta 2
Thanks. Finally got it working with your inputs. Andrey Shulinsky <[EMAIL PROTECTED]> wrote:Hi! Try to add and change to in the tomcat-users.xml It should help. However, I can't be sure about this, sorry, I use SlideRealm in my app. Sincerely yours, Andrey. > -Original Message- > From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 09, 2004 12:58 PM > To: [EMAIL PROTECTED] > Subject: RE: Did anybody successfully authentiate with Slide beta 2 > Importance: Low > > Hi, > Thanks for answering. I do have the users defined in > tomcat-users.xml as: > > > > > > > > > > > > > Please see the root user. This is the user that i use to log > in. I am now getting a 403 - Access is forbidden. > > Any ideas? > > I am reproducing the domain.xml below: > > > > > logger-level="6" > default="slide"> > > > > > classname="org.apache.slide.store.impl.rdbms.JDBCStore"> > org.gjt.mm.mysql.Driver > > name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAda pter > jdbc:mysql://localhost:3306/slide1 > > root > > > > false > > > > > > > > > > > > > > > classname="org.apache.slide.store.impl.rdbms.JDBCStore"> > org.gjt.mm.mysql.Driver > > name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAda pter > jdbc:mysql://localhost:3306/slide1 > > root > > > > false > > > > > > > /actions/read > /actions/write > /actions/write > /actions/write-acl > /actions/write-acl > /actions/read-acl > > /actions/read-current-user-privilege-set > > /actions/write > /actions/unlock > /actions/read > > /actions/read > > /actions/write-properties> vision-metadata> > > /actions/write-properties> vision-metadata> > > /actions/write-properties> vision-metadata> > > /actions/read > > /actions/write-content> on-content> > > /actions/write-content> on-content> > > /actions/write-content> on-content> > /actions/bind > /actions/unbind > > /users > /roles > /actions > /files > true > true > path > > 1 means one sublevel, etc. --> > 0 > > > > classname="org.apache.slide.structure.SubjectNode" > uri="/"> > > any user "all" > authenticated user "authenticated" > unauthenticated user "unauthenticated" > self "self" > owner of resource"owner" > a user "/users/john" > a role "/roles/admin" > --> > > inheritable="true"/> > --> > > inheritable="true"/> > > inheritable="true"/> > > inheritable="true"/> > > inheritable="true" negative="true"/> > > inheritable="true" negative="true"/> > > inheritable="true" negative="true"/> > > inheritable="true"/> > > > classname="org.apache.slide.structure.SubjectNode" uri="/users"> > > inheritable="true"/> > > subject="unauthenticated" inheritable="true" negative="true"/>--> > > subject="/users/root" > inheritable="true"/> > > inheritable="true"/> > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/root"> > > > namespace="http://jakarta.apache.org/slide/"; > name="password">root > > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/admin"> > > > namespace="http://jakarta.apache.org/slide/"; > name="password">admin > > > > authenticated users --> > > classname="org.apache.slide.structure.SubjectNode" uri="/users/john"> > > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/john2"> > > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > > authenticated or unauthenticated guest user --> > > classname="org.apache.slide.structure.SubjectNode" uri="/users/guest"> > > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > > > > classname="org.apache.slide.structure.SubjectNode" uri="/roles"> > > inheritable="true"/>--> > > inheritable="true"/> > > subject="unauthenticated" > inheritable="true" negative="true"/>--> > > classname="org.apache.slide.structure.SubjectNode" uri="/roles/root"> > > > name="group-member-set">> xmlns:D='DAV:'>/users/root]]> > > > > classname="org.apache.slide.structure.SubjectNode" uri="/roles/user"> > > > name="group-member-set">> xmlns:D='DAV:'>/users/john> xmlns:D='DAV:'>/users/john2> > xmlns:D='DAV:'>/users/root]]> > > > > classname="org.apache.slide.structure.SubjectNode" uri="/roles/guest"> > > > name="group-member-set">> xmlns:D='DAV:'>/users/guest]]> > > > > > > classname="org.apache.slide.structure.ActionNode" uri="/actions"> > > classname="org.apache.slide.structure.ActionNode" uri="/actions/read"> > > > name="privilege-member-set">> xmlns:D='DAV:'>/actions/read-acl > > xmlns:D='DAV:'>/actions/read-current-user-privilege-set> f>]]> > > > > classname="org.apache.slide.structure.ActionNode" > uri="/actions/read-acl"> > > > > > > classname="org.apache.slide.structu
RE: Did anybody successfully authentiate with Slide beta 2
try adding root,user and guest roles at tomcat-users.xml and users for each role: Which version of Tomcat are you using ? Try it with 4.1.3 or higher Regards, El mar, 09-03-2004 a las 17:58, Gaurav Khanna escribió: > Hi, > Thanks for answering. I do have the users defined in tomcat-users.xml as: > > > > > > > > > > > > > Please see the root user. This is the user that i use to log in. I am now getting a > 403 - Access is forbidden. > > Any ideas? > > I am reproducing the domain.xml below: > > > > default="slide"> > > > > > org.gjt.mm.mysql.Driver > name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter > jdbc:mysql://localhost:3306/slide1 > > root > > > > false > > > > > > > > > > > > > > > org.gjt.mm.mysql.Driver > name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter > jdbc:mysql://localhost:3306/slide1 > > root > > > > false > > > > > > > /actions/read > /actions/write > /actions/write > /actions/write-acl > /actions/write-acl > /actions/read-acl > > /actions/read-current-user-privilege-set > /actions/write > /actions/unlock > /actions/read > /actions/read > > /actions/write-properties > > /actions/write-properties > > /actions/write-properties > /actions/read > /actions/write-content > /actions/write-content > /actions/write-content > /actions/bind > /actions/unbind > > /users > /roles > /actions > /files > true > true > path > > 0 > > > > > > > > > inheritable="true" negative="true"/> > inheritable="true" negative="true"/> > inheritable="true" negative="true"/> > > > uri="/users"> > > > inheritable="true"/> > > > uri="/users/root"> > > http://jakarta.apache.org/slide/"; > name="password">root > > > uri="/users/admin"> > > namespace="http://jakarta.apache.org/slide/"; name="password">admin > > > > uri="/users/john"> > > http://jakarta.apache.org/slide/"; > name="password"/> > > > uri="/users/john2"> > > http://jakarta.apache.org/slide/"; > name="password"/> > > > > uri="/users/guest"> > > http://jakarta.apache.org/slide/"; > name="password"/> > > > > > uri="/roles"> > > inheritable="true"/> > > uri="/roles/root"> > > > > > uri="/roles/user"> > > > > > uri="/roles/guest"> > > > > > > > uri="/actions"> > uri="/actions/read"> > > > > > uri="/actions/read-acl"> > > > > > uri="/actions/read-current-user-privilege-set"> > > > > > uri="/actions/write"> > > > > > uri="/actions/write-acl"> > >
RE: Did anybody successfully authentiate with Slide beta 2
Hi! Try to add and change to in the tomcat-users.xml It should help. However, I can't be sure about this, sorry, I use SlideRealm in my app. Sincerely yours, Andrey. > -Original Message- > From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 09, 2004 12:58 PM > To: [EMAIL PROTECTED] > Subject: RE: Did anybody successfully authentiate with Slide beta 2 > Importance: Low > > Hi, > Thanks for answering. I do have the users defined in > tomcat-users.xml as: > > > > > > > > > > > > > Please see the root user. This is the user that i use to log > in. I am now getting a 403 - Access is forbidden. > > Any ideas? > > I am reproducing the domain.xml below: > > > > logger-level="6" > default="slide"> > > > > classname="org.apache.slide.store.impl.rdbms.JDBCStore"> > org.gjt.mm.mysql.Driver > name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAda pter > jdbc:mysql://localhost:3306/slide1 > > root > > > > false > > > > > > > > > > > > > > classname="org.apache.slide.store.impl.rdbms.JDBCStore"> > org.gjt.mm.mysql.Driver > name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAda pter > jdbc:mysql://localhost:3306/slide1 > > root > > > > false > > > > > > > /actions/read > /actions/write > /actions/write > /actions/write-acl > /actions/write-acl > /actions/read-acl > > /actions/read-current-user-privilege-set > > /actions/write > /actions/unlock > /actions/read > > /actions/read > > /actions/write-properties vision-metadata> > > /actions/write-properties vision-metadata> > > /actions/write-properties vision-metadata> > > /actions/read > > /actions/write-content on-content> > > /actions/write-content on-content> > > /actions/write-content on-content> > /actions/bind > /actions/unbind > > /users > /roles > /actions > /files > true > true > path > > 0 > > > classname="org.apache.slide.structure.SubjectNode" > uri="/"> > > > inheritable="true"/> > inheritable="true"/> > inheritable="true"/> > inheritable="true" negative="true"/> > inheritable="true" negative="true"/> > inheritable="true" negative="true"/> > inheritable="true"/> > > classname="org.apache.slide.structure.SubjectNode" uri="/users"> > inheritable="true"/> > > subject="/users/root" > inheritable="true"/> > inheritable="true"/> > > classname="org.apache.slide.structure.SubjectNode" uri="/users/root"> > > namespace="http://jakarta.apache.org/slide/"; > name="password">root > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/admin"> > > namespace="http://jakarta.apache.org/slide/"; > name="password">admin > > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/john"> > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/john2"> > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/guest"> > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > > > classname="org.apache.slide.structure.SubjectNode" uri="/roles"> > > inheritable="true"/> > > classname="org.apache.slide.structure.SubjectNode" uri="/roles/root"> > > name="group-member-set"> > >
RE: Did anybody successfully authentiate with Slide beta 2
Hi, Thanks for answering. I do have the users defined in tomcat-users.xml as: Please see the root user. This is the user that i use to log in. I am now getting a 403 - Access is forbidden. Any ideas? I am reproducing the domain.xml below: org.gjt.mm.mysql.Driver org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter jdbc:mysql://localhost:3306/slide1 root false org.gjt.mm.mysql.Driver org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter jdbc:mysql://localhost:3306/slide1 root false /actions/read /actions/write /actions/write /actions/write-acl /actions/write-acl /actions/read-acl /actions/read-current-user-privilege-set /actions/write /actions/unlock /actions/read /actions/read /actions/write-properties /actions/write-properties /actions/write-properties /actions/read /actions/write-content /actions/write-content /actions/write-content /actions/bind /actions/unbind /users /roles /actions /files true true path 0 http://jakarta.apache.org/slide/"; name="password">root http://jakarta.apache.org/slide/"; name="password">admin http://jakarta.apache.org/slide/"; name="password"/> http://jakarta.apache.org/slide/"; name="password"/> http://jakarta.apache.org/slide/"; name="password"/> /history /workspace /workingresour
RE: Did anybody successfully authentiate with Slide beta 2
Hi! Do you use Tomcat as your web container? If you do, you might try to user Slide realm for authentication purpose. To do it, change the default realm (in server.xml): to Then everything should work fine (if you don't use SSL connection - in this case you should store encrypted passwords instead of the plain text ones). If you don't want to use Slide realm, you have to have roles and users both in Slide and in whatever storage your Tomcat uses (tomcat-users.xml file if you use the default MemoryRealm), as far as I know. By the way, am I correct in this assumption? Sincerely yours, Andrey. > -Original Message- > From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 09, 2004 11:52 AM > To: [EMAIL PROTECTED] > Subject: Did anybody successfully authentiate with Slide beta 2 > Importance: Low > > Hi, > I am using Slide beta 2 and wanted to authenticate as root so > this is what I did: > . went and uncommented out the and the > in the web.xml. > . Updated the domain.xml and assigned /users/root to /roles/root > > Tried to authenticate and got a 401. I am reproducing the > domain.xml below. Does anybody have any ideas on this? > > Thanks > > > > Domain.xml > > > > > > > classname="org.apache.slide.store.impl.rdbms.JDBCStore"> > org.gjt.mm.mysql.Driver > name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAda pter > jdbc:mysql://localhost:3306/slide1 > > root > > > > false > > > > > > > > > > > > > > classname="org.apache.slide.store.impl.rdbms.JDBCStore"> > org.gjt.mm.mysql.Driver > name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAda pter > jdbc:mysql://localhost:3306/slide1 > > root > > > > false > > > > > > > /actions/read > /actions/write > /actions/write > /actions/write-acl > /actions/write-acl > /actions/read-acl > > /actions/read-current-user-privilege-set > > /actions/write > /actions/unlock > /actions/read > > /actions/read > > /actions/write-properties vision-metadata> > > /actions/write-properties vision-metadata> > > /actions/write-properties vision-metadata> > > /actions/read > > /actions/write-content on-content> > > /actions/write-content on-content> > > /actions/write-content on-content> > /actions/bind > /actions/unbind > > /users > /roles > /actions > /files > true > true > path > > 0 > > > classname="org.apache.slide.structure.SubjectNode" > uri="/"> > > inheritable="true"/> > inheritable="true" negative="true"/> > inheritable="true" negative="true"/> > inheritable="true" negative="true"/> > inheritable="true"/> > > classname="org.apache.slide.structure.SubjectNode" uri="/users"> > inheritable="true"/> > > > > uri="/users/root"> > > http://jakarta.apache.org/slide/"; > name="password">root > > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/john"> > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/john2"> > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > > classname="org.apache.slide.structure.SubjectNode" uri="/users/guest"> > > namespace="http://jakarta.apache.org/slide/"; name="password"/> > > > > > classname="org.apache.slide.structure.SubjectNode" uri="/roles"> > > inheritable="true"/> > > classname="org.apache.slide.structure.SubjectNode" uri="/roles/root"> > > name="group-member-set"> > > > classname="org.apache.slide.structure.SubjectNode" uri="/roles/user"> >
Did anybody successfully authentiate with Slide beta 2
Hi, I am using Slide beta 2 and wanted to authenticate as root so this is what I did: . went and uncommented out the and the in the web.xml. . Updated the domain.xml and assigned /users/root to /roles/root Tried to authenticate and got a 401. I am reproducing the domain.xml below. Does anybody have any ideas on this? Thanks Domain.xml org.gjt.mm.mysql.Driver org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter jdbc:mysql://localhost:3306/slide1 root false org.gjt.mm.mysql.Driver org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter jdbc:mysql://localhost:3306/slide1 root false /actions/read /actions/write /actions/write /actions/write-acl /actions/write-acl /actions/read-acl /actions/read-current-user-privilege-set /actions/write /actions/unlock /actions/read /actions/read /actions/write-properties /actions/write-properties /actions/write-properties /actions/read /actions/write-content /actions/write-content /actions/write-content /actions/bind /actions/unbind /users /roles /actions /files true true path 0 http://jakarta.apache.org/slide/"; name="password">root http://jakarta.apache.org/slide/"; name="password"/> http://jakarta.apache.org/slide/"; name="password"/> http://jakarta.apache.org/slide/"; name="password"/> /history /workspace /workingresource checkout-checkin false forbidden forbidden - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
Re: Deadlock when 2 node stores point to the same resource
Hi, "Willie Vu" <[EMAIL PROTECTED]> writes: > > However since > > ever J2EE store has its own connections, there are separate > > SQL transactions started for each store. If the stores share > > the same tables, there could be deadlocks, if the complete > > table is locked. However I would expect, that > > two stores would never access the same rows. So a database, > > which locks only at row level should work fine. > > > > So far I did not find any deadlocks using > > Postgres/OldJDBCAdapter and separate stores for / and /history. > > > > I can reproduce the problem with MySQL 4.x using Slide 2.0 Beta 1. The > configuration is simple: > > > > > It will cause the following exception: > > 09 Mar 2004 11:47:54 - org.apache.slide.store.impl.rdbms.JDBCStore - DEBUG - > Getting current connection for thread Thread[main,5,main] > 09 Mar 2004 11:48:45 - org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter - > ERROR - SQL error 1205 on /: General error: Lock wait timeout exceeded; Try > restarting transaction > 09 Mar 2004 11:48:45 - org.apache.slide.common.SlideException - DEBUG - > org.apache.slide.common.ServiceAccessException: Service > [EMAIL PROTECTED] access error : General error: > Lock wait timeout exceeded; Try restarting transaction > at > org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter.createException(MySqlRDBMSAd > apter.java:60) > at do you know, how MySQL locks a database? Does it lock the complete table or just rows or is using some other mechanism to handle concurrent access? Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAAS LoginModule
Hi I'm pretty new to Slide (and webdav for that matter) and am still getting my head mangled by it (a few days a newbie). I think it is an awesome thing that creates major opportunities when integrating to our open source application server, congrats to the developers on the code base so far. The documentation however does not help in many situations which is why i subscribed to this list, i already have a a number of questions: 1) I have just managed to get the JAAS LoginModule working in our application server which uses Jetty (we r moving away from tomcat). Using the JAAS loginmodule looked like the only way to do it with Jetty, and we had quite a few probs getting it working. But something strange is happening, when I log in as 'root' just using a browser at '/slide/files' for example The Domain.xml file gets loaded up again? is this meant to happen. It caused a lot of problems at first because when it happend it could not find 'Domain.xml' . When i start the app up it loads the Domain.xml perfectly. But when it looks to load it a second time after a root login (for example) it just looks for 'Domain.xml' without a path. the solution is to copy the Domain.xml file to somewhere in the class path but this is obviously slightly different for our application server particularly since the JAAS slide realm is cretead programaticatlly outside of jetty. #my login.config for JAAS is : slide { org.apache.slide.jaas.spi.SlideLoginModule required namespace=slide; }; here is the log output including trace when it fails to find domain.xml on a login : 09 Mar 2004 12:07:57 - org.apache.slide.common.Domain - INFO - Auto-Initializing Domain 09 Mar 2004 12:07:57 - org.apache.slide.common.Domain - INFO - Domain configuration : {org.apache.slide.lock=true, org.apache.slide.versioncontrol=true, org.apache.slide.debug=false, org.apache.slide.search=true, org.apache.slide.security=true, org.apache.slide.urlEncoding=UTF-8} 09 Mar 2004 12:07:57 - org.apache.slide.common.Domain - ERROR - Domain initialization error : Domain.xml (No such file or directory) 12:07:57.169 WARN!! javax.security.auth.login.LoginException: org.apache.slide.common.DomainInitializationFailedError: Domain initialization error : Domain.xml (No such file or directory) at org.apache.slide.common.Domain.selfInit(Domain.java:766) at org.apache.slide.common.Domain.accessNamespace(Domain.java:237) at org.apache.slide.jaas.spi.SlideLoginModule.initialize(SlideLoginModule.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.mortbay.jaas.JAASUserRealm.authenticate(JAASUserRealm.java:212) at org.mortbay.http.BasicAuthenticator.authenticated(BasicAuthenticator.java:50) at org.mortbay.http.SecurityConstraint.check(SecurityConstraint.java:415) at org.mortbay.http.HttpContext.checkSecurityConstraints(HttpContext.java:1552) at org.mortbay.jetty.servlet.ServletHttpContext.checkSecurityConstraints(ServletHttpContext.java:134) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:235) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1808) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1758) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501) 12:07:57.173 WARN!! AUTH FAILURE: user root 09 Mar 2004 12:08:04 - org.apache.slide.common.Domain - INFO - Auto-Initializing Domain 09 Mar 2004 12:08:04 - org.apache.slide.common.Domain - INFO - Domain configuration : {org.apache.slide.lock=true, org.apache.slide.