apache2-auth-redmine

apache2-auth-redmine 0.1

 pool/bionic/main/a/apache2-auth-redmine/apache2-auth-redmine_0.1_amd64.deb apache2-auth-redmine
Use Redmine credentials with Apache
Filename pool/bionic/main/a/apache2-auth-redmine/apache2-auth-redmine_0.1_amd64.deb
Version0.1
Age in days2031
Release date2021 04. 14.
Size9.29 KB
id742
Nameapache2-auth-redmine
Package
Appname
Essential
Vendor
License
Distributionbionic
Suitemain
Source
Architecturebinary-amd64
MultiArchforeign
MaintainerCyberVitexus
InstalledSize64
Dependslibdbd-mysql-perl , libyaml-tiny-perl , libapache2-mod-authnz-external
PreDepends
Breaks
Enhances
Sectionunknown
Priorityoptional
DescriptionUse Redmine credentials with Apache
LongDescriptionExternal authentification helper for mod-authnz-external working with Redmine'sUsers and Groups
AutoBuiltPackage
Filenamepool/bionic/main/a/apache2-auth-redmine/apache2-auth-redmine_0.1_amd64.deb
MD5sum8c24f09c3166ae8f1db9125a1c9c9eae
SHA190c919d67f68d04c2086749808ea588b9318371f
SHA2565d06d4d576c016e6577d7992f565fcaf8ce0e143970b21fdb7899187d368f21b
SHA512ff92a0e7386c10e5cdde97d9a6c4701dd24fbd48ac9fb67572330105ec274557691ed6cbf8f0549ad2a56a47a19ee9b3e5725a174abcbfe05361edbf7b466770
Size9512
Auto-Built-Package
Homepagehttps://github.com/Spoje-NET/apache2-auth-redmine
Provides
Suggestsredmine-mysql
Existing
fileMtime2021-04-14 01:43:04
created2021-04-07 21:15:40
updated2021-04-14 01:43:04
apache2-auth-redmine
<>

Packaging: deb

apache_auth_redmine

Authenticate Apache Users using Redmine's database

authentificators read its configuration from default redmine's db config /etc/redmine/default/database.yml

Based on original script by Anders Nordby anders@fix.no

Installation:

sudo apt install lsb-release wget
echo "deb http://repo.vitexsoftware.cz $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg
sudo apt update
sudo apt install apache2-auth-redmine

Tested on Debian 9 & 10

Configuration

The package provide enabled /etc/apache2/confs-availble/auth_redmine.conf with default external Auth definitions

DefineExternalAuth  redmineuser pipe /usr/lib/apache2/redmine-mysql-auth.pl
DefineExternalGroup redminegroup pipe /usr/lib/apache2/redmine-group-mysql-auth.pl

The following examples use it:

Simple known user auth

<Directory "/var/www/html/usersonly">
        AuthType Basic
        AuthName "Only for Redmine Users" 
        AuthBasicProvider external
        AuthExternal redmineuser
        Require valid-user
</Directory>

Group membership based auth

<Directory "/var/www/html/adminsonly">
        AuthType Basic
        AuthName "Only for Redmine Admins" 
        AuthBasicProvider external
        AuthExternal redmineuser
        GroupExternal redminegroup
        Require external-group admins
</Directory>

Please look into Vagrantfile for details how to install on real system.

Testing

We provide example Vagrant.with whole setup in the box.

In this cloned repository simply run

vagrant up

And wait to things be done. After image download, package installation and additional provisioning web iside virtual machine become reachable at

http://localhost:8090

Then you can try to open Apache's locations only for redmine users and group members

For Users Only for Admins

Testing users:

| login | password | member of group | |-------------|---------------|----------------- | admin | Cli@queel3 | | john | dydCag9knag | admin | doe | steevCor2ov | users

Auth tool read login and password from stdin in simple format

login
password

So You can test basic functionality from commandline:

echo -e "admin\nCli@queel3\n" | /usr/lib/apache2/redmine-mysql-auth.pl 

The credentials was accepted. The script ends with 0 code as you can check using "$?" macro:

echo $?
0

Unsuccessfull attempt ends with one return code.

See Also:

  • https://github.com/haegar/mod-auth-external/blob/master/mod_authnz_external/INSTALL
  • http://anders.fix.no/software/#unix
  • https://spojenet.cz/

Apache Redmin

Spoje.Net