You can configure the cocoon generator of eXist to use a specific user:
In sitemap-component registration:
<map:generator name="xquery" logger="sitemap.generator.xquery"
src="org.exist.cocoon.XQueryGenerator" user="guest" password="guest"/>
In pipeline:
<map:match pattern="test.xq">
<map:generate src="test.xq" type="xquery">
<map:parameter name="user" value="guest"/>
<map:parameter name="password" value="guest"/>
</map:generate>
<map:serialize encoding="UTF-8" type="xml"/>
</map:match>
Rgards, Kai
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Thomas Soddemann
> Sent: Monday, February 27, 2006 1:22 PM
> To: [email protected]
> Subject: Re: XML:DB user authentification
>
>
> Ok,
>
> I have solved my problem.
> The authentication is coupled to the collection and not to the database
> connection as I had assumed. So one can get a collection with
> getCollection(String collection, String username, String password) and
> then add resources to it, ...
> Maybe this can find its way into the XML:DB pseudo protocol as well?
>
>
> Thanks anyway,
> Thomas
>
> Thomas Soddemann wrote:
>
> >Thanks,
> >
> >the targeted db is currently eXist, but may also be some other like
> >Tamino in future.
> >With xmlrpc everything works fine. When using the XML:DB API the user
> >'guest' is selected by default in eXist.
> >My hope was, that there are some parameters which can shipped with the
> >request to the db, since it is also possible to modify user accounts via
> >the XML:DB UserManagementService (at least if the admin password has not
> >been set ;)).
> >So in general, does anybody know how to set the user when talking to a
> >db via XML:DB?
> >
> >Regards,
> >Thomas
> >
> >P.S.: In all cases, the database is stand alone (remote from a coocon
> >perspective).
> >
> >
> >
> >
> >
> >
>
>
> --
> --------------------------------------------------
> Dr. Thomas Soddemann | Boltzmannstrasse 2
> Projects Engineer | 85748 Garching
> Rechenzentrum der MPG | Germany
> am MPI fuer Plasmaphysik |
> ---------------------------------------------------
> phone: +49 89 3299 2694 | fax: +49 89 3299 1301
> ---------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]