{"id":19434163,"url":"https://github.com/mastermindg/ansible-ldap","last_synced_at":"2026-05-17T07:40:45.014Z","repository":{"id":76584362,"uuid":"112656311","full_name":"mastermindg/ansible-ldap","owner":"mastermindg","description":"Multi-Master OpenLDAP servers on Ubuntu 16.04","archived":false,"fork":false,"pushed_at":"2017-12-02T04:27:15.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T20:45:04.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/mastermindg.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":"2017-11-30T20:20:53.000Z","updated_at":"2017-11-30T20:24:32.000Z","dependencies_parsed_at":"2023-05-24T07:45:40.190Z","dependency_job_id":null,"html_url":"https://github.com/mastermindg/ansible-ldap","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermindg%2Fansible-ldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermindg%2Fansible-ldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermindg%2Fansible-ldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermindg%2Fansible-ldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mastermindg","download_url":"https://codeload.github.com/mastermindg/ansible-ldap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240614247,"owners_count":19829310,"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-10T14:45:14.985Z","updated_at":"2026-05-17T07:40:39.993Z","avatar_url":"https://github.com/mastermindg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ldap\n\nInstalls 2 Master-Master replicated OpenLDAP servers and a client system to authenticate against them all running on Ubuntu 16.04.\n\nCouple of things:\n1) A self-signed CA Certificate is generated on ldapserver1.\n2) It's copied for distribution using the variable local_certs_path\n3) The CA Certificate is used to build the server certificates and passed to the client.\n3) TLS can be turned off-on by using the TLS variable\n\nFirst create an instance somewhere that's reachable - cloud or local. Here's an example using the kvm-install role:\n\n```\nansible-playbook -i \"power2.kensnet.priv,\" --extra-vars \"vm_hostname=ldap1\" playbooks/kvm-install/site.yml\n```\n\nThen provision the servers:\n\n```\nansible-playbook -i inventory/ldap playbooks/ldap/site.yml\n```\n\n## Vagrant\n\nTesting with Vagrant. Requires some plugins.\n\nThis will create three Virtualbox \"machines\", 2 LDAP servers and 1 client:\n\n```\nvagrant plugin install vagrant-triggers vagrant-vbguest\nvagrant up\n#vagrant ssh ldapserver1/2\n#vagrant ssh ldapclient1\n```\n\nThe vagrant-restart script can be used for testing to clean up the environment and start fresh.\n\n## TODO:\n\n- Completely remove debconf dependency\n- Replicate both ways with TLS\n- Not entirely sure that config replication is working\n\n## Useful commands:\n\nldapsearch -W -D \"cn=admin,dc=example,dc=com\" -b \"dc=example,dc=com\" -s sub \"objectclass=*\"\n\nldapsearch -W -Z -D cn=admin,dc=example,dc=com -b dc=example,dc=com -LLL dn\n\nldapmodify -W -D cn=admin,dc=example,dc=com -f forcetls.ldif\n\nldapsearch -W -Z -D cn=admin,dc=kensawesome,dc=priv -b dc=kensawesome,dc=priv -LLL dn\n\nldapsearch -H ldap://ldapserver1 -W -Z -D cn=admin,dc=kensawesome,dc=priv -b dc=kensawesome,dc=priv -LLL dn","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastermindg%2Fansible-ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastermindg%2Fansible-ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastermindg%2Fansible-ldap/lists"}