Viewing docs for ldap 2.0.1
published on Monday, Apr 14, 2025 by elastic-infra
published on Monday, Apr 14, 2025 by elastic-infra
Ldap Provider
I want to use the Pulumi ldap package (ldap) in my project.
## Provider details
- Package: ldap
- Version: 2.0.1
- Publisher: elastic-infra
- Source: opentofu
- Repository: https://github.com/elastic-infra/terraform-provider-ldap
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/opentofu/elastic-infra/ldap/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/opentofu/elastic-infra/ldap/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/opentofu/elastic-infra/ldap/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/opentofu/elastic-infra/ldap/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for ldap 2.0.1
published on Monday, Apr 14, 2025 by elastic-infra
published on Monday, Apr 14, 2025 by elastic-infra
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).
Viewing docs for ldap 2.0.1
published on Monday, Apr 14, 2025 by elastic-infra
published on Monday, Apr 14, 2025 by elastic-infra
