Hi,
This module had serious compatibillity issues with latest version of Apache when apache did a major change in APIs and Header files.
I have fixed that and module now works fine with latest version of apache. I have attached the updated code with it you can replace the c file or can create patch from it.
Regards,
Faisal Hanif
Apache 2.4 throws the following error and exits:
httpd: Syntax error on line 55 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib64/httpd/modules/mod_ntlm.so into server: /usr/lib64/httpd/modules/mod_ntlm.so: undefined symbol: ap_requires
my research shows that ap_requires was replaced with ap_register_auth_provider
https://httpd.apache.org/docs/trunk/developer/new_api_2_4.html
https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__REQ__AUTH.html
Can someone please attached the ntlm version 2 binaies for apache server.
Thanks
Gyan
I donwloaded attached bianies but getting below issue , please suggest me the steps to resolve this .
mod_ntlm.c:833:42: warning: initialization makes pointer from integer without a cast [enabled by default]
const apr_array_header_t *reqs_arr = ap_requires(r);
^
/app/httpd-2.4.43/build/libtool --silent --mode=link gcc -std=gnu99 -L/usr/local/lib64/ -o mod_ntlm.la -rpath /app/httpd-2.4.43/modules -module -avoid-version mod_ntlm.lo
.libs/mod_ntlm.o: In function
initialize_module': /tmp/mod_ntlm_modified/mod_ntlm.c:202: warning: the use oftmpnam' is dangerous, better use `mkstemp'apxs -i -a -n 'ntlm' mod_ntlm.so
/app/httpd-2.4.43/build/instdso.sh SH_LIBTOOL='/app/httpd-2.4.43/build/libtool' mod_ntlm.so /app/httpd-2.4.43/modules
/app/httpd-2.4.43/build/libtool --mode=install install mod_ntlm.so /app/httpd-2.4.43/modules/
libtool: install: install mod_ntlm.so /app/httpd-2.4.43/modules/mod_ntlm.so
install: cannot stat 'mod_ntlm.so': No such file or directory
apxs:Error: Command failed with rc=65536
Last edit: fart 2020-07-28