Re: [GENERAL] User names

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Glen and Rosanne Eustace <agree(at)godzone(dot)net(dot)nz>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] User names
Date: 2001-01-24 14:45:02
Message-ID: 200101241445.JAA20940@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


Seems like a bug that needs fixing.

> "Glen and Rosanne Eustace" <agree(at)godzone(dot)net(dot)nz> writes:
> > Is there a defined max length for postgreSQL user names ?
> > If there is and it is 8, then createuser should enforce it.
> > If the length is > 8 then pg_passwd needs fixing so that it doesn't
> > truncate.
>
> A quick look in the pg_passwd sources indeed shows some hardwired limits
> on both username and password length. This is bogus. Anyone want to
> contribute a patch?
>
> For the record, the max username length should be NAMEDATALEN-1, and
> the password field in pg_shadow is 'text', so it should be happy to
> take any password that you're willing to type ;-). However, crypt
> password processing depends on crypt(3), which more than likely ignores
> characters beyond the eighth on most platforms.
>
> regards, tom lane
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Klimov 2001-01-24 14:48:19 LO to text conversion
Previous Message Mirko Zeibig 2001-01-24 14:43:38 JDBC: java.lang.ArrayIndexOutOfBoundsException: 256

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-01-24 14:46:15 Re: Inline Comments for pg_dump
Previous Message Bruce Momjian 2001-01-24 14:44:36 Re: Bug in FOREIGN KEY