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

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group