logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: Compiling mod_auth_cas v1.1 for Apache 2.4.27
Author
jmcl



Joined: 11 Feb 2016
Posts: 10

PostPosted: Tue 26 Sep '17 11:18    Post subject: Compiling mod_auth_cas v1.1 for Apache 2.4.27 Reply with quote

Hi all.
We are migrating from Apache 2.2 to Apache 2.4 (all on Windows).
All migration work is done and everything is working great. There's one problem left. We have been trying to compile mod_auth_cas for Apache 2.4 on Windows and we are having endless problems with this.
Here is the link to mod_auth_cas:

https://github.com/apereo/mod_auth_cas/releases

The file we are using is

mod_auth_cas-1.1.zip

To compile we are also using the following:

apr-1.6.2-win32-src.zip
apr-util-1.6.0-win32-src.zip
curl-7.55.1.zip
pcre-7.0-lib.zip
Win64OpenSSL-1_0_2L.exe

Is anyone (glsmith, can you help? Smile...) able to compile mod_auth_cas v1.1 for Apache 2.4 64 bit on Windows?
Any help is really appreciated!
Thank you.

John
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 27 Sep '17 2:29    Post subject: Reply with quote

I'll give it a shot this weekend if someone hasn't already. What VC and architecture is your Apache built with?
Back to top
jmcl



Joined: 11 Feb 2016
Posts: 10

PostPosted: Wed 27 Sep '17 11:38    Post subject: Reply with quote

glsmith, thank you very much!
We are using Apache 2.4.27 built with VC11 for a 64 bit Windows OS.
Again, thank you.

John
Back to top
jmcl



Joined: 11 Feb 2016
Posts: 10

PostPosted: Tue 03 Oct '17 12:30    Post subject: Reply with quote

Hi glsmith, did you find the time and succeed on compiling cas? Thank you.

John
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 03 Oct '17 16:47    Post subject: Reply with quote

Argh, yeah I had time but completely forgot about it. I will give it a try tonight.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 05 Oct '17 5:02    Post subject: Reply with quote

It took me forever to figure out the 2 problems I had on VC11 building Apache 2.4.28 but I got them figured out. After I get both x86 & 64 builds done and up on Apache Haus I'll dive into this module.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 05 Oct '17 17:50    Post subject: Reply with quote

Sorry, this one will have to be built with MinGW, it's too much posix.

Interestingly, there's a note in the readme for building on Windows.
Quote:
NOTE: As of mod_auth_cas 1.0.9, Win32 support has been dropped due
to lack of development resources and low community interest.


Edit many hours later:

I did not just stop after reading the readme, I still tried Smile
Back to top
jmcl



Joined: 11 Feb 2016
Posts: 10

PostPosted: Fri 06 Oct '17 17:57    Post subject: Reply with quote

Thank you very much for your effort glsmith.
Cheers.

John
Back to top
haz



Joined: 27 Mar 2024
Posts: 1

PostPosted: Wed 27 Mar '24 10:03    Post subject: Reply with quote

Hi,

is there any update on this module.

I have to integrate cas jasig with my application using apache as front end. I am using Apache version 24.57 64 bit on Windows server 2019
Back to top
tangent
Moderator


Joined: 16 Aug 2020
Posts: 346
Location: UK

PostPosted: Fri 29 Mar '24 19:18    Post subject: Reply with quote

As noted in above posts, Win32 development support for this module stalled some years ago; indeed checking GitHub page https://github.com/apereo/mod_auth_cas, that hasn't changed. What developers have done though is recently update the code to support pcre2, which is good, though it's not been formally released.

As glsmith previously stated, this module is very Posix worthy, but out of interest, I downloaded the latest code to see what issues would crop up trying to build it under MSVC, rather than setting up say MinGW.

I stuck to using a CMake front end, crafting a minimal CMakeLists.txt file to try building mod_auth_cas along the lines of other packages in HOWTO: Building Apache and dependencies using CMake https://www.apachelounge.com/viewtopic.php?t=8609

Some minor code changes are needed to mod_auth_cas.c to pick up Windows style headers for socket services, and you need a flock() function which maps onto Windows file locking. I used example 1 from this site => https://cpp.hotexamples.com/examples/-/-/LockFileEx/cpp-lockfileex-function-examples.html

With these changes I got mod_auth_cas to build and produce a module which loads under the latest Apache Win64 binaries from this site, along with minimal CAS configuration options. However, I've no idea if it functions correctly since I've no access to a CAS login server.

The mod_auth_cas.so module imports functions from the following Apache DLLs
    libapr-1.dll
    libaprutil-1.dll
    libcurl.dll
    libhttpd.dll
    libssl-3-x64.dll
    pcre2-8.dll
I've uploaded the relevant files to https://apaste.info/wDYK as a Base64 encoded zip file. You can decode the file here => https://www.base64decode.org/

You should be able to try the mod_auth_cas.so file directly, and thereafter, if it doesn't function correctly, update the code as required, and having followed the above HOWTO to produce a reference build of Apache, rebuild mod_auth_cas.so as necessary.

Hope this helps.
Back to top


Reply to topic   Topic: Compiling mod_auth_cas v1.1 for Apache 2.4.27 View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads