Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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: Thu, 24 Jul 2008 13:52:46 -0400
  • Message-id: <8585.1216921966@sss.pgh.pa.us> <text/plain>

=?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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group