authentik.ProviderLdap
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as authentik from "@pulumi/authentik";
const default_authentication_flow = authentik.getFlow({
    slug: "default-authentication-flow",
});
const nameProviderLdap = new authentik.ProviderLdap("nameProviderLdap", {
    baseDn: "dc=ldap,dc=goauthentik,dc=io",
    bindFlow: default_authentication_flow.then(default_authentication_flow => default_authentication_flow.id),
});
const nameApplication = new authentik.Application("nameApplication", {
    slug: "ldap-app",
    protocolProvider: nameProviderLdap.providerLdapId,
});
import pulumi
import pulumi_authentik as authentik
default_authentication_flow = authentik.get_flow(slug="default-authentication-flow")
name_provider_ldap = authentik.ProviderLdap("nameProviderLdap",
    base_dn="dc=ldap,dc=goauthentik,dc=io",
    bind_flow=default_authentication_flow.id)
name_application = authentik.Application("nameApplication",
    slug="ldap-app",
    protocol_provider=name_provider_ldap.provider_ldap_id)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/authentik/v2025/authentik"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		default_authentication_flow, err := authentik.LookupFlow(ctx, &authentik.LookupFlowArgs{
			Slug: pulumi.StringRef("default-authentication-flow"),
		}, nil)
		if err != nil {
			return err
		}
		nameProviderLdap, err := authentik.NewProviderLdap(ctx, "nameProviderLdap", &authentik.ProviderLdapArgs{
			BaseDn:   pulumi.String("dc=ldap,dc=goauthentik,dc=io"),
			BindFlow: pulumi.String(default_authentication_flow.Id),
		})
		if err != nil {
			return err
		}
		_, err = authentik.NewApplication(ctx, "nameApplication", &authentik.ApplicationArgs{
			Slug:             pulumi.String("ldap-app"),
			ProtocolProvider: nameProviderLdap.ProviderLdapId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Authentik = Pulumi.Authentik;
return await Deployment.RunAsync(() => 
{
    var default_authentication_flow = Authentik.GetFlow.Invoke(new()
    {
        Slug = "default-authentication-flow",
    });
    var nameProviderLdap = new Authentik.ProviderLdap("nameProviderLdap", new()
    {
        BaseDn = "dc=ldap,dc=goauthentik,dc=io",
        BindFlow = default_authentication_flow.Apply(default_authentication_flow => default_authentication_flow.Apply(getFlowResult => getFlowResult.Id)),
    });
    var nameApplication = new Authentik.Application("nameApplication", new()
    {
        Slug = "ldap-app",
        ProtocolProvider = nameProviderLdap.ProviderLdapId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.authentik.AuthentikFunctions;
import com.pulumi.authentik.inputs.GetFlowArgs;
import com.pulumi.authentik.ProviderLdap;
import com.pulumi.authentik.ProviderLdapArgs;
import com.pulumi.authentik.Application;
import com.pulumi.authentik.ApplicationArgs;
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) {
        final var default-authentication-flow = AuthentikFunctions.getFlow(GetFlowArgs.builder()
            .slug("default-authentication-flow")
            .build());
        var nameProviderLdap = new ProviderLdap("nameProviderLdap", ProviderLdapArgs.builder()
            .baseDn("dc=ldap,dc=goauthentik,dc=io")
            .bindFlow(default_authentication_flow.id())
            .build());
        var nameApplication = new Application("nameApplication", ApplicationArgs.builder()
            .slug("ldap-app")
            .protocolProvider(nameProviderLdap.providerLdapId())
            .build());
    }
}
resources:
  nameProviderLdap:
    type: authentik:ProviderLdap
    properties:
      baseDn: dc=ldap,dc=goauthentik,dc=io
      bindFlow: ${["default-authentication-flow"].id}
  nameApplication:
    type: authentik:Application
    properties:
      slug: ldap-app
      protocolProvider: ${nameProviderLdap.providerLdapId}
variables:
  default-authentication-flow:
    fn::invoke:
      function: authentik:getFlow
      arguments:
        slug: default-authentication-flow
Create ProviderLdap Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProviderLdap(name: string, args: ProviderLdapArgs, opts?: CustomResourceOptions);@overload
def ProviderLdap(resource_name: str,
                 args: ProviderLdapArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def ProviderLdap(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 base_dn: Optional[str] = None,
                 bind_flow: Optional[str] = None,
                 unbind_flow: Optional[str] = None,
                 bind_mode: Optional[str] = None,
                 certificate: Optional[str] = None,
                 gid_start_number: Optional[float] = None,
                 mfa_support: Optional[bool] = None,
                 name: Optional[str] = None,
                 provider_ldap_id: Optional[str] = None,
                 search_mode: Optional[str] = None,
                 tls_server_name: Optional[str] = None,
                 uid_start_number: Optional[float] = None)func NewProviderLdap(ctx *Context, name string, args ProviderLdapArgs, opts ...ResourceOption) (*ProviderLdap, error)public ProviderLdap(string name, ProviderLdapArgs args, CustomResourceOptions? opts = null)
public ProviderLdap(String name, ProviderLdapArgs args)
public ProviderLdap(String name, ProviderLdapArgs args, CustomResourceOptions options)
type: authentik:ProviderLdap
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
 - The unique name of the resource.
 - args ProviderLdapArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- resource_name str
 - The unique name of the resource.
 - args ProviderLdapArgs
 - The arguments to resource properties.
 - opts ResourceOptions
 - Bag of options to control resource's behavior.
 
- ctx Context
 - Context object for the current deployment.
 - name string
 - The unique name of the resource.
 - args ProviderLdapArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args ProviderLdapArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args ProviderLdapArgs
 - The arguments to resource properties.
 - options CustomResourceOptions
 - Bag of options to control resource's behavior.
 
Constructor example
The following reference example uses placeholder values for all input properties.
var providerLdapResource = new Authentik.ProviderLdap("providerLdapResource", new()
{
    BaseDn = "string",
    BindFlow = "string",
    UnbindFlow = "string",
    BindMode = "string",
    Certificate = "string",
    GidStartNumber = 0,
    MfaSupport = false,
    Name = "string",
    ProviderLdapId = "string",
    SearchMode = "string",
    TlsServerName = "string",
    UidStartNumber = 0,
});
example, err := authentik.NewProviderLdap(ctx, "providerLdapResource", &authentik.ProviderLdapArgs{
	BaseDn:         pulumi.String("string"),
	BindFlow:       pulumi.String("string"),
	UnbindFlow:     pulumi.String("string"),
	BindMode:       pulumi.String("string"),
	Certificate:    pulumi.String("string"),
	GidStartNumber: pulumi.Float64(0),
	MfaSupport:     pulumi.Bool(false),
	Name:           pulumi.String("string"),
	ProviderLdapId: pulumi.String("string"),
	SearchMode:     pulumi.String("string"),
	TlsServerName:  pulumi.String("string"),
	UidStartNumber: pulumi.Float64(0),
})
var providerLdapResource = new ProviderLdap("providerLdapResource", ProviderLdapArgs.builder()
    .baseDn("string")
    .bindFlow("string")
    .unbindFlow("string")
    .bindMode("string")
    .certificate("string")
    .gidStartNumber(0)
    .mfaSupport(false)
    .name("string")
    .providerLdapId("string")
    .searchMode("string")
    .tlsServerName("string")
    .uidStartNumber(0)
    .build());
provider_ldap_resource = authentik.ProviderLdap("providerLdapResource",
    base_dn="string",
    bind_flow="string",
    unbind_flow="string",
    bind_mode="string",
    certificate="string",
    gid_start_number=0,
    mfa_support=False,
    name="string",
    provider_ldap_id="string",
    search_mode="string",
    tls_server_name="string",
    uid_start_number=0)
const providerLdapResource = new authentik.ProviderLdap("providerLdapResource", {
    baseDn: "string",
    bindFlow: "string",
    unbindFlow: "string",
    bindMode: "string",
    certificate: "string",
    gidStartNumber: 0,
    mfaSupport: false,
    name: "string",
    providerLdapId: "string",
    searchMode: "string",
    tlsServerName: "string",
    uidStartNumber: 0,
});
type: authentik:ProviderLdap
properties:
    baseDn: string
    bindFlow: string
    bindMode: string
    certificate: string
    gidStartNumber: 0
    mfaSupport: false
    name: string
    providerLdapId: string
    searchMode: string
    tlsServerName: string
    uidStartNumber: 0
    unbindFlow: string
ProviderLdap Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ProviderLdap resource accepts the following input properties:
- Base
Dn string - Bind
Flow string - Unbind
Flow string - Bind
Mode string - Defaults to 
direct. - Certificate string
 - Gid
Start doubleNumber  - Defaults to 
4000. - Mfa
Support bool - Defaults to 
true. - Name string
 - Provider
Ldap stringId  - The ID of this resource.
 - Search
Mode string - Defaults to 
direct. - Tls
Server stringName  - Uid
Start doubleNumber  - Defaults to 
2000. 
- Base
Dn string - Bind
Flow string - Unbind
Flow string - Bind
Mode string - Defaults to 
direct. - Certificate string
 - Gid
Start float64Number  - Defaults to 
4000. - Mfa
Support bool - Defaults to 
true. - Name string
 - Provider
Ldap stringId  - The ID of this resource.
 - Search
Mode string - Defaults to 
direct. - Tls
Server stringName  - Uid
Start float64Number  - Defaults to 
2000. 
- base
Dn String - bind
Flow String - unbind
Flow String - bind
Mode String - Defaults to 
direct. - certificate String
 - gid
Start DoubleNumber  - Defaults to 
4000. - mfa
Support Boolean - Defaults to 
true. - name String
 - provider
Ldap StringId  - The ID of this resource.
 - search
Mode String - Defaults to 
direct. - tls
Server StringName  - uid
Start DoubleNumber  - Defaults to 
2000. 
- base
Dn string - bind
Flow string - unbind
Flow string - bind
Mode string - Defaults to 
direct. - certificate string
 - gid
Start numberNumber  - Defaults to 
4000. - mfa
Support boolean - Defaults to 
true. - name string
 - provider
Ldap stringId  - The ID of this resource.
 - search
Mode string - Defaults to 
direct. - tls
Server stringName  - uid
Start numberNumber  - Defaults to 
2000. 
- base_
dn str - bind_
flow str - unbind_
flow str - bind_
mode str - Defaults to 
direct. - certificate str
 - gid_
start_ floatnumber  - Defaults to 
4000. - mfa_
support bool - Defaults to 
true. - name str
 - provider_
ldap_ strid  - The ID of this resource.
 - search_
mode str - Defaults to 
direct. - tls_
server_ strname  - uid_
start_ floatnumber  - Defaults to 
2000. 
- base
Dn String - bind
Flow String - unbind
Flow String - bind
Mode String - Defaults to 
direct. - certificate String
 - gid
Start NumberNumber  - Defaults to 
4000. - mfa
Support Boolean - Defaults to 
true. - name String
 - provider
Ldap StringId  - The ID of this resource.
 - search
Mode String - Defaults to 
direct. - tls
Server StringName  - uid
Start NumberNumber  - Defaults to 
2000. 
Outputs
All input properties are implicitly available as output properties. Additionally, the ProviderLdap resource produces the following output properties:
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
Look up Existing ProviderLdap Resource
Get an existing ProviderLdap resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProviderLdapState, opts?: CustomResourceOptions): ProviderLdap@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        base_dn: Optional[str] = None,
        bind_flow: Optional[str] = None,
        bind_mode: Optional[str] = None,
        certificate: Optional[str] = None,
        gid_start_number: Optional[float] = None,
        mfa_support: Optional[bool] = None,
        name: Optional[str] = None,
        provider_ldap_id: Optional[str] = None,
        search_mode: Optional[str] = None,
        tls_server_name: Optional[str] = None,
        uid_start_number: Optional[float] = None,
        unbind_flow: Optional[str] = None) -> ProviderLdapfunc GetProviderLdap(ctx *Context, name string, id IDInput, state *ProviderLdapState, opts ...ResourceOption) (*ProviderLdap, error)public static ProviderLdap Get(string name, Input<string> id, ProviderLdapState? state, CustomResourceOptions? opts = null)public static ProviderLdap get(String name, Output<String> id, ProviderLdapState state, CustomResourceOptions options)resources:  _:    type: authentik:ProviderLdap    get:      id: ${id}- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- resource_name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- Base
Dn string - Bind
Flow string - Bind
Mode string - Defaults to 
direct. - Certificate string
 - Gid
Start doubleNumber  - Defaults to 
4000. - Mfa
Support bool - Defaults to 
true. - Name string
 - Provider
Ldap stringId  - The ID of this resource.
 - Search
Mode string - Defaults to 
direct. - Tls
Server stringName  - Uid
Start doubleNumber  - Defaults to 
2000. - Unbind
Flow string 
- Base
Dn string - Bind
Flow string - Bind
Mode string - Defaults to 
direct. - Certificate string
 - Gid
Start float64Number  - Defaults to 
4000. - Mfa
Support bool - Defaults to 
true. - Name string
 - Provider
Ldap stringId  - The ID of this resource.
 - Search
Mode string - Defaults to 
direct. - Tls
Server stringName  - Uid
Start float64Number  - Defaults to 
2000. - Unbind
Flow string 
- base
Dn String - bind
Flow String - bind
Mode String - Defaults to 
direct. - certificate String
 - gid
Start DoubleNumber  - Defaults to 
4000. - mfa
Support Boolean - Defaults to 
true. - name String
 - provider
Ldap StringId  - The ID of this resource.
 - search
Mode String - Defaults to 
direct. - tls
Server StringName  - uid
Start DoubleNumber  - Defaults to 
2000. - unbind
Flow String 
- base
Dn string - bind
Flow string - bind
Mode string - Defaults to 
direct. - certificate string
 - gid
Start numberNumber  - Defaults to 
4000. - mfa
Support boolean - Defaults to 
true. - name string
 - provider
Ldap stringId  - The ID of this resource.
 - search
Mode string - Defaults to 
direct. - tls
Server stringName  - uid
Start numberNumber  - Defaults to 
2000. - unbind
Flow string 
- base_
dn str - bind_
flow str - bind_
mode str - Defaults to 
direct. - certificate str
 - gid_
start_ floatnumber  - Defaults to 
4000. - mfa_
support bool - Defaults to 
true. - name str
 - provider_
ldap_ strid  - The ID of this resource.
 - search_
mode str - Defaults to 
direct. - tls_
server_ strname  - uid_
start_ floatnumber  - Defaults to 
2000. - unbind_
flow str 
- base
Dn String - bind
Flow String - bind
Mode String - Defaults to 
direct. - certificate String
 - gid
Start NumberNumber  - Defaults to 
4000. - mfa
Support Boolean - Defaults to 
true. - name String
 - provider
Ldap StringId  - The ID of this resource.
 - search
Mode String - Defaults to 
direct. - tls
Server StringName  - uid
Start NumberNumber  - Defaults to 
2000. - unbind
Flow String 
Package Details
- Repository
 - authentik goauthentik/terraform-provider-authentik
 - License
 - Notes
 - This Pulumi package is based on the 
authentikTerraform Provider.