Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 924F64759E8 for ; Fri, 14 Jun 2002 06:35:49 -0400 (EDT) Received: from mail4.worldserver.net (mail4.worldserver.net [217.13.192.24]) by postgresql.org (Postfix) with SMTP id 6A1514759C7 for ; Fri, 14 Jun 2002 06:35:48 -0400 (EDT) Received: (qmail 6776 invoked by uid 507); 14 Jun 2002 10:35:49 -0000 Received: from unknown (HELO bluemoon) (webmaster@mpd-online.de@217.1.1.8) by 0 with SMTP; 14 Jun 2002 10:35:49 -0000 From: "Michael P. Dobmeier" To: Subject: Some questions regarding authentication (via pg_hba.conf password pwfile) Date: Fri, 14 Jun 2002 12:35:51 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200206/98 X-Sequence-Number: 4533 Hello, first I'm sorry for my english, but I hope you can understand my following problems and questions. as I spent much time in getting information about the posibilities with authentification in postreSQL there are some questions left. I didn't found any answers to this questions so I hope you can help me. I've configured the pg_hba.conf that way users only have access to a database (db), if there is a password given in the corresponding passwordfile (db_pw_file). (host db XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX password db_pw_file) This works fine so far. As it's written in http://www.postgresql.org/idocs/index.php?auth-methods.html#AUTH-PASSWORD the SQL-command CREATE USER ... WITH PASSWORD as well as ALTER USER ... WITH PASSWORD won't change the passwords in the corresponding passwordfiles. So my questions now are: 1. Are there any other posibilities to change the password, or is the pg_passwd-tool the only one? 2. Do I have a possibility to change this passwords with a SQL-Command or a Java-Servlet (in a secure way)? 3. As I used the pg_passwd-tool the usernames were truncated to a length of 8 chars. Is there a possibility to use usernames with more than 8 chars with this authentication-method? Many thanks, Michael