ldap 2.0.1 published on Monday, Apr 14, 2025 by elastic-infra
Ldap Provider
Generate Provider
The Ldap provider must be installed as a Local Package by following the instructions for Any Terraform Provider:
pulumi package add terraform-provider elastic-infra/ldap
Overview
The LDAP provider provides resources to interact with a LDAP object.
Example Usage
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: nodejs
config:
ldap:bindPassword:
value: admin
ldap:bindUser:
value: cn=admin,dc=example,dc=com
ldap:ldapHost:
value: localhost
ldap:ldapPort:
value: 389
import * as pulumi from "@pulumi/pulumi";
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: python
config:
ldap:bindPassword:
value: admin
ldap:bindUser:
value: cn=admin,dc=example,dc=com
ldap:ldapHost:
value: localhost
ldap:ldapPort:
value: 389
import pulumi
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: dotnet
config:
ldap:bindPassword:
value: admin
ldap:bindUser:
value: cn=admin,dc=example,dc=com
ldap:ldapHost:
value: localhost
ldap:ldapPort:
value: 389
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: go
config:
ldap:bindPassword:
value: admin
ldap:bindUser:
value: cn=admin,dc=example,dc=com
ldap:ldapHost:
value: localhost
ldap:ldapPort:
value: 389
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: yaml
config:
ldap:bindPassword:
value: admin
ldap:bindUser:
value: cn=admin,dc=example,dc=com
ldap:ldapHost:
value: localhost
ldap:ldapPort:
value: 389
{}
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: java
config:
ldap:bindPassword:
value: admin
ldap:bindUser:
value: cn=admin,dc=example,dc=com
ldap:ldapHost:
value: localhost
ldap:ldapPort:
value: 389
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
}
}
Configuration Reference
Required
bind_password (String) Password to authenticate the Bind user.
bind_user (String) Bind user to be used for authenticating on the LDAP server.
ldap_host (String) The LDAP server to connect to.
ldap_port (Number) The LDAP protocol port (default: 389).
start_tls (Boolean) Upgrade TLS to secure the connection (default: false).
tls (Boolean) Enable TLS encryption for LDAP (LDAPS) (default: false).
tls_insecure (Boolean) Don’t verify server TLS certificate (default: false).