This is a Terraform Provider to work with LDAP.
This provider currently supports only computer objects, but more active directory resources are planned. Please feel free to contribute.
For general information about Terraform, visit the official website and the GitHub project page.
Requirements
Developing the Provider
TODO
Using the Provider
The provider is useful for adding and managing computer objects in Active Directory.
Example
# Configure the LDAP Provider
provider "ldap" {
ldap_host = "ldap.example.org"
ldap_port = 389
use_tls = true
bind_user = "cn=admin,dc=example,dc=org"
bind_password = "admin"
}
# Add computer to Active Directory
resource "ldap_computer" "foo" {
name = "TestComputerTF" # update will force destroy and new
ou = "CN=Computers,DC=example,DC=org" # can be updated
description = "terraform sample server" # can be updated
}
Updating Dependencies
$ go get URL
$ go mod tidy
$ go mod vendor
Testing the Provider
TODO
Contributing
TODO