{"id":20697450,"url":"https://github.com/epomatti/azure-directory-security","last_synced_at":"2026-05-08T19:31:01.377Z","repository":{"id":211516975,"uuid":"726328526","full_name":"epomatti/azure-directory-security","owner":"epomatti","description":"Azure directory cloud sync with Entra ID and Active Directory.","archived":false,"fork":false,"pushed_at":"2024-01-06T02:12:03.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T07:48:41.369Z","etag":null,"topics":["active-directory","azure","azure-ad","azure-security","entra","entra-id","powershell","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epomatti.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":"2023-12-02T04:07:14.000Z","updated_at":"2024-05-25T00:14:54.000Z","dependencies_parsed_at":"2024-11-17T00:20:49.501Z","dependency_job_id":"283a2e27-2ead-4dc1-9e55-4511848e885b","html_url":"https://github.com/epomatti/azure-directory-security","commit_stats":null,"previous_names":["epomatti/azure-directory-security"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/epomatti/azure-directory-security","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-directory-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-directory-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-directory-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-directory-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epomatti","download_url":"https://codeload.github.com/epomatti/azure-directory-security/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epomatti%2Fazure-directory-security/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32794515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["active-directory","azure","azure-ad","azure-security","entra","entra-id","powershell","terraform"],"created_at":"2024-11-17T00:18:06.751Z","updated_at":"2026-05-08T19:31:01.359Z","avatar_url":"https://github.com/epomatti.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Directory Security\n\nImplementation for Active Directory integrations with Entra ID.\n\nCopy the template for the `.auto.tfvars`:\n\n```sh\ncp config/template.tfvars .auto.tfvars\n```\n\nSet you public IP to be allowed in the firewalls:\n\n```sh\ndig +short myip.opendns.com @resolver1.opendns.com\n```\n\nCreate the infrastructure:\n\n```sh\nterraform init\nterraform apply -auto-approve\n```\n\nTerraform will install `AD-Domain-Services` via custom scripts extension.\n\nInstall the AD Domain Services package:\n\n\u003e If possible , set the domain to be the same as the Entra tenant. Needs to be \u003c= 15 characters due to Active Directory dependency on NetBIOS.\n\n```sh\n# You'll need to type in the password and select \"A\" for all\nInstall-ADDSForest -DomainName contoso.local -InstallDNS\n```\n\n🔴🟢 The server will be restarted.\n\nManagement of the forest can be implemented\n\nSynchronization options are performed in the agent. There are two offerings for sync:\n\n- Entra Connect Cloud Sync\n- Entra Connect V2\n\nTerraform will also have created an `administrator` account with `Hybrid Identity Administrator` privilege to be used during Entra sync setup. Use it to configure synchronization.\n\nIt is possible to configure these types of authentication on Entra ID:\n\n- Password Hash Synchronization\n- Pass-through Authentication\n- Federated Authentication\n\n\n## Cloud Sync\n\nFollow the [instructions][4] to install the Cloud Sync agent.\n\n\u003e It will be required to enable advanced features in Active Directory\n\nWhen creating an Organizational Unit named `Cloud`, this is an example fo a \"Distinguished Name\".\n\n```\nOU=Cloud,DC=contoso,DC=local\n```\n\nIt might be required to set this [KDS Root key][3]:\n\n```\nAdd-KdsRootKey -EffectiveTime ((get-date).addhours(-10))\n```\n\n## Entra Connect V2\n\nDownload and install the agent.\n\n\n[1]: https://www.dell.com/support/kbdoc/en-us/000121955/installing-active-directory-domain-services-and-promoting-the-server-to-a-domain-controller\n[2]: https://learn.microsoft.com/en-us/entra/identity/hybrid/cloud-sync/what-is-cloud-sync\n[3]: https://learn.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/create-the-key-distribution-services-kds-root-key#to-create-the-kds-root-key-in-a-test-environment-for-immediate-effectiveness\n[4]: https://learn.microsoft.com/en-us/entra/identity/hybrid/install\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepomatti%2Fazure-directory-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepomatti%2Fazure-directory-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepomatti%2Fazure-directory-security/lists"}