Re: Is there a way to build mod_auth_kerb?

2022-04-19 Thread Stefan Sperling
On Tue, Apr 19, 2022 at 12:23:31PM -, Stuart Henderson wrote:
> On 2022-04-18, Maksim Rodin  wrote:
> > Hello,
> > I am trying to build mod_auth_kerb for apache2 on OpenBSD 6.9
> > I installed heimdal-libs-7.7.0p0 and downloaded the latest src for
> > mod_auth_kerb from github
> > After unpacking and configuring the following way:
> > ./configure --with-krb5=/usr/local/heimdal --with-krb4=no
> > I try to run 'make'
> > I get a bunch of warnings like these:
> >
> > ```
> > /usr/local/heimdal/include/krb5-protos.h:18:52: note: expanded from macro 
> > 'KRB5_DEPRECATED_FUNCTION'
> > #define KRB5_DEPRECATED_FUNCTION(x) __attribute__((__deprecated__(x)))
> >^
> > src/mod_auth_kerb.c:1547:47: warning: incompatible pointer types passing 
> > 'request_rec *' (aka 'struct request_rec *') to parameter of type 'const 
> > char *'
> >   [-Wincompatible-pointer-types]
> > log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
> 
> This suggests that it is not compatible with the API of the version of
> Apache HTTPD that you're trying to use it with.
> 
> You might have better luck with https://github.com/S2-/mod_auth_kerb
> but that is still years old and might not work either

Last I looked at mod_auth_kerb (in the context of SVN server auth in my case),
it was is a dead end. It is a 3rd party module, written against Apache 1.x,
and was never updated to Apache 2.x APIs. And it has licencing issues.

Might have better luck with mod_auth_gssapi.



Re: Is there a way to build mod_auth_kerb?

2022-04-19 Thread Stuart Henderson
On 2022-04-18, Maksim Rodin  wrote:
> Hello,
> I am trying to build mod_auth_kerb for apache2 on OpenBSD 6.9
> I installed heimdal-libs-7.7.0p0 and downloaded the latest src for
> mod_auth_kerb from github
> After unpacking and configuring the following way:
> ./configure --with-krb5=/usr/local/heimdal --with-krb4=no
> I try to run 'make'
> I get a bunch of warnings like these:
>
> ```
> /usr/local/heimdal/include/krb5-protos.h:18:52: note: expanded from macro 
> 'KRB5_DEPRECATED_FUNCTION'
> #define KRB5_DEPRECATED_FUNCTION(x) __attribute__((__deprecated__(x)))
>^
> src/mod_auth_kerb.c:1547:47: warning: incompatible pointer types passing 
> 'request_rec *' (aka 'struct request_rec *') to parameter of type 'const char 
> *'
>   [-Wincompatible-pointer-types]
> log_rerror(APLOG_MARK, APLOG_ERR, 0, r,

This suggests that it is not compatible with the API of the version of
Apache HTTPD that you're trying to use it with.

You might have better luck with https://github.com/S2-/mod_auth_kerb
but that is still years old and might not work either


-- 
Please keep replies on the mailing list.



Is there a way to build mod_auth_kerb?

2022-04-18 Thread Maksim Rodin
Hello,
I am trying to build mod_auth_kerb for apache2 on OpenBSD 6.9
I installed heimdal-libs-7.7.0p0 and downloaded the latest src for
mod_auth_kerb from github
After unpacking and configuring the following way:
./configure --with-krb5=/usr/local/heimdal --with-krb4=no
I try to run 'make'
I get a bunch of warnings like these:

```
/usr/local/heimdal/include/krb5-protos.h:18:52: note: expanded from macro 
'KRB5_DEPRECATED_FUNCTION'
#define KRB5_DEPRECATED_FUNCTION(x) __attribute__((__deprecated__(x)))
   ^
src/mod_auth_kerb.c:1547:47: warning: incompatible pointer types passing 
'request_rec *' (aka 'struct request_rec *') to parameter of type 'const char *'
  [-Wincompatible-pointer-types]
log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
 ^
src/mod_auth_kerb.c:379:46: note: passing argument to parameter 'fmt' here
   const request_rec *r, const char *fmt, ...)
 ^
src/mod_auth_kerb.c:1553:50: warning: incompatible pointer types passing 
'request_rec *' (aka 'struct request_rec *') to parameter of type 'const char *'
  [-Wincompatible-pointer-types]
log_rerror(APLOG_MARK, APLOG_NOTICE, 0, r,
^
src/mod_auth_kerb.c:379:46: note: passing argument to parameter 'fmt' here
   const request_rec *r, const char *fmt, ...)
 ^
src/mod_auth_kerb.c:1560:44: warning: incompatible pointer types passing 
'request_rec *' (aka 'struct request_rec *') to parameter of type 'const char *'
  [-Wincompatible-pointer-types]
log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
   ^
src/mod_auth_kerb.c:379:46: note: passing argument to parameter 'fmt' here
   const request_rec *r, const char *fmt, ...)
```

and the following error:

```
Error while executing cc -O2 -pipe -g -D_POSIX_THREADS -pthread 
-I/usr/local/include/apache2 -I/usr/local/include/apr-1/ 
-I/usr/local/include/apr-1/ -I/usr/local/include/db4
-I/usr/local/include -I. -Ispnegokrb5 -I/usr/local/heimdal/include 
-I/usr/local/include -c src/mod_auth_kerb.c -fPIC -DPIC -o 
src/.libs/mod_auth_kerb.o
apxs:Error: Command failed with rc=65536
.
*** Error 1 in /root/mod_auth_kerb-master (Makefile:16 'src/mod_auth_kerb.so')
```

Is it possible to compile that module on OpenBSD at all?

-- 
Best regards
Maksim Rodin