{"id":28905210,"url":"https://github.com/theforeman/smart_proxy_realm_ad_plugin","last_synced_at":"2025-07-20T01:33:43.461Z","repository":{"id":42461740,"uuid":"96200729","full_name":"theforeman/smart_proxy_realm_ad_plugin","owner":"theforeman","description":"foreman-proxy realm plugin for Active Directory","archived":false,"fork":false,"pushed_at":"2025-02-18T22:51:50.000Z","size":74,"stargazers_count":9,"open_issues_count":19,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-21T13:06:39.573Z","etag":null,"topics":["activedirectory","foreman","foreman-plugins","foreman-proxy","hacktoberfest","realm"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theforeman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-07-04T09:28:53.000Z","updated_at":"2025-02-18T22:51:54.000Z","dependencies_parsed_at":"2025-02-18T19:35:19.191Z","dependency_job_id":null,"html_url":"https://github.com/theforeman/smart_proxy_realm_ad_plugin","commit_stats":null,"previous_names":["martencassel/smart_proxy_realm_ad_plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theforeman/smart_proxy_realm_ad_plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theforeman%2Fsmart_proxy_realm_ad_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theforeman%2Fsmart_proxy_realm_ad_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theforeman%2Fsmart_proxy_realm_ad_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theforeman%2Fsmart_proxy_realm_ad_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theforeman","download_url":"https://codeload.github.com/theforeman/smart_proxy_realm_ad_plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theforeman%2Fsmart_proxy_realm_ad_plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266053838,"owners_count":23869497,"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":["activedirectory","foreman","foreman-plugins","foreman-proxy","hacktoberfest","realm"],"created_at":"2025-06-21T13:06:37.810Z","updated_at":"2025-07-20T01:33:43.448Z","avatar_url":"https://github.com/theforeman.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\r\nThis plugin adds a new realm provider for managing hosts in Active Directory.\r\n\r\nUseful if you directly integrate with Active Directory and dont use FreeIPA. \r\n\r\nIf you use this plugin you let foreman-proxy provision/deprovision computer accounts and password and also distribute the password to a kickstart file.\r\n\r\nIt does the following:\r\n\r\n  * When hosts are created in foreman it will create a new computer account in active directory\r\n    and return the password to foreman so it can be used in the kickstart file.\r\n    \r\n  * When hosts are rebuilt it will reset the computers account and return a new password to the kickstart file.\r\n\r\n  * When hosts are deleted in foreman it will delete the associated computer account in active directory.\r\n  \r\n# Installation \r\n```\r\nsudo gem install smart_proxy_realm_ad_plugin\r\n```\r\n\r\n## Configuration\r\nThen enable this as a realm provider in foreman-proxy\r\n\r\nTo enable this realm provider, edit `/etc/foreman-proxy/settings.d/realm.yml` and set:\r\n\r\n    :enabled: true\r\n    \r\n    :use_provider: realm_ad\r\n    \r\n# Building\r\n\r\nSee How_to_Install_a_Smart-Proxy_Plugin for how to install Smart Proxy plugins.\r\n\r\nInstall this gem:\r\n\r\nFirst clone this repo:\r\n```\r\ngit clone https://github.com/martencassel/smart_proxy_realm_ad_plugin \r\n```\r\n\r\nThen run bundle and gem install.\r\n\r\n```\r\ncd smart_proxy_realm_ad_plugin\r\nbundle install \u0026\u0026 gem build smart_proxy_realm_ad_plugin.gemspec \\\r\n    \u0026\u0026 sudo gem install smart_proxy_realm_ad_plugin-0.1.gem\r\n\r\n```\r\n\r\nThen add the depedencies to to smart-proxy bundler.d directory like below:\r\n\r\nEdit 'bundler.d/Gemfile.local.rb' and set:\r\n\r\n    gem 'smart_proxy_realm_ad_plugin'\r\n    gem 'radcli'\r\n    gem 'rkerberos', '\u003e= 0.1.1'\r\n    gem 'passgen'\r\n\r\n## Testing.\r\n\r\n     bundle exec rake test\r\n\r\n## Install dependencies\r\n\r\nInstall the gem dependencies first:\r\n\r\n  1. rkerberos\r\n  2. radcli\r\n\r\n### rkerberos\r\n```\r\nsudo gem install rkerberos\r\n```\r\n\r\n### radcli\r\n\r\n#### radcli prereqs (ubuntu)\r\n```\r\nsudo apt-get install ruby gem ruby-dev\r\nsudo gem install rake bundler rakecompiler rspec\r\nsudo apt-get install automake autoconf xmlto xsltproc libkrb5-dev libldap2-dev libsasl2-dev\r\n```\r\n\r\n```\r\ngit clone https://github.com/martencassel/radcli\r\ncd radcli\r\nrake build\r\ngem install pkg/radcli-0.1.0.gem\r\n```\r\n\r\n## Contributing\r\n\r\nFork and send a Pull Request. Thanks!\r\n\r\n## Copyright\r\n\r\nCopyright (c) 2016,2017 Mårten Cassel\r\n\r\nThis program is free software: you can redistribute it and/or modify\r\nit under the terms of the GNU General Public License as published by\r\nthe Free Software Foundation, either version 3 of the License, or\r\n(at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful,\r\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\r\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\nGNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License\r\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheforeman%2Fsmart_proxy_realm_ad_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheforeman%2Fsmart_proxy_realm_ad_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheforeman%2Fsmart_proxy_realm_ad_plugin/lists"}