You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Mr. White" <we...@googlemail.com> on 2012/04/04 12:08:06 UTC

Creating a user using the API in Java

Hello guys,

i came to realize that the Subversion API is way more complicated than
i thought. I hoped there were functions to create/edit/delete users/
repositories/groups, but the API doesn't offer those simple functions
as far is my research goes.
Could someone give an example on how to create a user with the API in
JavaHL, because i'm really kind of lost in the documentation on
that ... ?

Best regards

Martin

Re: Creating a user using the API in Java

Posted by Mark Phippard <ma...@gmail.com>.
On Wed, Apr 4, 2012 at 6:08 AM, Mr. White <we...@googlemail.com> wrote:

> i came to realize that the Subversion API is way more complicated than
> i thought. I hoped there were functions to create/edit/delete users/
> repositories/groups, but the API doesn't offer those simple functions
> as far is my research goes.

Subversion has no concept of user.  Where your users come from and how
they are maintained is up to you and your server configuration.  For
example, a lot of people use their Windows Active Directory for
authentication.  To create users you add them to active directory.

> Could someone give an example on how to create a user with the API in
> JavaHL, because i'm really kind of lost in the documentation on
> that ... ?

If you are using simply file of users I would recommend using
Subversion Edge for your server.  Subversion Edge provides all the
binaries for Apache, Subversion and ViewVC along with a simple web UI
to configure and manage the server.  Subversion Edge also includes a
REST API which allows you to do things like manage repositories and
users via scripts and programs.  See this blog post:

http://blogs.collab.net/subversion/2012/03/subversion-server-automation/

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: Creating a user using the API in Java

Posted by Andy Levy <an...@gmail.com>.
On Wed, Apr 4, 2012 at 06:08, Mr. White <we...@googlemail.com> wrote:
> Hello guys,
>
> i came to realize that the Subversion API is way more complicated than
> i thought. I hoped there were functions to create/edit/delete users/
> repositories/groups, but the API doesn't offer those simple functions
> as far is my research goes.
> Could someone give an example on how to create a user with the API in
> JavaHL, because i'm really kind of lost in the documentation on
> that ... ?

The API is designed for manipulating the repository contents, and user
accounts are not part of the repository itself. You'll need to write
your own method of manipulating the security configuration files.

You're reinventing the wheel (at least a little) here. uberSVN,
CollabNet Edge, VisualSVN, and others already have this implemented.
There's also svncontrol (http://svncontrol.tigris.org/), though that
may be abandoned at this point.

Re: Creating a user using the API in Java

Posted by Stefan Sperling <st...@elego.de>.
On Wed, Apr 04, 2012 at 03:08:06AM -0700, Mr. White wrote:
> Hello guys,
> 
> i came to realize that the Subversion API is way more complicated than
> i thought. I hoped there were functions to create/edit/delete users/
> repositories/groups, but the API doesn't offer those simple functions
> as far is my research goes.
> Could someone give an example on how to create a user with the API in
> JavaHL, because i'm really kind of lost in the documentation on
> that ... ?
> 
> Best regards
> 
> Martin

The management of user accounts happens in svnserve or httpd
configuration files. There is no Subversion API to edit these files.