|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-11-26 23:55 UTC] stas@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: stas
[2016-11-26 23:55 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 04:00:02 2025 UTC |
Description: ------------ One of our ./configure options is --with-kerberos=<DIR>. The value of <DIR> gets stored in the PHP_KERBEROS variable if a directory is supplied. There is a function in aclocal.m4: AC_DEFUN([PHP_SETUP_KERBEROS],[ ... dnl If krb5-config is found try using it if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi` KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi` ... The krb5-config program is the preferred way to figure out which libs/flags are needed to build with kerberos support, because it works with both the MIT and Heimdal implementations. However, if you look carefully at the test, it's checking the value of <DIR> against "yes". Naturally that fails; instead it should be test "$PHP_KERBEROS" != "no" Doing so prevents the MIT lib names from getting appended when the Heimdal implementation is used. In other words, krb5-config works, it just isn't getting used.