<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/modauthkerb/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/modauthkerb/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/modauthkerb/support-requests/</id><updated>2023-04-05T12:18:54.089000Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>#31 Fail during compiling mod apache </title><link href="https://sourceforge.net/p/modauthkerb/support-requests/31/?limit=25#1b1c" rel="alternate"/><published>2023-04-05T12:18:54.089000Z</published><updated>2023-04-05T12:18:54.089000Z</updated><author><name>Adrian Wijas</name><uri>https://sourceforge.net/u/awpecet/</uri></author><id>https://sourceforge.net9349a1aa64893a4eda23a59b29b004637e70272a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Problem is that macro APLOG_MARK in apache &amp;lt; 2.3.9 expands to two values: file and line.&lt;br/&gt;
But in newer versions it expands to three values: file, line and module index.&lt;/p&gt;
&lt;p&gt;To solve this problem change signature of mod_auth_kerb.c:log_rerror() to:&lt;/p&gt;
&lt;p&gt;log_rerror(const char &lt;em&gt;file, int line, int module_index, int level, int status,&lt;br/&gt;
           const request_rec &lt;/em&gt;r, const char *fmt, ...)  // module_index added&lt;/p&gt;
&lt;p&gt;And change call of ap_log_rerror() to:&lt;/p&gt;
&lt;p&gt;ap_log_rerror(file, line, module_index, level | APLOG_NOERRNO, status, r, "%s", errstr); // module_index added&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#31 Fail during compiling mod apache </title><link href="https://sourceforge.net/p/modauthkerb/support-requests/31/?limit=25#7830" rel="alternate"/><published>2019-01-21T15:48:25.769000Z</published><updated>2019-01-21T15:48:25.769000Z</updated><author><name>Fabian Grutschus</name><uri>https://sourceforge.net/u/fabiangr/</uri></author><id>https://sourceforge.netcc422d6d1ef6653a1a687104a13bdc7550e0cc95</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I guess the package isn't maintained anymore. I've the same problems compiling mod_auth_kerb inside a Alpine Docker image. The Alpine projects seem to maintain the package by their own and you can find the patches here: &lt;a href="https://git.alpinelinux.org/aports/tree/main/apache-mod-auth-kerb?id=ae380974c20d60217bedada8747089dbc1409609" rel="nofollow"&gt;https://git.alpinelinux.org/aports/tree/main/apache-mod-auth-kerb?id=ae380974c20d60217bedada8747089dbc1409609&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maybe you can find the same files for Debian/Ubuntu too.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fail during compiling mod apache </title><link href="https://sourceforge.net/p/modauthkerb/support-requests/31/" rel="alternate"/><published>2018-04-26T05:56:28.852000Z</published><updated>2018-04-26T05:56:28.852000Z</updated><author><name>Najmi Nasir</name><uri>https://sourceforge.net/u/abemie/</uri></author><id>https://sourceforge.netedf4412829d64aaf4ec82e0f114e560161601cb0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This is a  first time i try to build kerberos and mod_auth_krb  from the source.&lt;/p&gt;
&lt;p&gt;Using RH Linux platform 5.4 (the only unused server we had). &lt;br/&gt;
The server already had apache 2.2 / rpm krb5. 1.6.&lt;br/&gt;
Now I had apache 2.4.12 setup from source. The binaries located in /usr/local/apache2.4.12.&lt;br/&gt;
I also built and succesfully compiled latest krb5 1.16   located /usr/local .&lt;br/&gt;
By following the INSTALL guide, i used below steps to setup mod_auth_kerb-5.4&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[root@demo mod_auth_kerb-5.4]&lt;/span&gt;&lt;/span&gt; ./configure --without-krb4 --with-krb5=/usr/local --with-apache=/usr/local/apache2.4.12&lt;/strong&gt;&lt;br/&gt;
Configure look fine no errors&lt;br/&gt;
&lt;strong&gt;&lt;span&gt;&lt;span&gt;[root@demo mod_auth_kerb-5.4]&lt;/span&gt;&lt;/span&gt;# make&lt;/strong&gt;&lt;br/&gt;
./apxs.sh "-I. -Ispnegokrb5 -I/usr/local/include  " "-L/usr/local/lib -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/local/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err  -lresolv" "" "/usr/local/apache2.4.12/bin/apxs" "-c" "src/mod_auth_kerb.c"&lt;br/&gt;
/usr/local/apache2.4.12/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic   -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2.4.12/include  -I/usr/local/apache2.4.12/include   -I/usr/local/apache2.4.12/include -I/usr/bin/include -I. -Ispnegokrb5 -I/usr/local/include  -c -o src/mod_auth_kerb.lo src/mod_auth_kerb.c &amp;amp;&amp;amp; touch src/mod_auth_kerb.slo&lt;br/&gt;
src/mod_auth_kerb.c: In function 'log_rerror':&lt;br/&gt;
src/mod_auth_kerb.c:363: error: request for member 'log' in something not a structure or union&lt;br/&gt;
:&lt;br/&gt;
:&lt;br/&gt;
src/mod_auth_kerb.c: In function 'have_rcache_type':&lt;br/&gt;
src/mod_auth_kerb.c:1737: warning: implicit declaration of function 'krb5_rc_resolve_full'&lt;br/&gt;
src/mod_auth_kerb.c:1741: warning: implicit declaration of function 'krb5_rc_destroy'&lt;br/&gt;
apxs:Error: Command failed with rc=65536&lt;br/&gt;
.&lt;br/&gt;
make: *** &lt;span&gt;[src/mod_auth_kerb.so]&lt;/span&gt; Error 1&lt;/p&gt;
&lt;p&gt;By referring to config.log , the error start at this line:-&lt;/p&gt;
&lt;p&gt;&lt;em&gt;configure:2841: checking how to run the C preprocessor&lt;br/&gt;
configure:2881: gcc -E  conftest.c&lt;br/&gt;
configure:2888: $? = 0&lt;br/&gt;
configure:2919: gcc -E  conftest.c&lt;br/&gt;
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory&lt;br/&gt;
configure:2926: $? = 1&lt;br/&gt;
configure: failed program was:&lt;br/&gt;
| /&lt;/em&gt; confdefs.h.  &lt;em&gt;/&lt;br/&gt;
| #define PACKAGE_NAME "mod_auth_kerb"&lt;br/&gt;
| #define PACKAGE_TARNAME "mod_auth_kerb"&lt;br/&gt;
| #define PACKAGE_VERSION "5.4"&lt;br/&gt;
| #define PACKAGE_STRING "mod_auth_kerb 5.4"&lt;br/&gt;
| #define PACKAGE_BUGREPORT "modauthkerb-developers@lists.sourceforge.net"&lt;br/&gt;
| /&lt;/em&gt; end confdefs.h.  &lt;em&gt;/&lt;br/&gt;
| #include &amp;lt;ac_nonexistent.h&amp;gt;&lt;br/&gt;
configure:2959: result: gcc -E&lt;br/&gt;
configure:2988: gcc -E  conftest.c&lt;br/&gt;
configure:2995: $? = 0&lt;br/&gt;
configure:3026: gcc -E  conftest.c&lt;br/&gt;
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory&lt;br/&gt;
configure:3033: $? = 1&lt;br/&gt;
configure: failed program was:&lt;/em&gt;&lt;br/&gt;
Need an expert advise if something that I had wrongly did.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question about handling of Kerberos Tickets.</title><link href="https://sourceforge.net/p/modauthkerb/support-requests/30/" rel="alternate"/><published>2018-01-10T20:10:58.246000Z</published><updated>2018-01-10T20:10:58.246000Z</updated><author><name>Darryl Blonski</name><uri>https://sourceforge.net/u/dblonski/</uri></author><id>https://sourceforge.net7e5fe20dafce27797fcab50a9578ced353b1b3a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good Afternoon,&lt;/p&gt;
&lt;p&gt;I've configured Apache 2.4 as a reverse proxy and configured it for Kerberos authentication using mod_auth_kerberos, and I just have a couple of questions.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;When a user logs into the reverse proxy, does the Apache server get the TGT, or does the client?&lt;/li&gt;
&lt;li&gt;Does a session ticket get forwarded to the backend webservers when http/https requests are forwardrd?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Kerberos service name configuration</title><link href="https://sourceforge.net/p/modauthkerb/support-requests/29/" rel="alternate"/><published>2017-03-10T18:13:32.432000Z</published><updated>2017-03-10T18:13:32.432000Z</updated><author><name>Mathieu Bouchard</name><uri>https://sourceforge.net/u/mboucharrq/</uri></author><id>https://sourceforge.net726322d959b7ff314853ec9283d6be80d00fba66</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a question about the configuration of Kerberos authentication in the following scenario. I have a valid SPN saved to a keytab with the following command :&lt;/p&gt;
&lt;p&gt;ktpass.exe /princ HTTP/myhost.mydomain@MYDOMAIN /mapuser MYUSER@MYDOMAIN /crypto AES256-SHA1 /ptype KRB5_NT_PRINCIPAL /pass &lt;strong&gt;*&lt;/strong&gt; /out mykeytab.keytab&lt;/p&gt;
&lt;p&gt;The keytab is copied to a Linux server and the following configuration is used:&lt;/p&gt;
&lt;p&gt;&amp;lt;VirtualHost *:80=""&amp;gt;&lt;br/&gt;
        ServerName myhost.mydomain&lt;br/&gt;
        ...&lt;br/&gt;
        &amp;lt;Location/&amp;gt;&lt;br/&gt;
            AuthName "My auth name"&lt;br/&gt;
            AuthType Kerberos&lt;br/&gt;
            Krb5Keytab /etc/mykeytab.keytab&lt;br/&gt;
            KrbMethodNegotiate on&lt;br/&gt;
            KrbMethodK5Passwd off&lt;br/&gt;
            KrbSaveCredentials on&lt;br/&gt;
            Require valid-user&lt;br/&gt;
        &amp;lt;/Location&amp;gt;&lt;br/&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;/p&gt;
&lt;p&gt;Note: the default REALM from the /etc/krb5.conf file is MYDOMAIN. I tried to force it in the Apache HTTPD config file, but nothing changed.&lt;/p&gt;
&lt;p&gt;The keytab seems to contain a valid SPN:&lt;/p&gt;
&lt;p&gt;klist -k -t -e -K FILE:/etc/mykeytab.keytab&lt;br/&gt;
    Keytab name: FILE:/etc/mykeytab.keytab&lt;br/&gt;
    KVNO Timestamp         Principal&lt;br/&gt;
    ---- ----------------- --------------------------------------------------------&lt;br/&gt;
       7 12/31/69 19:00:00 HTTP/myhost.mydomain@MYDOMAIN (aes256-cts-hmac-sha1-96)  (...)&lt;/p&gt;
&lt;p&gt;With this configuration, I get a HTTP 500 error from Apache HTTPD with the following log lines:&lt;/p&gt;
&lt;p&gt;src/mod_auth_kerb.c(1954): &lt;span&gt;[...]&lt;/span&gt; kerb_authenticate_user entered with user (NULL) and auth_type Kerberos, referer: &lt;a href="http://myhost.mydomain/" rel="nofollow"&gt;http://myhost.mydomain/&lt;/a&gt;&lt;br/&gt;
src/mod_auth_kerb.c(1295): &lt;span&gt;[...]&lt;/span&gt; Acquiring creds for HTTP@myhost.domain, referer: &lt;a href="http://myhost.mydomain/" rel="nofollow"&gt;http://myhost.mydomain/&lt;/a&gt;&lt;br/&gt;
src/mod_auth_kerb.c(1155): &lt;span&gt;[...]&lt;/span&gt; GSS-API major_status:000d0000, minor_status:000186a4, referer: &lt;a href="http://myhost.mydomain/" rel="nofollow"&gt;http://myhost.mydomain/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But, if I add the following line to the configuration:&lt;/p&gt;
&lt;p&gt;KrbServiceName HTTP/myhost.mydomain&lt;/p&gt;
&lt;p&gt;Everything is working fine for that part:&lt;/p&gt;
&lt;p&gt;src/mod_auth_kerb.c(1295): &lt;span&gt;[...]&lt;/span&gt; Acquiring creds for HTTP/myhost.mydomain, referer: &lt;a href="http://myhost.mydomain/" rel="nofollow"&gt;http://myhost.mydomain/&lt;/a&gt;&lt;br/&gt;
src/mod_auth_kerb.c(1708): &lt;span&gt;[...]&lt;/span&gt; Verifying client data using KRB5 GSS-API , referer: &lt;a href="http://myhost.mydomain/" rel="nofollow"&gt;http://myhost.mydomain/&lt;/a&gt;&lt;br/&gt;
src/mod_auth_kerb.c(1724): &lt;span&gt;[...]&lt;/span&gt; Client didn't delegate us their credential, referer: &lt;a href="http://myhost.mydomain/" rel="nofollow"&gt;http://myhost.mydomain/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, looking at the source code, I see this in get_gss_creds (this is a cleaned version of the code):&lt;/p&gt;
&lt;p&gt;char buf&lt;span&gt;[1024]&lt;/span&gt;;&lt;br/&gt;
int have_server_princ;&lt;/p&gt;
&lt;p&gt;have_server_princ = conf-&amp;gt;krb_service_name &amp;amp;&amp;amp; strchr(conf-&amp;gt;krb_service_name, '/') != NULL;&lt;/p&gt;
&lt;p&gt;So, if the service name is supplied in the configuration, the boolean have_server_princ is true. Then it is used to create the ticket value:&lt;/p&gt;
&lt;p&gt;if (have_server_princ) {&lt;br/&gt;
    strncpy(buf, conf-&amp;gt;krb_service_name, sizeof(buf));&lt;br/&gt;
} else {&lt;br/&gt;
    snprintf(buf, sizeof(buf), "%s@%s",&lt;br/&gt;
        (conf-&amp;gt;krb_service_name) ? conf-&amp;gt;krb_service_name : SERVICE_NAME,&lt;br/&gt;
         ap_get_server_name(r));&lt;br/&gt;
}&lt;/p&gt;
&lt;p&gt;This match what I see in the log where the ticket is HTTP@myhost.mydomain. Then:&lt;/p&gt;
&lt;p&gt;major_status = gss_import_name(&amp;amp;minor_status, &amp;amp;token,&lt;br/&gt;
                  (have_server_princ) ? (gss_OID) GSS_KRB5_NT_PRINCIPAL_NAME : (gss_OID) GSS_C_NT_HOSTBASED_SERVICE,&lt;br/&gt;
                  &amp;amp;server_name);&lt;/p&gt;
&lt;p&gt;Now, this doesn't match the ticket type I exported in my keytab file. From the doc:&lt;/p&gt;
&lt;p&gt;GSS_C_NT_HOSTBASED_SERVICE: The value should be a string of the form service or service@hostname. This is the most common way to name target services when initiating a security context, and is the most likely name type to work across multiple mechanisms.&lt;/p&gt;
&lt;p&gt;GSS_KRB5_NT_PRINCIPAL_NAME: The value should be a principal name string. This name type only works with the krb5 mechanism, and is defined in the &amp;lt;gssapi_krb5.h&amp;gt; header.&lt;/p&gt;
&lt;p&gt;The rest of the calls up to gss_acquire_cred are working:&lt;/p&gt;
&lt;p&gt;major_status = gss_display_name(&amp;amp;minor_status, server_name, &amp;amp;token, NULL);&lt;br/&gt;
log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "Acquiring creds for %s", token.value);&lt;br/&gt;
major_status = gss_acquire_cred(&amp;amp;minor_status, server_name, GSS_C_INDEFINITE,&lt;br/&gt;
                                GSS_C_NO_OID_SET, GSS_C_ACCEPT, server_creds, NULL, NULL);&lt;/p&gt;
&lt;p&gt;This is on Red Hat 6.7 with Apache HTTPD 2.4 and mod_auth_kerb v5.4&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>constrained delegation</title><link href="https://sourceforge.net/p/modauthkerb/support-requests/28/" rel="alternate"/><published>2017-01-23T14:23:35.334000Z</published><updated>2017-01-23T14:23:35.334000Z</updated><author><name>olivier girard</name><uri>https://sourceforge.net/u/kalthen/</uri></author><id>https://sourceforge.net4526574ff243078446f859cee07e6b362ee0ad54</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We need constrained delegation on our apache server. Is it implemented in this module?&lt;br/&gt;
If yes, where can I find documentation?&lt;br/&gt;
thanks a lot =)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#27 Compile error on Mac OS X 10.11.6</title><link href="https://sourceforge.net/p/modauthkerb/support-requests/27/?limit=25#df19" rel="alternate"/><published>2016-10-04T18:18:36.169000Z</published><updated>2016-10-04T18:18:36.169000Z</updated><author><name>Developer</name><uri>https://sourceforge.net/u/developerbd/</uri></author><id>https://sourceforge.net38dfa897bf8dcf5fad5b8f1c300489f6a98ac112</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Michael&lt;/p&gt;
&lt;p&gt;Thank you so much for you help.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#27 Compile error on Mac OS X 10.11.6</title><link href="https://sourceforge.net/p/modauthkerb/support-requests/27/?limit=25#7166" rel="alternate"/><published>2016-09-28T18:36:06.271000Z</published><updated>2016-09-28T18:36:06.271000Z</updated><author><name>Michael Weber</name><uri>https://sourceforge.net/u/mweber88/</uri></author><id>https://sourceforge.net5e00701b6716799009e2f82f5aa4b36e410b6bbc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Certainly.&lt;/p&gt;
&lt;p&gt;On the sourceforge page for the Kerberos Module for Apache, click Support, click Patches, and look for "support for Apache 2.4."&lt;/p&gt;
&lt;p&gt;It was either that, or this mailing list post:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/p/modauthkerb/mailman/message/30926358/"&gt;https://sourceforge.net/p/modauthkerb/mailman/message/30926358/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Either way, you'll get to where you need to be to get it to compile.&lt;/p&gt;
&lt;p&gt;Enjoy.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#27 Compile error on Mac OS X 10.11.6</title><link href="https://sourceforge.net/p/modauthkerb/support-requests/27/?limit=25#ed38" rel="alternate"/><published>2016-09-28T16:21:29.004000Z</published><updated>2016-09-28T16:21:29.004000Z</updated><author><name>Developer</name><uri>https://sourceforge.net/u/developerbd/</uri></author><id>https://sourceforge.net3028039f419f61be3a98681d40421b78566be599</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Michael.&lt;/p&gt;
&lt;p&gt;Could you post information about the patch for Apache 2.4 that you found and it fixed your compile error on Mac OS?&lt;/p&gt;
&lt;p&gt;Thank you in advanced&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#27 Compile error on Mac OS X 10.11.6</title><link href="https://sourceforge.net/p/modauthkerb/support-requests/27/?limit=25#a040" rel="alternate"/><published>2016-09-14T01:37:12.323000Z</published><updated>2016-09-14T01:37:12.323000Z</updated><author><name>Michael Weber</name><uri>https://sourceforge.net/u/mweber88/</uri></author><id>https://sourceforge.net4c42c6deb621ae9045b6a64d32e1eef8c18cbb10</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nevermind.  I found the patch for Apache 2.4 and it fixed it.  Please close this ticket.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>