Hi Dirk,
I have still not been able to solve the authorization
problem while uploading a file.Since I have registered
here after January 13th I dont have the mail u were
talking abt.It would be really nice if u could fwd me
the mail.I am attching my domain.xml file along with
this mail as well.
Regards..
 
--- A SG <[EMAIL PROTECTED]> wrote:
> I had already followed the steps mentioned by you
> but
> still I am getting the same error.I had also tried
> to
> login as another user and made the following change
> in
> the command line client.
> httpURL.setUserInfo("john", "john");
> Since I have registered only a few days back i.e
> after
> Jan-13 th I dont have that mail "Logging Into Slide
> from client" .It would be really nice if anyone
> could
> fwd that mail to me.
> Regards
> Soumya.
> --- Dirk Verbeeck <[EMAIL PROTECTED]> wrote:
> > You probably want to open a connection to 
> > http://localhost:8080/slide/files/
> > 
> > but first enable write access to guest by changing
> > domain.xml:
> >           <!-- ### Give read/write/manage
> permission
> > to guest ### 
> >                Uncomment the following line to
> give
> > permission to do
> >                all actions on /files to guest
> > (unauthenticated users)
> > -->
> >           <permission action="/actions"
> > subject="/users/guest"/> 
> > 
> > See also the mail "Logging Into Slide from
> client",
> > 13 Jan
> > 
> > I should make a FAQ item of this :-)
> > 
> > 
> > Dirk
> > 
> > A SG wrote:
> > > 
> > > Hi guys,
> > > Can anyone help me regarding the problem
> described
> > > below.I want to download a file from webdav
> > server.
> > > --- A SG <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > > I am using the cmd line webdav client Slide.I
> am
> > > > able
> > > > to connect to the webdav server and also able
> to
> > > > download files from webdav server.But when I
> am
> > > > trying
> > > > to download a file from webdav server I am
> > facing
> > > > some
> > > > authorization error.
> > > > The error log is given below.
> > > >
> > F:\jakarta-slide-1.0.16\build\client\classes>java
> > > > org.apache.webdav.cmd.Slide
> > > > [ Slide ] $ open
> > > > Enter http URL: http://localhost:8080/
> > > > [LOCALHOST] / $ put index.html
> > > > Uploading  'index.html' to '/index.html':
> > failed.
> > > > Forbidden (403)
> > > > [LOCALHOST] / $
> > > >
> > > > ------------
> > > > I guess the userid with which I am logging in
> > does
> > > > not
> > > > have write permissions.
> > > > My questions are
> > > > 1)How do I log in with an userid which has
> write
> > > > permission with this command line utility.
> > > > 2)In which configuration file are the user ids
> > and
> > > > their permissions to resources mentined.
> > > >
> > > > Regards
> > > >
> > > >
> > > >
> > __________________________________________________
> > > > Do You Yahoo!?
> > > > Send FREE video emails in Yahoo! Mail!
> > > > http://promo.yahoo.com/videomail/
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > >
> > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > >
> > > 
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Send FREE video emails in Yahoo! Mail!
> > > http://promo.yahoo.com/videomail/
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions! 
> http://auctions.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com
<?xml version="1.0"?>

<slide logger="org.apache.slide.util.logger.SimpleLogger" logger-level="6">
  
  <namespace name="webdav">
    
    <definition>
      
      <store name="memory">
        <!--nodestore classname="slidestore.reference.JDBCDescriptorsStore">
         <parameter name="driver">org.hsql.jdbcDriver</parameter>
         <parameter name="url">HypersonicSQL:slide</parameter>
         <parameter name="user">sa</parameter>
         <parameter name="password"></parameter>
        </nodestore>
        <securitystore>
          <reference store="nodestore" />
        </securitystore>
        <lockstore>
          <reference store="nodestore" />
        </lockstore>
        <revisiondescriptorsstore>
          <reference store="nodestore" />
        </revisiondescriptorsstore>
        <revisiondescriptorstore>
          <reference store="nodestore" />
        </revisiondescriptorstore-->
        <!--contentstore classname="slidestore.reference.JDBCContentStore">
         <parameter name="driver">org.hsql.jdbcDriver</parameter>
         <parameter name="url">HypersonicSQL:slidecontent</parameter>
         <parameter name="user">sa</parameter>
         <parameter name="password"></parameter>
        </contentstore-->
        <contentstore classname="slidestore.reference.FileContentStore">
          <parameter name="rootpath">files</parameter>
        </contentstore>
      </store>
      
      <scope match="/" store="memory" />
      
    </definition>
    
    <configuration>

      <!-- Actions mapping -->
      <default-action>/actions</default-action>
      <read-object>/actions/read</read-object>
      <create-object>/actions/write</create-object>
      <remove-object>/actions/write</remove-object>
      <grant-permission>/actions/manage</grant-permission>
      <revoke-permission>/actions/manage</revoke-permission>
      <read-permissions>/actions/manage</read-permissions>
      <lock-object>/actions/write</lock-object>
      <kill-lock>/actions/manage</kill-lock>
      <read-locks>/actions/read</read-locks>
      <read-revision-metadata>/actions/read</read-revision-metadata>
      <create-revision-metadata>/actions/write</create-revision-metadata>
      <modify-revision-metadata>/actions/write</modify-revision-metadata>
      <remove-revision-metadata>/actions/write</remove-revision-metadata>
      <read-revision-content>/actions/read</read-revision-content>
      <create-revision-content>/actions/write</create-revision-content>
      <modify-revision-content>/actions/write</modify-revision-content>
      <remove-revision-content>/actions/write</remove-revision-content>

      <!-- Paths configuration -->
      <userspath>/users</userspath>
      <guestpath>guest</guestpath>
      <filespath></filespath>
      <parameter name="dav">true</parameter>
      <parameter name="standalone">true</parameter>

      <!-- Roles definition -->
      <role name="admin">slideroles.basic.RootRole</role>
      <role name="user">slideroles.basic.UserRole</role>
      <role name="guest">slideroles.basic.GuestRole</role>

      <!-- Users management -->
      <auto-create-users>true</auto-create-users>

      <!-- Default properties mapping -->
      <default-property name="foo" namespace="nsfoo/" value="bar"
       role="user"/>
      <default-property name="password" namespace="slide/" value=""
       role="user"/>

    </configuration>
    
    <data>
      
      <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
        
        <permission action="/actions" subject="admin"/>
        <permission action="/actions/read" subject="user"
         inheritable="false"/>
        <permission action="/actions/read" subject="nobody"
         inheritable="false"/>
        
        <!-- /users represents the unauthenticated user -->
        
        <objectnode classname="org.apache.slide.structure.SubjectNode" 
         uri="/users">
          
          <permission action="/actions" subject="~"/>
          <permission action="/actions" subject="guest"
           inheritable="true" negative="true"/>
          <permission action="/actions/read" subject="user"
           inheritable="false"/>

          <!-- Permission group example -->
          
          <objectnode classname="org.apache.slide.structure.GroupNode" 
            uri="/users/groupA">
             <objectnode classname="org.apache.slide.structure.LinkNode" 
                uri="/users/groupA/john" linkedUri="/users/john" />
             <objectnode classname="org.apache.slide.structure.LinkNode" 
                uri="/users/groupA/root" linkedUri="/users/root" />
             <objectnode classname="org.apache.slide.structure.SubjectNode" 
               uri="/users/groupA/singleGroupMember"  />
          </objectnode>

          <!-- /users/root represents the administrator -->
          
          <objectnode classname="slideroles.basic.RootRoleImpl" 
           uri="/users/root">
            <revision>
              <property name="password">root</property>
            </revision>
          </objectnode>
          
          <!-- /users/john represents an authenticated user -->
          
          <objectnode classname="slideroles.basic.UserRoleImpl" 
           uri="/users/john">
            <revision>
              <property name="password">john</property>
            </revision>
          </objectnode>
          
          <!-- /users/guest represents an authenticated or unauthenticated 
               guest user -->
          
          <objectnode classname="slideroles.basic.GuestRoleImpl" 
           uri="/users/guest">
            <revision>
              <property name="password"></property>
            </revision>
          </objectnode>
          
        </objectnode>
        
        <objectnode classname="org.apache.slide.structure.ActionNode" 
         uri="/actions">
          
          <objectnode classname="org.apache.slide.structure.ActionNode" 
           uri="/actions/read"/>
          
          <objectnode classname="org.apache.slide.structure.ActionNode" 
           uri="/actions/write"/>
          
          <objectnode classname="org.apache.slide.structure.ActionNode" 
           uri="/actions/manage"/>
          
        </objectnode>
        
        <objectnode classname="org.apache.slide.structure.SubjectNode" 
         uri="/files">
          
          <permission action="/actions/manage" subject="/users/john"/>
          <permission action="/actions/write" subject="+/users/groupA"/>
          <permission action="/actions/write" subject="/users/guest"/>
          <permission action="/actions/write" subject="/users/john"/>
          <permission action="/actions/read" subject="nobody"/>
          
        </objectnode>
        
      </objectnode>
      
    </data>
    
  </namespace>
  
</slide>

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

Reply via email to