You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "MUCHIRI,WAHOME (HP-PaloAlto,ex1)" <wa...@hp.com> on 2002/07/11 19:03:59 UTC

Creating and removing users

Hi folks,
I am builiding a client application for content management that talks to
slide running on tomcat 4.0.3.
I'd like to implement a user management piece in java that can do the
following:
-create a new user
-remove a user
-change a user's password
-assign a role to the user (optionally create a new  role and assign it to
the user)

The current slide client (specifically 'webdavresource') does not support
such functionality. I have looked at the slide-admin web application to get
an idea of how to simulate that browser experience and turn it into a
programmatic interface. However, that does not give me a complete picture of
all the steps that i need to implement to make this piece work.In
particular, I'd like to open a connection to the slide server, make an
appropriate request to slide to either create/remove/edit a user, and then
close the connection. 
ANY help would be greatly appreciated.
Wahome


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Creating and removing users

Posted by Thomas Schueppel <t....@bit-side.com>.
hi,

I think you should be able to do all the necessary
steps using webdav. Something like this:

$ copy /users/template /users/newuser
$ proppatch /users/newuser password newpassword

should do the work. I tried this some time ago on
slide 1 and could log into the new account.
You would also have to add ACLs via Webdav if
necessary.

l8r...
	Thomas	

-- 
Thomas Schüppel, bit~side GmbH   Fon:   +49+30+394054-28
Salzufer 14a, 10587 Berlin     Fax:   +49+30+394054-50
http://www.bit-side.com        Email: t.schueppel@bit-side.com





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Creating and removing users

Posted by David Leahy <dj...@sandia.gov>.
Hi Wahome,

My project has exactly the same requirements.  Up to now, the only
suggestion I've seen on this list is to work from slide-admin
interface.  There was some talk suggesting some things (particularly
roles) are apparently not well supported in Slide 1.0.16.

I think adding/deleting users and setting passwords should be
manageable, simply because the slide-admin interface already does that. 
I will soon be working on this myself.  I'll be interested to hear about
your plans!

				Dave Leahy
				Sandia National Labs
				925-294-2678
				djleahy@sandia.gov

"MUCHIRI,WAHOME (HP-PaloAlto,ex1)" wrote:
> 
> Hi folks,
> I am builiding a client application for content management that talks to
> slide running on tomcat 4.0.3.
> I'd like to implement a user management piece in java that can do the
> following:
> -create a new user
> -remove a user
> -change a user's password
> -assign a role to the user (optionally create a new  role and assign it to
> the user)
> 
> The current slide client (specifically 'webdavresource') does not support
> such functionality. I have looked at the slide-admin web application to get
> an idea of how to simulate that browser experience and turn it into a
> programmatic interface. However, that does not give me a complete picture of
> all the steps that i need to implement to make this piece work.In
> particular, I'd like to open a connection to the slide server, make an
> appropriate request to slide to either create/remove/edit a user, and then
> close the connection.
> ANY help would be greatly appreciated.
> Wahome
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Creating and removing users

Posted by Christopher Lenz <cm...@gmx.de>.
Christopher Lenz wrote:
> IMHO the WebDAV approach is a bit of a hack. I would suggest creating a 
> little XML-RPC servlet that provides the functionality of the 
> slide-admin application as an RPC interface. Look at 
> http://xml.apache.org/xml-rpc/ for an XML-RPC API that is lightweight 
> yet very easy to use.

Sorry, that should have been: http://xml.apache.org/xmlrpc/

-- 
Christopher Lenz
/=/ cmlenz at gmx.de


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Creating and removing users

Posted by Christopher Lenz <cm...@gmx.de>.
MUCHIRI,WAHOME (HP-PaloAlto,ex1) wrote:
> Hi folks,
> I am builiding a client application for content management that talks to
> slide running on tomcat 4.0.3.
> I'd like to implement a user management piece in java that can do the
> following:
> -create a new user
> -remove a user
> -change a user's password
> -assign a role to the user (optionally create a new  role and assign it to
> the user)
> 
> The current slide client (specifically 'webdavresource') does not support
> such functionality. I have looked at the slide-admin web application to get
> an idea of how to simulate that browser experience and turn it into a
> programmatic interface. However, that does not give me a complete picture of
> all the steps that i need to implement to make this piece work.In
> particular, I'd like to open a connection to the slide server, make an
> appropriate request to slide to either create/remove/edit a user, and then
> close the connection. 
> ANY help would be greatly appreciated.
> Wahome

If you want to do user management in a remote process, you can either 
use WebDAV (like the suggestion of copying a 'template' user around) or 
roll your own interface. The admin webapp works because it's running in 
the same JVM, so it is indeed not the approach you need.

IMHO the WebDAV approach is a bit of a hack. I would suggest creating a 
little XML-RPC servlet that provides the functionality of the 
slide-admin application as an RPC interface. Look at 
http://xml.apache.org/xml-rpc/ for an XML-RPC API that is lightweight 
yet very easy to use.

-- 
Christopher Lenz
/=/ cmlenz at gmx.de


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>