You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thomas Soddemann <Th...@rzg.mpg.de> on 2006/02/27 10:42:43 UTC
XML:DB user authentification
Hi folks,
is there a way to speficy the username and password within the XML:DB
pseudo protocol?
Thanks,
Thomas
--
--------------------------------------------------
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: XML:DB user authentification
Posted by Gary Larsen <ga...@envisn.com>.
Hi,
On reading this thread I have a question. Would there be a way to not make
the password available in plain text? This could cause a security concern.
I guess I could customize the XQueryGenerator but it would be nice to avoid
that dependency.
Thanks,
Gary
> Subject: Re: XML:DB user authentification
>
> Excellent,
>
> I have found the docs now, it's in the javadocs of the
> appropriate classes... I should have looked there earlier.
>
> Thanks,
> Thomas
>
> Kai Mütz wrote:
>
> >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
> >
> >
> >
>
> --
> --------------------------------------------------
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: XML:DB user authentification
Posted by Thomas Soddemann <Th...@rzg.mpg.de>.
Excellent,
I have found the docs now, it's in the javadocs of the appropriate
classes... I should have looked there earlier.
Thanks,
Thomas
Kai Mütz wrote:
>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
>
>
>
--
--------------------------------------------------
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: XML:DB user authentification
Posted by Kai Mütz <km...@web.de>.
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: users-return-85502-kmuetz=web.de@cocoon.apache.org
> [mailto:users-return-85502-kmuetz=web.de@cocoon.apache.org]On Behalf Of
> Thomas Soddemann
> Sent: Monday, February 27, 2006 1:22 PM
> To: users@cocoon.apache.org
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: XML:DB user authentification
Posted by Thomas Soddemann <Th...@rzg.mpg.de>.
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: XML:DB user authentification
Posted by Thomas Soddemann <Th...@web.de>.
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).
Johnson wrote:
> in xindice no!
>
> you must block the XML:DB request outside cocoon.
>
> johnson
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: XML:DB user authentification
Posted by Johnson <jo...@erp.tw>.
in xindice no!
you must block the XML:DB request outside cocoon.
johnson
----- Original Message -----
From: "Thomas Soddemann" <Th...@rzg.mpg.de>
To: <us...@cocoon.apache.org>
Sent: Monday, February 27, 2006 5:42 PM
Subject: XML:DB user authentification
> Hi folks,
>
> is there a way to speficy the username and password within the XML:DB
> pseudo protocol?
>
> Thanks,
> Thomas
>
> --
> --------------------------------------------------
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org