Skip to content

Commit 2d2bb5c

Browse files
committed
Version 1.2.0 (Nov 22, 2024)
* Fix compatibility issues with modern unix auth services, such as sssd, due to optimizations for large directories (e.g. LDAP) removing the complete group membership list (grmem). Thanks to Joakim Tjernlund. * NOTE: builds across all platforms now *require* libbsd or the equivalent bsd-standard group function support. * macOS build support, with the latest homebrew-core libbsd update. * Added cross-platform makefiles (macOS & linux only; Windows does not have UNIX groups, so not supported). Thanks to Micah Andersen/BIMI. * GitHub Actions build testing on linux & macOS. Thanks to Micah Andersen/BIMI. * Copyright information was consolidated in CONTRIBUTORS for consistency.
1 parent 9bd22f0 commit 2d2bb5c

30 files changed

+3
-3196
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [ubuntu-latest, windows-latest, macOS-latest]
15+
os: [ubuntu-latest, macOS-latest]
1616

1717
steps:
1818
- uses: actions/checkout@v2
@@ -30,50 +30,13 @@ jobs:
3030
brew update
3131
brew install httpd libbsd
3232
33-
- name: make mod_authnz_external (POSIX-GCC)
34-
if: runner.os != 'Windows'
35-
run: make
36-
working-directory: ./mod_authnz_external
37-
3833
- name: make mod_authz_unixgroup (POSIX-GCC)
3934
if: runner.os != 'Windows'
4035
run: make
41-
working-directory: ./mod_authz_unixgroup
42-
43-
- name: nmake (MSVC)
44-
if: runner.os == 'Windows'
45-
run: |
46-
# find and set APACHEPATH environment variable
47-
$env:APACHEPATH = Join-Path "C:\tools\" (Get-Item C:\tools\apache*).Name
48-
# set it for real, GH Actions uses a new Powershell for each step
49-
[System.Environment]::SetEnvironmentVariable('APACHEPATH',$env:APACHEPATH,'Machine')
50-
# this 'apr_perms_set.h' header is missing from Chocolatey's Apache install
51-
Invoke-WebRequest https://raw.githubusercontent.com/traviscross/apr/master/include/apr_perms_set.h -OutFile (Join-Path ($env:APACHEPATH) "include\apr_perms_set.h")
52-
# call vcvars.bat to setup the environment, then call nmake to build the module
53-
echo "call ""$((Get-VisualStudioInstance).InstallationPath)\VC\Auxiliary\Build\vcvars64.bat""" > winbuild.bat
54-
echo "nmake -f ""$(pwd)\Makefile.win""" >> winbuild.bat
55-
.\winbuild.bat
56-
working-directory: ./mod_authnz_external
57-
58-
- name: make install mod_authnz_external (POSIX-GCC)
59-
if: runner.os != 'Windows'
60-
run: sudo make install
61-
working-directory: ./mod_authnz_external
6236

6337
- name: make install mod_authz_unixgroup (POSIX-GCC)
6438
if: runner.os != 'Windows'
6539
run: sudo make install
66-
working-directory: ./mod_authz_unixgroup
67-
68-
- name: install to apache (windows)
69-
if: runner.os == 'Windows'
70-
run: |
71-
# get APACHEPATH
72-
$env:APACHEPATH = [System.Environment]::GetEnvironmentVariable('APACHEPATH','Machine')
73-
# manually install the compiled module in Apache
74-
cp mod_authnz_external.so (Join-Path ($env:APACHEPATH) "modules\mod_authnz_external.so")
75-
echo "LoadModule authnz_external_module modules/mod_authnz_external.so" >> (Join-Path ($env:APACHEPATH) "conf\httpd.conf")
76-
working-directory: ./mod_authnz_external
7740

7841
- name: restart apache (ubuntu)
7942
if: runner.os == 'Linux'
@@ -82,10 +45,4 @@ jobs:
8245
- name: restart apache (macos)
8346
if: runner.os == 'macOS'
8447
run: brew services restart httpd
85-
86-
- name: restart apache (windows)
87-
if: runner.os == 'Windows'
88-
run: |
89-
Stop-Service -Name w3svc
90-
Set-Service Apache -StartupType Manual
91-
Start-Service -Name Apache
48+

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ jobs:
4141
- name: Checkout repository
4242
uses: actions/checkout@v2
4343

44-
- name: Re-root the workspace
45-
run: |
46-
dir
47-
mv mod_authnz_external ..
48-
cd ..
49-
rm -rf mod-auth-external
50-
mv mod_authnz_external mod-auth-external
51-
cd mod-auth-external
52-
dir
53-
5444
# Initializes the CodeQL tools for scanning.
5545
- name: Initialize CodeQL
5646
uses: github/codeql-action/init@v1
@@ -74,7 +64,7 @@ jobs:
7464
# uses a compiled language
7565

7666
- run: |
77-
sudo apt-get install apache2 apache2-dev
67+
sudo apt-get install apache2 apache2-dev libbsd-dev
7868
make
7969
8070
- name: Perform CodeQL Analysis
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

README.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)