Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id E2496477086 for ; Wed, 19 Jun 2002 12:11:35 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 329774774A5 for ; Wed, 19 Jun 2002 11:02:17 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 002B838192D; Wed, 19 Jun 2002 11:01:50 -0400 (EDT) From: "Michael P. Dobmeier" X-Newsgroups: comp.databases.postgresql.admin Subject: Some questions regarding authentication (via pg_hba.conf password pwfile) Date: Wed, 19 Jun 2002 17:01:54 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 27 Message-ID: X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-admin@postgresql.org X-Archive-Number: 200206/172 X-Sequence-Number: 4606 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