{"id":19555150,"url":"https://github.com/theranger/mod_vhost_ldapx","last_synced_at":"2025-10-16T18:25:28.780Z","repository":{"id":97180495,"uuid":"45946623","full_name":"theranger/mod_vhost_ldapx","owner":"theranger","description":"Apache dynamic virtual hosting using LDAP","archived":false,"fork":false,"pushed_at":"2015-11-18T20:27:33.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T22:51:40.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theranger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-10T23:13:51.000Z","updated_at":"2015-11-10T23:13:57.000Z","dependencies_parsed_at":"2023-03-11T11:00:51.935Z","dependency_job_id":null,"html_url":"https://github.com/theranger/mod_vhost_ldapx","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theranger%2Fmod_vhost_ldapx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theranger%2Fmod_vhost_ldapx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theranger%2Fmod_vhost_ldapx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theranger%2Fmod_vhost_ldapx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theranger","download_url":"https://codeload.github.com/theranger/mod_vhost_ldapx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240814841,"owners_count":19861955,"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","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":[],"created_at":"2024-11-11T04:32:12.756Z","updated_at":"2025-10-16T18:25:28.709Z","avatar_url":"https://github.com/theranger.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"mod_vhost_ldapx\n===============\nThis module enables dynamic configuring of Apache virtual hosts using LDAP backend. There are many other implementations already available for\nthis functionality. Nevertheless, while some of them did not have all the needed functionality, others were not conveniently packaged for rapid deployment.\n\nThis module is a stripped-down version of [mod_vhostx](https://github.com/porjo/mod_vhostx) and [mod_vhost_ldapng](https://github.com/Ardeek/mod-vhost-ldap-ng), distributed as a Debian *.deb installation package.\n\nFeatures\n--------\n* Lightweight Apache configuration\n* VirtualHosts will reside in LDAP directory tree, results are cached per Apache child.\n* If using [ITK MPM](http://mpm-itk.sesse.net) Apache worker, uid/gid or username can be defined in LDAP under which the request will be served.\n\nRequirements\n------------\n* Apache httpd server \u003e= 2.4\n* LDAP server (e.g. OpenLDAP)\n* libldap libraries\n* Apache mpm-itk (optional)\n\nInstall Manually\n----------------\nDownload package from [Bintray repository](https://bintray.com/theranger/debian/mod_vhost_ldapx/_latestVersion) and install:\n```\nsudo dpkg -i libapache2-mod-vhost-ldapx_X.Y.Z_amd64.deb\n```\n\nInstall using APT\n-----------------\nAdd Bintray repo and keys:\n```\necho \"deb http://dl.bintray.com/theranger/debian jessie main\" | tee -a /etc/apt/sources.list\nwget -qO - https://bintray.com/user/downloadSubjectPublicKey?username=bintray | apt-key add -\n```\nUpdate and install:\n```\napt-get update\napt-get install libapache2-mod-vhost-ldapx\n```\n\nConfiguration\n-------------\nFollowing configuration directives are supported in `\u003cVirtualHost /\u003e`\n\nKey\t\t\t\t\t| Values\t\t| Default\t| Description\n:---\t\t\t\t| :---:\t\t\t| :---:\t\t| :---\n`VHXEnable`\t\t\t| `on`,`off`\t| `off`   \t| Enable virtual host lookups\n`VHXLdapUrl`\t\t| LDAP URL\t\t| - | LDAP server URL. Accepts LDAP-style URL-s with search scope and filters. `%v` will be substituted with a name of virtual host requested.\n`VHXBindDN`\t\t\t| \t\t\t\t|\t\t\t| DN to use for binding\n`VHXBindPW`\t\t\t|\t\t\t\t|\t\t\t| Password to use for binding\n`VHXDefaultUser`\t| username\t\t| \t\t\t| Default ITK user which to serve content under. Requires ITK MPM Apache module to be loaded.\n`VHXDefaultTTL`\t\t| sec\t\t\t| 300 \t\t| Lifetime of LDAP cache entries.\n\nTypical LDAP URL looks something like this ldap://localhost/dc=nodomain??sub?(apacheServerName=%v)\nNote, that attribute list in LDAP URL can be left empty and is ignored by the module.\n\n```apache\n\u003cVirtualHost *:80\u003e\n\t\u003cIfModule vhost_ldapx_module\u003e\n\t\tVHXEnable\tOn\n\t\tVHXLdapUrl\tldap://localhost/dc=nodomain??sub?(apacheServerName=%v)\n\t\tVHXBindDN\tcn=admin,dc=nodomain\n\t\tVHXBindPW\t************\n\t\u003c/IfModule\u003e\n\u003c/VirtualHost\u003e\n```\nPlease see [docs](https://github.com/theranger/mod_vhost_ldapx/tree/dev/doc) folder about LDAP schema and objects configuration.\n\nCredits\n--------\n* Initial codebase from [mod_vhostx](https://github.com/porjo/mod_vhostx) by Ian Bishop.\n* Additional ideas regarding pools and caching from [mod_vhost_ldapng](https://github.com/Ardeek/mod-vhost-ldap-ng) by Ardeek.\n* Debian package cmake build script from [cmake-debhelper](https://github.com/sebknzl/cmake-debhelper) by sebknzl.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheranger%2Fmod_vhost_ldapx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheranger%2Fmod_vhost_ldapx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheranger%2Fmod_vhost_ldapx/lists"}