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>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: User names |
Date: | 2001-01-23 04:43:06 |
Message-ID: | 200101230443.XAA06689@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Can someone comment on this?
> "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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-01-23 04:47:40 | Re: PL/Python (was: Re: [GENERAL] Re: Trigger) |
Previous Message | Guy Fraser | 2001-01-23 04:23:54 | Re: Dropping a column |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-01-23 04:46:56 | Re: [PORTS] PostgreSQL pre-7.1 Linux/Alpha Status... |
Previous Message | Bruce Momjian | 2001-01-23 04:36:28 | Re: Unknown-type resolution rules, redux |