Re: LDAP Authentication with spaces in DN

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: César Miguel Oliveira Alves <calves(at)caso(dot)pt>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: LDAP Authentication with spaces in DN
Date: 2008-07-24 17:52:46
Message-ID: 8585.1216921966@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?iso-8859-1?Q?C=E9sar_Miguel_Oliveira_Alves?= <calves(at)caso(dot)pt> writes:
> Digging into postgres sources found the problem. File auth.c in line 1376
> does some ldap configuration parse using sscanf with the mask
> "ldap://%127[^:]:%d/%127[^;];%127[^;];%127s". The sscanf function reads
> until it finds a blank space, tab or new line, so if the string contains any
> blank space after the last ':' everything else is ignored!

Fixed, thanks for the report!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Zdenek Kotala 2008-07-25 08:17:56 Re: BUG #4319: lower()/upper() does not know about UNICODE case mapping
Previous Message César Miguel Oliveira Alves 2008-07-24 10:53:55 Re: LDAP Authentication with spaces in DN