From: mike at flyn dot org Operating system: Linux PHP version: 7.2.6 Package: PECL Bug Type: Feature/Change Request Bug description:Error reporting from php-pecl-krb5 incomplete
Description: ------------ I have been configuring the Roundcube webmail system to authenticate using Kerberos, and I found myself doing some experiments to figure out a misconfiguration. The error reporting from php-pecl-krb5 was missing some key information that would have made this task easier. I found the following in my logs: May 26 13:37:18 herald roundcube: PHP Warning: GSSAPIContext::initSecContext(): Unspecified GSS failure. Minor code may provide more information (851968,2529639066) in /.../mail/program/lib/Roundcube/rcube_imap_generic.php on line 644 It seems the function which implements initSecContext() in gssapi.c does not print the error which returns from gss_init_sec_context(). Instead, it looks like the library prints no error until after the calls to gss_release_name() and gss_release_buffer(); this results in the ambiguous error above. Adding an error printing call immediately after gss_init_sec_context() allowed me to realize that the actual error was: ... Cannot find KDC for realm ... This message made it much easier to realize that /etc/krb5.conf contained an error. -- Edit bug report at https://bugs.php.net/bug.php?id=76380&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76380&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76380&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76380&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76380&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76380&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76380&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76380&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76380&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76380&r=support Expected behavior: https://bugs.php.net/fix.php?id=76380&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76380&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76380&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76380&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76380&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76380&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76380&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76380&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76380&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76380&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76380&r=mysqlcfg -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php