Store database users in custom table
am 20.03.2010 00:19:10 von Antoine POPINEAUThis is a cryptographically signed message in MIME format.
--------------ms070003040605040403050409
Content-Type: multipart/mixed;
boundary="------------040100060804010000050606"
This is a multi-part message in MIME format.
--------------040100060804010000050606
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Hi,
I am developping a Java application, and using a PostgreSQL backend=20
database. Theorically, there might be lots of users, each with=20
potentially different permissions over the different tables.
I could add those user to the database with a classic CREATE USER, but=20
that doesn't seem efficient to me, since I've already got a custom table =
with users data and, amongst others, password.
So my question is simple (the answer might not be, though): is there a=20
possibility to tell Postgres to fetch user logins and passwords in a=20
custom table (perhaps respecting a certain schema) instead of the=20
default location?
Thank you.
Antoine POPINEAU.
--------------040100060804010000050606
Content-Type: text/x-vcard; charset=utf-8;
name="apognu.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="apognu.vcf"
begin:vcard
fn:Antoine POPINEAU
n:POPINEAU;Antoine
org:Antoine POPINEAU
adr:;;24 rue du Berry;Chevilly-Larue;;94550;France
email;internet:apognu@akegroup.org
tel;cell:+33 6 84 83 01 34
x-mozilla-html:FALSE
url:http://www.apognu.net
version:2.1
end:vcard
--------------040100060804010000050606--
--------------ms070003040605040403050409
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIHEDCC
A4QwggJsoAMCAQICAUgwDQYJKoZIhvcNAQEFBQAwVjESMBAGA1UEChMJQUtF IEdyb3VwMQsw
CQYDVQQGEwJGUjESMBAGA1UEAxMJQUtFIEdyb3VwMR8wHQYJKoZIhvcNAQkB FhBha2VAYWtl
Z3JvdXAub3JnMB4XDTEwMDEyOTE4MjUwNVoXDTExMDEyOTE4MjUwNVowgYUx EjAQBgN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