You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by oz...@apache.org on 2004/06/23 15:26:59 UTC
cvs commit: jakarta-slide/src/doc howto-create-users.xml project.xml
ozeigermann 2004/06/23 06:26:59
Modified: docs news.html changelog.html xp.html howto-deltav.html
download.html osx.html config_file.html faq.html
getting-started.html howto-j2eestore.html
installation.html webdav-client.html conf-lib.html
howto-acl.html contrib.html index.html
howto-jaas.html howto-bind.html architecture.html
roadmap.html howto-tomcat.html
src/doc project.xml
Added: docs howto-create-users.html
src/doc/images/creating-users image009.jpg image010.jpg
image007.jpg image002.jpg image011.jpg image013.jpg
image008.jpg image003.jpg image004.gif image012.jpg
image001.jpg image005.jpg image006.jpg
docs/images/creating-users image006.jpg image007.jpg
image004.gif image002.jpg image008.jpg image009.jpg
image001.jpg image011.jpg image013.jpg image010.jpg
image012.jpg image003.jpg image005.jpg
src/doc howto-create-users.xml
Removed: docs project.html
Log:
Added how to create users contributed by Paul Hussein
Revision Changes Path
1.60 +3 -0 jakarta-slide/docs/news.html
Index: news.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/news.html,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- news.html 18 Jun 2004 21:47:26 -0000 1.59
+++ news.html 23 Jun 2004 13:26:56 -0000 1.60
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.57 +3 -0 jakarta-slide/docs/changelog.html
Index: changelog.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/changelog.html,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- changelog.html 18 Jun 2004 21:47:26 -0000 1.56
+++ changelog.html 23 Jun 2004 13:26:56 -0000 1.57
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.12 +3 -0 jakarta-slide/docs/xp.html
Index: xp.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/xp.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- xp.html 18 Jun 2004 21:47:26 -0000 1.11
+++ xp.html 23 Jun 2004 13:26:57 -0000 1.12
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.8 +3 -0 jakarta-slide/docs/howto-deltav.html
Index: howto-deltav.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/howto-deltav.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- howto-deltav.html 18 Jun 2004 21:47:26 -0000 1.7
+++ howto-deltav.html 23 Jun 2004 13:26:57 -0000 1.8
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.15 +3 -0 jakarta-slide/docs/download.html
Index: download.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/download.html,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- download.html 18 Jun 2004 21:47:26 -0000 1.14
+++ download.html 23 Jun 2004 13:26:57 -0000 1.15
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.12 +3 -0 jakarta-slide/docs/osx.html
Index: osx.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/osx.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- osx.html 18 Jun 2004 21:47:26 -0000 1.11
+++ osx.html 23 Jun 2004 13:26:57 -0000 1.12
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.12 +3 -0 jakarta-slide/docs/config_file.html
Index: config_file.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/config_file.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- config_file.html 18 Jun 2004 21:47:26 -0000 1.11
+++ config_file.html 23 Jun 2004 13:26:57 -0000 1.12
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.33 +3 -0 jakarta-slide/docs/faq.html
Index: faq.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/faq.html,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- faq.html 18 Jun 2004 21:47:26 -0000 1.32
+++ faq.html 23 Jun 2004 13:26:57 -0000 1.33
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.12 +3 -0 jakarta-slide/docs/getting-started.html
Index: getting-started.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/getting-started.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- getting-started.html 18 Jun 2004 21:47:27 -0000 1.11
+++ getting-started.html 23 Jun 2004 13:26:57 -0000 1.12
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.15 +3 -0 jakarta-slide/docs/howto-j2eestore.html
Index: howto-j2eestore.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/howto-j2eestore.html,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- howto-j2eestore.html 18 Jun 2004 21:47:26 -0000 1.14
+++ howto-j2eestore.html 23 Jun 2004 13:26:57 -0000 1.15
@@ -110,6 +110,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.50 +3 -0 jakarta-slide/docs/installation.html
Index: installation.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/installation.html,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- installation.html 18 Jun 2004 21:47:26 -0000 1.49
+++ installation.html 23 Jun 2004 13:26:57 -0000 1.50
@@ -110,6 +110,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.26 +3 -0 jakarta-slide/docs/webdav-client.html
Index: webdav-client.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/webdav-client.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- webdav-client.html 18 Jun 2004 21:47:26 -0000 1.25
+++ webdav-client.html 23 Jun 2004 13:26:57 -0000 1.26
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.42 +3 -0 jakarta-slide/docs/conf-lib.html
Index: conf-lib.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/conf-lib.html,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- conf-lib.html 18 Jun 2004 21:47:26 -0000 1.41
+++ conf-lib.html 23 Jun 2004 13:26:57 -0000 1.42
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.8 +3 -0 jakarta-slide/docs/howto-acl.html
Index: howto-acl.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/howto-acl.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- howto-acl.html 18 Jun 2004 21:47:26 -0000 1.7
+++ howto-acl.html 23 Jun 2004 13:26:57 -0000 1.8
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.62 +3 -0 jakarta-slide/docs/contrib.html
Index: contrib.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/contrib.html,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- contrib.html 23 Jun 2004 05:10:49 -0000 1.61
+++ contrib.html 23 Jun 2004 13:26:57 -0000 1.62
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.45 +3 -0 jakarta-slide/docs/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/index.html,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- index.html 18 Jun 2004 21:47:27 -0000 1.44
+++ index.html 23 Jun 2004 13:26:57 -0000 1.45
@@ -110,6 +110,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.7 +3 -0 jakarta-slide/docs/howto-jaas.html
Index: howto-jaas.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/howto-jaas.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- howto-jaas.html 18 Jun 2004 21:47:26 -0000 1.6
+++ howto-jaas.html 23 Jun 2004 13:26:57 -0000 1.7
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.8 +3 -0 jakarta-slide/docs/howto-bind.html
Index: howto-bind.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/howto-bind.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- howto-bind.html 18 Jun 2004 21:47:26 -0000 1.7
+++ howto-bind.html 23 Jun 2004 13:26:57 -0000 1.8
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.42 +3 -0 jakarta-slide/docs/architecture.html
Index: architecture.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/architecture.html,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- architecture.html 18 Jun 2004 21:47:26 -0000 1.41
+++ architecture.html 23 Jun 2004 13:26:57 -0000 1.42
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.9 +3 -0 jakarta-slide/docs/roadmap.html
Index: roadmap.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/roadmap.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- roadmap.html 18 Jun 2004 21:47:26 -0000 1.8
+++ roadmap.html 23 Jun 2004 13:26:57 -0000 1.9
@@ -108,6 +108,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.44 +3 -0 jakarta-slide/docs/howto-tomcat.html
Index: howto-tomcat.html
===================================================================
RCS file: /home/cvs/jakarta-slide/docs/howto-tomcat.html,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- howto-tomcat.html 18 Jun 2004 21:47:26 -0000 1.43
+++ howto-tomcat.html 23 Jun 2004 13:26:57 -0000 1.44
@@ -110,6 +110,9 @@
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
+<li>
+<a href="howto-create-users.html">Creating Users</a>
+</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
1.1 jakarta-slide/docs/howto-create-users.html
Index: howto-create-users.html
===================================================================
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Jakarta Slide - Creating Users</title>
<meta value="Paul Hussein" name="author">
<meta value="paul.hussein@jrc.it" name="email">
</head>
<body vlink="#525D76" alink="#525D76" link="#525D76" text="#000000" bgcolor="#ffffff">
<table cellspacing="4" width="100%" border="0">
<!--PAGE HEADER-->
<tr>
<td colspan="2">
<!--JAKARTA LOGO--><a href="http://jakarta.apache.org/"><img border="0" alt="The Jakarta Project" align="left" src="./images/jakarta-logo.gif"></a>
<!--PROJECT LOGO--><a href="http://jakarta.apache.org/slide/"><img border="0" alt="The Jakarta Slide Project" align="right" src="./images/Slide.gif"></a></td>
</tr>
<!--HEADER SEPARATOR-->
<tr>
<td colspan="2">
<hr size="1" noshade="">
</td>
</tr>
<tr>
<!--LEFT SIDE NAVIGATION-->
<td nowrap="true" valign="top" width="20%">
<p>
<strong>Main</strong>
</p>
<ul>
<li>
<a href="index.html">Introduction</a>
</li>
<li>
<a href="architecture.html">Architecture</a>
</li>
<li>
<a href="news.html">News</a>
</li>
<li>
<a href="roadmap.html">Roadmap</a>
</li>
<li>
<a href="faq.html">FAQ</a>
</li>
<li>
<a href="download.html">Downloads</a>
</li>
<li>
<a href="contrib.html">Contributors</a>
</li>
<li>
<a href="http://jakarta.apache.org/site/mail2.html#Slide">Mailing Lists</a>
</li>
<li>
<a href="changelog.html">Changelog</a>
</li>
<li>
<a href="http://nagoya.apache.org/bugzilla">Query Bug Database</a>
</li>
<li>
<a href="http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=Slide">Enter a Bug</a>
</li>
<li>
<a href="http://jakarta.apache.org/site/cvsindex.html">CVS</a>
</li>
<li>
<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?SlideProjectPages">Wiki</a>
</li>
</ul>
<p>
<strong>User's Guide</strong>
</p>
<ul>
<li>
<a href="xp.html">Connecting with Windows XP</a>
</li>
<li>
<a href="osx.html">Using MacOS X webdav_fs</a>
</li>
<li>
<a href="webdav-client.html">Commandline Client</a>
</li>
</ul>
<p>
<strong>Administrator's Guide</strong>
</p>
<ul>
<li>
<a href="installation.html">Installation</a>
</li>
<li>
<a href="conf-lib.html">Configuration</a>
</li>
<li>
<a href="howto-tomcat.html">Tomcat Bundle</a>
</li>
<li>
<a href="howto-j2eestore.html">J2EE Integration</a>
</li>
<li>
<a href="howto-acl.html">Security</a>
</li>
<li>
<a href="howto-deltav.html">Version Control</a>
</li>
<li>
<a href="howto-bind.html">Binding</a>
</li>
<li>
<a href="howto-jaas.html">JAAS LoginModule</a>
</li>
<li>
<a href="howto-create-users.html">Creating Users</a>
</li>
</ul>
<p>
<strong>Programmer's Corner</strong>
</p>
<ul>
<li>
<a href="getting-started.html">Getting Started using Eclipse</a>
</li>
<li>
<a href="javadoc/index.html">Server JavaDoc</a>
</li>
<li>
<a href="clientjavadoc/index.html">WebDAV Client Javadoc</a>
</li>
</ul>
</td>
<!--RIGHT SIDE MAIN BODY--><td align="left" valign="top" width="80%">
<body>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Creating%20Users"><strong>Creating Users</strong></a></font></td>
</tr>
<tr>
<td>
<blockquote>
<p>There exists a non-standard mechanism to add users to the
system using the WebDAV protocol. This cannot be used on another WebDAV server
only with the Slide implementation. I am going to do this by using the tool DAV
Explorer avaliable at <a href="http://www.ics.uci.edu/~webdav/" target="_blank">http://www.ics.uci.edu/~webdav/</a>.
I believe this depends upon you having the Slide Realm as the default
authentication mechanism for Slide. This is the default if you have installed
the Tomcat bundle.</p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Adding%20a%20user"><strong>Adding a user</strong></a></font></td>
</tr>
<tr>
<td>
<blockquote>
<ol>
<li>Connecting<br>
<p>Using Dav Explorer connect to the WebDAV server. You need to connect to the
directory '/slide' as this contains the configuration hirerchy. Thus if you are
running the Slide server on the same machine as the client ( Dav Explorer ) you
connect to <a href="http://127.0.0.1:8080/slide" target="_blank">http://127.0.0.1:8080/slide</a>,
and use the default admin username and password as 'root, 'root'.</p>
<p>
<img border="0" width="575" height="291" src="images/creating-users/image001.jpg"><br>
<br>
</p>
</li>
<li>Adding the User<br>
<p>Under
the directory /slide you will find a directory 'users' in which there are
already directories for the preconfigured users </p>
<p>
<img border="0" width="575" height="291" src="images/creating-users/image002.jpg"></p>
<p>Create a collection under /slide/users with the name of the
collection set to the name of the user.'guest' 'john' 'john2' and 'root'. To
create another user, in the file menu of DAV Explorer is 'create collection'</p>
<p>
<img border="0" width="575" height="293" src="images/creating-users/image003.jpg"><img border="0" width="32" height="32" src="images/creating-users/image004.gif"></p>
<p>Use this to create a collection under the 'users' directory
with the name of the collection set to the username. In this example I am going
to create a user with the username 'test'.</p>
<p>
<img border="0" width="575" height="291" src="images/creating-users/image005.jpg"></p>
<p>Thus, under the 'users' collection, you should see the new collection 'test'.</p>
<p>
<img border="0" width="576" height="292" src="images/creating-users/image006.jpg"></p>
<p>Creating a collection in this directory creates a user within
slide.</p>
</li>
<li>Setting the password.<br>
<p>The next step is
to set the password for this user.</p>
<p>
<img border="0" width="575" height="292" src="images/creating-users/image007.jpg"></p>
<p>Using DAV
Explorer select the new collection you have created, in this instance 'test'
and open the 'View/Modify Properties' window. From this window you should be
able to edit the properties associated with the collection.</p>
<p>
<img border="0" width="576" height="291" src="images/creating-users/image008.jpg"></p>
<p>Using the 'Add'
button, add a property as follows :</p>
<p>Tag : password</p>
<p>Namespace : <a href="http://jakarta.apache.org/slide/Value">http://jakarta.apache.org/slide/</a>
</p>
<p>Value: <password></p>
<p>
<img border="0" width="576" height="292" src="images/creating-users/image009.jpg"></p>
<p>For this example
I am going to set the password to 'testpassword'. Make sure then to save and
check the property is set correctly. They should now appear in the property
sheet for the collection.</p>
<p>
<img border="0" width="575" height="289" src="images/creating-users/image010.jpg"></p>
<p>The user is now
created, but before we can test the logon, we need to give the user access to
the system by assigning a role.</p>
</li>
<li>Assigning a role.<br>
<p>You give access to the new user to the directories of slide by adding the user
to the list of users allowed in the role. That is you can take the role xml
from Domain.xml and add your user in the same format, and save it with property
name 'group-member-set' with namespace 'DAV:'</p>
<p>If you look inside the file Domain.xml, which in the
bundled slide is under the slide directory, you will find an XML string
defining which users are added to role 'user'.</p>
<pre>
<p>
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/roles/user"><br>
<revision><br>
<property name="group-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/users/john</D:href><D:href
xmlns:D='DAV:'>/users/john2</D:href><D:href
xmlns:D='DAV:'>/users/root</D:href>]]></property><br>
</revision><br>
</objectnode></p>
</pre>
<p>We need to take
this xml form of the property 'group-member-set', add our user to it and set it
as a property of the collection 'user'. In this
example I am going to add the new user 'test' to the role 'user'. To do this we open the
collection /slide/roles and under there we should find the collection 'user'
which corresponds to the role 'user'</p>
<p>
<img border="0" width="575" height="291" src="images/creating-users/image011.jpg"></p>
<p>Again in the
same way as above, open the properties sheet for this collection, and then add
a property as follows :
<br>
Name : group-member-set</p>
<br>
<p><D:href
xmlns:D='DAV:'>/users/test</D:href><D:href
xmlns:D='DAV:'>/users/john</D:href><D:href
xmlns:D='DAV:'>/users/john2</D:href><D:href
xmlns:D='DAV:'>/users/root</D:href>]]></p>
<p>The part I have
added is '<strong><D:href
xmlns:D='DAV:'>/users/test</D:href>' </strong>which
is highlighted above. It seems a little complicated, and is. </p>
<p>
<img border="0" width="576" height="290" src="images/creating-users/image012.jpg"></p>
<br>
<p>Check carefully before you save away as
when you open the property sheet again, you will not be able to see this value
again. Note, that this operation is not cumulative, so if you want to add
another user you will need to insert the other users you added and your new
user to the original string from Domain.xml. I just save the last value in
another property in the 'user' collection.</p>
</li>
<li>Testing the logon.<br>
<p>All
should be now correct to test the logon. So close or open another DAV Explorer,
this time connecting to <a href="http://127.0.0.1:8080/slide/files">http://127.0.0.1:8080/slide/files</a>
and enter the new user details.</p>
<p style="margin-bottom:12.0pt">
<img border="0" width="576" height="341" src="images/creating-users/image013.jpg"><br>
<br>
</p>
</li>
</ol>
</blockquote>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="References"><strong>References</strong></a></font></td>
</tr>
<tr>
<td>
<blockquote>
<p>
<a href="http://www.mail-archive.com/slide-user@jakarta.apache.org/msg06231.html">http://www.mail-archive.com/slide-user@jakarta.apache.org/msg06231.html</a>
</p>
<p>
<a href="http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05798.html" target="_blank">http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05798.html</a>
<br>
<a href="http://jakarta.apache.org/slide/howto-acl.html" target="_blank">http://jakarta.apache.org/slide/howto-acl.html</a>
<br>
<a href="http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05981.html" target="_blank">http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05981.html</a>
</p>
</blockquote>
</td>
</tr>
</table>
</blockquote>
</td>
</tr>
</table>
</body>
</td>
</tr>
<!--FOOTER SEPARATOR-->
<tr>
<td colspan="2">
<hr size="1" noshade="">
</td>
</tr>
<!--PAGE FOOTER-->
<tr>
<td colspan="2">
<div align="center">
<font size="-1" color="#525D76"><em>
Copyright © 1999-2004, Apache Software Foundation
</em></font>
</div>
</td>
</tr>
</table>
</body>
</html>
1.1 jakarta-slide/src/doc/images/creating-users/image009.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image010.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image007.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image002.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image011.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image013.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image008.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image003.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image004.gif
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image012.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image001.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image005.jpg
<<Binary file>>
1.1 jakarta-slide/src/doc/images/creating-users/image006.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image006.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image007.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image004.gif
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image002.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image008.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image009.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image001.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image011.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image013.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image010.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image012.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image003.jpg
<<Binary file>>
1.1 jakarta-slide/docs/images/creating-users/image005.jpg
<<Binary file>>
1.35 +1 -0 jakarta-slide/src/doc/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/src/doc/project.xml,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- project.xml 18 Jun 2004 21:47:28 -0000 1.34
+++ project.xml 23 Jun 2004 13:26:59 -0000 1.35
@@ -39,6 +39,7 @@
<item name="Version Control" href="howto-deltav.html"/>
<item name="Binding" href="howto-bind.html"/>
<item name="JAAS LoginModule" href="howto-jaas.html"/>
+ <item name="Creating Users" href="howto-create-users.html"/>
</menu>
<menu name="Programmer's Corner">
<item name="Getting Started using Eclipse" href="getting-started.html"/>
1.1 jakarta-slide/src/doc/howto-create-users.xml
Index: howto-create-users.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<properties>
<author email="paul.hussein@jrc.it">Paul Hussein</author>
<title>Creating Users</title>
</properties>
<body>
<section name="Creating Users">
<p>There exists a non-standard mechanism to add users to the
system using the WebDAV protocol. This cannot be used on another WebDAV server
only with the Slide implementation. I am going to do this by using the tool DAV
Explorer avaliable at <a href="http://www.ics.uci.edu/~webdav/" target="_blank">http://www.ics.uci.edu/~webdav/</a>.
I believe this depends upon you having the Slide Realm as the default
authentication mechanism for Slide. This is the default if you have installed
the Tomcat bundle.</p>
<subsection name="Adding a user">
<ol>
<li>Connecting<br/>
<p>Using Dav Explorer connect to the WebDAV server. You need to connect to the
directory '/slide' as this contains the configuration hirerchy. Thus if you are
running the Slide server on the same machine as the client ( Dav Explorer ) you
connect to <a href="http://127.0.0.1:8080/slide" target="_blank">http://127.0.0.1:8080/slide</a>,
and use the default admin username and password as 'root, 'root'.</p>
<p><img
border="0" width="575" height="291" src="images/creating-users/image001.jpg"/><br/>
<br/>
</p>
</li>
<li>Adding the User<br/>
<p>Under
the directory /slide you will find a directory 'users' in which there are
already directories for the preconfigured users </p>
<p><img
border="0" width="575" height="291" src="images/creating-users/image002.jpg"/></p>
<p>Create a collection under /slide/users with the name of the
collection set to the name of the user.'guest' 'john' 'john2' and 'root'. To
create another user, in the file menu of DAV Explorer is 'create collection'</p>
<p><img border="0" width="575" height="293"
src="images/creating-users/image003.jpg"/><img border="0" width="32"
height="32" src="images/creating-users/image004.gif"/></p>
<p>Use this to create a collection under the 'users' directory
with the name of the collection set to the username. In this example I am going
to create a user with the username 'test'.</p>
<p><img border="0" width="575" height="291"
src="images/creating-users/image005.jpg"/></p>
<p>Thus, under the 'users' collection, you should see the new collection 'test'.</p>
<p><img border="0" width="576" height="292"
src="images/creating-users/image006.jpg"/></p>
<p>Creating a collection in this directory creates a user within
slide.</p>
</li>
<li>Setting the password.<br/>
<p>The next step is
to set the password for this user.</p>
<p><img border="0" width="575" height="292"
src="images/creating-users/image007.jpg"/></p>
<p>Using DAV
Explorer select the new collection you have created, in this instance 'test'
and open the 'View/Modify Properties' window. From this window you should be
able to edit the properties associated with the collection.</p>
<p><img border="0" width="576" height="291"
src="images/creating-users/image008.jpg"/></p>
<p>Using the 'Add'
button, add a property as follows :</p>
<p>Tag : password</p>
<p>Namespace : <a href="http://jakarta.apache.org/slide/Value">http://jakarta.apache.org/slide/</a></p>
<p>Value: <password></p>
<p><img border="0"
width="576" height="292" src="images/creating-users/image009.jpg"/></p>
<p>For this example
I am going to set the password to 'testpassword'. Make sure then to save and
check the property is set correctly. They should now appear in the property
sheet for the collection.</p>
<p><img border="0" width="575" height="289"
src="images/creating-users/image010.jpg"/></p>
<p>The user is now
created, but before we can test the logon, we need to give the user access to
the system by assigning a role.</p>
</li>
<li>Assigning a role.<br/>
<p>You give access to the new user to the directories of slide by adding the user
to the list of users allowed in the role. That is you can take the role xml
from Domain.xml and add your user in the same format, and save it with property
name 'group-member-set' with namespace 'DAV:'</p>
<p>If you look inside the file Domain.xml, which in the
bundled slide is under the slide directory, you will find an XML string
defining which users are added to role 'user'.</p>
<pre>
<p>
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/roles/user"><br/>
<revision><br/>
<property name="group-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/users/john</D:href><D:href
xmlns:D='DAV:'>/users/john2</D:href><D:href
xmlns:D='DAV:'>/users/root</D:href>]]></property><br/>
</revision><br/>
</objectnode></p>
</pre>
<p>We need to take
this xml form of the property 'group-member-set', add our user to it and set it
as a property of the collection 'user'. In this
example I am going to add the new user 'test' to the role 'user'. To do this we open the
collection /slide/roles and under there we should find the collection 'user'
which corresponds to the role 'user'</p>
<p><img
border="0" width="575" height="291" src="images/creating-users/image011.jpg"/></p>
<p>Again in the
same way as above, open the properties sheet for this collection, and then add
a property as follows :
<br/>
Name : group-member-set</p>
<br/>
<p><D:href
xmlns:D='DAV:'>/users/test</D:href><D:href
xmlns:D='DAV:'>/users/john</D:href><D:href
xmlns:D='DAV:'>/users/john2</D:href><D:href
xmlns:D='DAV:'>/users/root</D:href>]]></p>
<p>The part I have
added is '<strong><D:href
xmlns:D='DAV:'>/users/test</D:href>' </strong>which
is highlighted above. It seems a little complicated, and is. </p>
<p><img border="0" width="576" height="290"
src="images/creating-users/image012.jpg"/></p>
<br/>
<p>Check carefully before you save away as
when you open the property sheet again, you will not be able to see this value
again. Note, that this operation is not cumulative, so if you want to add
another user you will need to insert the other users you added and your new
user to the original string from Domain.xml. I just save the last value in
another property in the 'user' collection.</p>
</li>
<li>Testing the logon.<br/>
<p>All
should be now correct to test the logon. So close or open another DAV Explorer,
this time connecting to <a href="http://127.0.0.1:8080/slide/files">http://127.0.0.1:8080/slide/files</a>
and enter the new user details.</p>
<p style='margin-bottom:12.0pt'><img border="0"
width="576" height="341" src="images/creating-users/image013.jpg"/><br/>
<br/>
</p>
</li>
</ol>
</subsection>
<subsection name="References">
<p><a
href="http://www.mail-archive.com/slide-user@jakarta.apache.org/msg06231.html">http://www.mail-archive.com/slide-user@jakarta.apache.org/msg06231.html</a></p>
<p><a
href="http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05798.html"
target="_blank">http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05798.html</a><br/>
<a href="http://jakarta.apache.org/slide/howto-acl.html" target="_blank">http://jakarta.apache.org/slide/howto-acl.html</a><br/>
<a
href="http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05981.html"
target="_blank">http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05981.html</a>
</p>
</subsection>
</section>
</body>
</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org