Re: [BUGS] LDAP Authentication with spaces in DN

2008-07-24 Thread Tom Lane
=?iso-8859-1?Q?C=E9sar_Miguel_Oliveira_Alves?= <[EMAIL PROTECTED]> 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 i

Re: [BUGS] LDAP Authentication with spaces in DN

2008-07-24 Thread César Miguel Oliveira Alves
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 a