{"id":26358290,"url":"https://github.com/spoje-net/apache2-auth-redmine","last_synced_at":"2025-10-06T12:53:10.175Z","repository":{"id":73311540,"uuid":"355604483","full_name":"Spoje-NET/apache2-auth-redmine","owner":"Spoje-NET","description":"Use Redmine credentials with Apache","archived":false,"fork":false,"pushed_at":"2025-08-30T19:52:34.000Z","size":180,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-06T12:53:09.663Z","etag":null,"topics":["apache2","authentication","debian-packages","perl","redmine","vagrantfile"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spoje-NET.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-07T15:59:56.000Z","updated_at":"2025-08-30T19:52:37.000Z","dependencies_parsed_at":"2023-04-13T04:22:23.906Z","dependency_job_id":null,"html_url":"https://github.com/Spoje-NET/apache2-auth-redmine","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Spoje-NET/apache2-auth-redmine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fapache2-auth-redmine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fapache2-auth-redmine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fapache2-auth-redmine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fapache2-auth-redmine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spoje-NET","download_url":"https://codeload.github.com/Spoje-NET/apache2-auth-redmine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spoje-NET%2Fapache2-auth-redmine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278614462,"owners_count":26015967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache2","authentication","debian-packages","perl","redmine","vagrantfile"],"created_at":"2025-03-16T14:27:36.281Z","updated_at":"2025-10-06T12:53:10.170Z","avatar_url":"https://github.com/Spoje-NET.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"![apache_auth_redmine](apache_auth_redmine.svg?raw=true)\n\nAuthenticate Apache Users using Redmine's database\n==================================================\n\nauthentificators read its configuration from default redmine's db config **/etc/redmine/default/database.yml**\n\n\nBased on original script by Anders Nordby \u003canders@fix.no\u003e\n\n\nInstallation:\n-------------\n\n```shell\nsudo apt install lsb-release wget\necho \"deb http://repo.vitexsoftware.cz $(lsb_release -sc) main\" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list\nsudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg\nsudo apt update\nsudo apt install apache2-auth-redmine\n```\n\n\nTested on Debian 9 \u0026 10\n\nConfiguration\n-------------\n\nThe package provide enabled /etc/apache2/confs-availble/auth_redmine.conf with default external Auth definitions\n\n```apache\nDefineExternalAuth  redmineuser pipe /usr/lib/apache2/redmine-mysql-auth.pl\nDefineExternalGroup redminegroup pipe /usr/lib/apache2/redmine-group-mysql-auth.pl\n```\n\nThe following examples use it:\n\nSimple known user auth\n----------------------\n\n```apache\n\u003cDirectory \"/var/www/html/usersonly\"\u003e\n        AuthType Basic\n        AuthName \"Only for Redmine Users\" \n        AuthBasicProvider external\n        AuthExternal redmineuser\n        Require valid-user\n\u003c/Directory\u003e\n\n```\n\nGroup membership based auth\n---------------------------\n\n```apache\n\u003cDirectory \"/var/www/html/adminsonly\"\u003e\n        AuthType Basic\n        AuthName \"Only for Redmine Admins\" \n        AuthBasicProvider external\n        AuthExternal redmineuser\n        GroupExternal redminegroup\n        Require external-group admins\n\u003c/Directory\u003e\n```\n\n**Please look into [Vagrantfile](Vagrantfile) for details how to install on real system.**\n\nTesting\n-------\n\nWe provide example [Vagrant](https://www.vagrantup.com/).with whole setup in the box.\n\nIn this cloned repository simply run \n\n```shell\nvagrant up\n```\n\nAnd wait to things be done.\nAfter image download, package installation and additional provisioning web iside virtual machine become reachable at\n\n[http://localhost:8090](http://localhost:8090)\n\nThen you can try to open Apache's locations only for redmine users and group members\n\n[For Users](http://localhost:8090/user/)\n[Only for Admins](http://localhost:8090/admin/)\n\nTesting users:\n\n\n  | login\t| password\t| member of group |\n  |-------------|---------------|-----------------\n  | admin\t| Cli@queel3\t|\n  | john\t| dydCag9knag\t| admin\n  | doe\t\t| steevCor2ov\t| users\n\nAuth tool read login and password from stdin in simple format\n\n```\nlogin\npassword\n\n```\n\nSo You can test basic functionality from commandline:\n\n```shell\necho -e \"admin\\nCli@queel3\\n\" | /usr/lib/apache2/redmine-mysql-auth.pl \n```\n\nThe credentials was accepted. The script ends with **0** code as you can check using \"$?\" macro:\n\n```shell\necho $?\n0\n```\n\nUnsuccessfull attempt ends with **one** return code.\n\n\nSee Also:\n---------\n\n * https://github.com/haegar/mod-auth-external/blob/master/mod_authnz_external/INSTALL\n * http://anders.fix.no/software/#unix\n * https://spojenet.cz/\n\n![Apache](apache.svg?raw=true)\n![Redmin](redmine.svg?raw=true)\n\n![Spoje.Net](logo-spojenet.png?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoje-net%2Fapache2-auth-redmine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspoje-net%2Fapache2-auth-redmine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoje-net%2Fapache2-auth-redmine/lists"}