Re: LDAP Authentication with spaces in DN - Mailing list pgsql-bugs

From César Miguel Oliveira Alves
Subject Re: LDAP Authentication with spaces in DN
Date
Msg-id 209F5D5B39EDD711A7A80000F810D18E0102FA17@hercules.caso.pt
Whole thread Raw
In response to LDAP Authentication with spaces in DN  (César Miguel Oliveira Alves <calves@caso.pt>)
Responses Re: LDAP Authentication with spaces in DN
List 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

pgsql-bugs by date:

Previous
From: Craig Ringer
Date:
Subject: Re: BUG #4322: Problems with field not updatable
Next
From: Tom Lane
Date:
Subject: Re: LDAP Authentication with spaces in DN