From: philip johnson <philip.johnson@atempo.com>
To: Jean-Christophe ARNU (JX) <jc.arnu@free.fr>
To: pgsql-admin@postgresql.org
Subject: RE: [ADMIN] Ouverture d'une session base de données
Date: Wed, 7 Aug 2002 10:53:09 +0200
Message-ID: <NDBBJLHHAKJFNNCGFBHLEEMFDNAA.philip.johnson@atempo.com> (raw)
In-Reply-To: <20020807083309.2e8024ea.jc.arnu@free.fr>
> > Bonjour,
> Hi
> > Tant pis je poste le message en francais, l'Anglais n'est pas mon
> > fort.
> Sorry to post my message in english but this language is not a bed of
roses
> for me.
>
> > Je met en place un site internet qui contiendra une base postgresql.
> > Lors de l'authentification sur le site, un login et mot de passe sont
> > envoyés.
> I'm setting up an internet site that would use a postgresql database.
> When
> users authentificate on the site, login and password are given.
>
> > Que dois je faire ? utiliser un compte qui va vérifier dans une tale
> > si le mot de passe correspond au login (Donc ouverture d'une session
> > avec un log (par exemple WEBUSER) le temps de la consultation) ou puis
> > je stocker directement les comptes dans cette pg_user (plus facile, et
> > (peut-être) plus simple d'administration), de façon que l'ouverture de
> > la session postgres se fasse avec le login envoyé, cela me permettrait
> > de gerer des groupes, donc les accès.
> What should I do : using an account located in a table with a
corresponding
> password (using a session with logging (for exemple WEBUSER) and consult
time)
> or should I store accounts directly in pg_user table (more simple and
(maybe)
> easier to administrate), in order to get the pg session opened with sent
> login. This would allow me to manage groups and so access.
>
> > Mais s'il ya des milliers d'enregsitrements dans la pg_user, cela ne
> > va-t-il pas ralentir la base ?
> If I get thousands of tuples in pg_user, won't this slow the db down?
>
> > Merci à tous.
> Thanks!
>
>
>
> --------------
> Answer in english
> Hello,
>
> Typically I would suggest to use a dedicated table that describes ACL
> (using
> eventually a special table for grouping). This is a more "portable" way
to do
> this (if authentication changes in PG or if your IT architect decides to
> upgrade your system to another database system).
> I don't think using pg_user would slow database down (I don't know why
it
> would).
take a look at
http://sourceforge.net/project/showfiles.php?group_id=31885&release_id=68493
the phplib has everything you need
> --------------
> Answer in French
> Bonjour
>
> Je vous suggère d'utiliser une table dédié décrivant une liste de
> controle
> d'accés (Access Control List) ( en utilisant éventuellement une table
> supplémentaire spéciale pour les groupes). Cette manière de procéder est
plus
> portable dans le sens où le système d'authentification pourrait changer
d'une
> version de PG à une autre ou i votre architecte IT décide de migrer votre
> système sous une base de données autre)
> Ceci dit je ne pense pas que l'utilisation de pg_user implique un
> ralentissement la base de donné (Je ne vous pas pourquoi ce serait le
cas).
jetez un oeil ici
http://sourceforge.net/project/showfiles.php?group_id=31885&release_id=68493
la phplib contient le code dont vous avez besoin
>
> Cordialement,
>
> --
> Jean-Christophe ARNU
> The true way goes over a rope which is not stretched at any great height
> but just above the ground. It seems more designed to make people stumble
> than to be walked upon.
> -- Franz Kafka
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: philip.johnson@atempo.com, jc.arnu@free.fr
Subject: Re: [ADMIN] Ouverture d'une session base de données
In-Reply-To: <NDBBJLHHAKJFNNCGFBHLEEMFDNAA.philip.johnson@atempo.com>
References: <20020807083309.2e8024ea.jc.arnu@free.fr> <NDBBJLHHAKJFNNCGFBHLEEMFDNAA.philip.johnson@atempo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox