Req #47222 [Com]: Ldap error messages are very unprecise

From: Date: Tue, 05 May 2015 20:20:19 +0000
Subject: Req #47222 [Com]: Ldap error messages are very unprecise
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192501@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=47222&edit=1

 ID:                 47222
 Comment by:         johnnywiller10 at gmail dot com
 Reported by:        webe4703 at uni-trier dot de
 Summary:            Ldap error messages are very unprecise
 Status:             Open
 Type:               Feature/Change Request
 Package:            LDAP related
 Operating System:   Linux (Ubuntu)
 PHP Version:        5.2.8
 Block user comment: N
 Private report:     N

 New Comment:

Thanks Andreas


Previous Comments:
------------------------------------------------------------------------
[2015-05-05 19:43:24] andreas at heigl dot org

This issue is addressed by https://github.com/php/php-src/pull/1261.

After that PR is merged you can use the solution provided by Johnny Willer in http://stackoverflow.com/questions/28765077/get-number-of-ad-errors-with-ldap-and-php-ldap-function-return-unprecise-error/28816473#28816473
without having to define the constant as it is already defined.

You will then be able to retrieve extended error messages using 

ldap_get_option($conn, LDAP_OPT_DIAGNOSTIC_MESSAGE, $extended_error);

------------------------------------------------------------------------
[2015-03-03 13:44:15] johnnywiller10 at gmail dot com

kkkk, eu não sabia uai.. Pode deixar, abraço!

------------------------------------------------------------------------
[2015-03-03 13:25:46] daniellucenag at gmail dot com

Porra mano, me fazendo arranhar o inglês aqui hahahhaha... Quando resolver subir a serra é
só falar! Abraço!

------------------------------------------------------------------------
[2015-03-03 13:20:39] johnnywiller10 at gmail dot com

Pão de queijo mineirinho, delicia! Eu moro em Santa Catarina, mas pretendo visitar MG, assim que
for lhe aviso, vou cobrar hein! heheeh

------------------------------------------------------------------------
[2015-03-03 13:17:00] daniellucenag at gmail dot com

Thank you johnnywiller10, you solution works perfect! when you came to Brazilian > Minas Gerais
> Belo Horizonte, i will pay you a coffe with a 'pão de queijo'/bread of cheese!
contact me if this day come!

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=47222


--
Edit this bug report at https://bugs.php.net/bug.php?id=47222&edit=1


Thread (21 messages)

« previous php.bugs (#192501) next »