Bug #74788 [NEW]: Falha ao executar ldap_connect passando uma lista de servidores

From: Date: Tue, 20 Jun 2017 20:41:56 +0000
Subject: Bug #74788 [NEW]: Falha ao executar ldap_connect passando uma lista de servidores
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209606@lists.php.net to get a copy of this message
From: brenocobra at gmail dot com Operating system: Linux RHEL 7.0 PHP version: 7.0.20 Package: LDAP related Bug Type: Bug Bug description:Falha ao executar ldap_connect passando uma lista de servidores Description: ------------ --- From manual page: http://www.php.net/function.ldap-connect --- No PHP Version 5.3.17 executo o ldap_connect passando uma lista de ip´s de servidores AD e a função identificava o primeiro ativo e a partir deste teste já mando fazer o ldap_bind neste servidor ativo. No PHP Version 7.0.4 executo o ldap_connect passando uma lista de ip´s de servidores AD e recebo o erro " ldap_connect(): Could not create session handle: Bad parameter to an ldap routine " "ESTE ERRO OCORRE APENAS QUANDO PASSO UMA "LISTA DE IP´S"" Test script: --------------- if ($ds = ldap_connect("IP1 IP2 IP3")){ //Conectou OK em algum dos servidores da lista ... }else{ // Não foi possível conectar a nenhum servidor de AD } OBS.: em IP1, IP2 e IP3 passo o endereço IP dos respectivos servidores Expected result: ---------------- Era esperado que com este teste (if ($ds = ldap_connect("IP1 IP2 IP3")){) fosse validado o primeiro servidor de AD disponível da lista que foi enviada como acontecia na versão 5.3.17. -- Edit bug report at https://bugs.php.net/bug.php?id=74788&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74788&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74788&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74788&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74788&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74788&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74788&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74788&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74788&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74788&r=support Expected behavior: https://bugs.php.net/fix.php?id=74788&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74788&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74788&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74788&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74788&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74788&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74788&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74788&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74788&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74788&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74788&r=mysqlcfg

« previous php.bugs (#209606) next »