Re: LDAP Authentication with spaces in DN
От | César Miguel Oliveira Alves |
---|---|
Тема | Re: LDAP Authentication with spaces in DN |
Дата | |
Msg-id | 209F5D5B39EDD711A7A80000F810D18E0102FA17@hercules.caso.pt обсуждение исходный текст |
Ответ на | LDAP Authentication with spaces in DN (César Miguel Oliveira Alves <calves@caso.pt>) |
Ответы |
Re: LDAP Authentication with spaces in DN
|
Список | pgsql-bugs |
<div class="Section1"><p class="MsoNormal"><font color="navy" face="Arial" size="2"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Digginginto postgres sources found the problem. File auth.c in line1376 does some ldap configuration parse using sscanf with the mask “ldap://%127[^:]:%d/%127[^;];%127[^;];%127s”. Thesscanf function reads until it finds a blank space, tab or new line, so if the string contains any blank space after thelast ‘:’ everything else is ignored! </span></font><p class="MsoNormal"><font color="navy" face="Arial" size="2"><spanlang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font><p class="MsoNormal"><fontcolor="navy" face="Arial" size="2"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">PS:I’m using postgres 8.3.0 </span></font></div>
В списке pgsql-bugs по дате отправления: