Re: LDAP Authentication with spaces in DN

From: César Miguel Oliveira Alves <calves(at)caso(dot)pt>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: LDAP Authentication with spaces in DN
Date: 2008-07-24 10:53:55
Message-ID: 209F5D5B39EDD711A7A80000F810D18E0102FA17@hercules.caso.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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!

PS: I'm using postgres 8.3.0

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2008-07-24 17:52:46 Re: LDAP Authentication with spaces in DN
Previous Message Craig Ringer 2008-07-24 02:14:57 Re: BUG #4322: Problems with field not updatable