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

From Tom Lane
Subject Re: LDAP Authentication with spaces in DN
Date
Msg-id 8585.1216921966@sss.pgh.pa.us
Whole thread Raw
In response to Re: LDAP Authentication with spaces in DN  (César Miguel Oliveira Alves <calves@caso.pt>)
List pgsql-bugs
César Miguel Oliveira Alves <calves@caso.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


pgsql-bugs by date:

Previous
From: César Miguel Oliveira Alves
Date:
Subject: Re: LDAP Authentication with spaces in DN
Next
From: Zdenek Kotala
Date:
Subject: Re: BUG #4319: lower()/upper() does not know about UNICODE case mapping