published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
LDAP auth config for gateway
Create GatewayLdapAuthConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayLdapAuthConfig(name: string, args?: GatewayLdapAuthConfigArgs, opts?: CustomResourceOptions);@overload
def GatewayLdapAuthConfig(resource_name: str,
args: Optional[GatewayLdapAuthConfigArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayLdapAuthConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_id: Optional[str] = None,
bind_dn: Optional[str] = None,
bind_dn_password: Optional[str] = None,
gateway_ldap_auth_config_id: Optional[str] = None,
group_attr: Optional[str] = None,
group_dn: Optional[str] = None,
group_filter: Optional[str] = None,
ldap_ca_cert: Optional[str] = None,
ldap_enable: Optional[str] = None,
ldap_url: Optional[str] = None,
signing_key_data: Optional[str] = None,
user_attribute: Optional[str] = None,
user_dn: Optional[str] = None)func NewGatewayLdapAuthConfig(ctx *Context, name string, args *GatewayLdapAuthConfigArgs, opts ...ResourceOption) (*GatewayLdapAuthConfig, error)public GatewayLdapAuthConfig(string name, GatewayLdapAuthConfigArgs? args = null, CustomResourceOptions? opts = null)
public GatewayLdapAuthConfig(String name, GatewayLdapAuthConfigArgs args)
public GatewayLdapAuthConfig(String name, GatewayLdapAuthConfigArgs args, CustomResourceOptions options)
type: akeyless:GatewayLdapAuthConfig
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 GatewayLdapAuthConfigArgs
- 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 GatewayLdapAuthConfigArgs
- 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 GatewayLdapAuthConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayLdapAuthConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayLdapAuthConfigArgs
- 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 gatewayLdapAuthConfigResource = new Akeyless.GatewayLdapAuthConfig("gatewayLdapAuthConfigResource", new()
{
AccessId = "string",
BindDn = "string",
BindDnPassword = "string",
GatewayLdapAuthConfigId = "string",
GroupAttr = "string",
GroupDn = "string",
GroupFilter = "string",
LdapCaCert = "string",
LdapEnable = "string",
LdapUrl = "string",
SigningKeyData = "string",
UserAttribute = "string",
UserDn = "string",
});
example, err := akeyless.NewGatewayLdapAuthConfig(ctx, "gatewayLdapAuthConfigResource", &akeyless.GatewayLdapAuthConfigArgs{
AccessId: pulumi.String("string"),
BindDn: pulumi.String("string"),
BindDnPassword: pulumi.String("string"),
GatewayLdapAuthConfigId: pulumi.String("string"),
GroupAttr: pulumi.String("string"),
GroupDn: pulumi.String("string"),
GroupFilter: pulumi.String("string"),
LdapCaCert: pulumi.String("string"),
LdapEnable: pulumi.String("string"),
LdapUrl: pulumi.String("string"),
SigningKeyData: pulumi.String("string"),
UserAttribute: pulumi.String("string"),
UserDn: pulumi.String("string"),
})
var gatewayLdapAuthConfigResource = new GatewayLdapAuthConfig("gatewayLdapAuthConfigResource", GatewayLdapAuthConfigArgs.builder()
.accessId("string")
.bindDn("string")
.bindDnPassword("string")
.gatewayLdapAuthConfigId("string")
.groupAttr("string")
.groupDn("string")
.groupFilter("string")
.ldapCaCert("string")
.ldapEnable("string")
.ldapUrl("string")
.signingKeyData("string")
.userAttribute("string")
.userDn("string")
.build());
gateway_ldap_auth_config_resource = akeyless.GatewayLdapAuthConfig("gatewayLdapAuthConfigResource",
access_id="string",
bind_dn="string",
bind_dn_password="string",
gateway_ldap_auth_config_id="string",
group_attr="string",
group_dn="string",
group_filter="string",
ldap_ca_cert="string",
ldap_enable="string",
ldap_url="string",
signing_key_data="string",
user_attribute="string",
user_dn="string")
const gatewayLdapAuthConfigResource = new akeyless.GatewayLdapAuthConfig("gatewayLdapAuthConfigResource", {
accessId: "string",
bindDn: "string",
bindDnPassword: "string",
gatewayLdapAuthConfigId: "string",
groupAttr: "string",
groupDn: "string",
groupFilter: "string",
ldapCaCert: "string",
ldapEnable: "string",
ldapUrl: "string",
signingKeyData: "string",
userAttribute: "string",
userDn: "string",
});
type: akeyless:GatewayLdapAuthConfig
properties:
accessId: string
bindDn: string
bindDnPassword: string
gatewayLdapAuthConfigId: string
groupAttr: string
groupDn: string
groupFilter: string
ldapCaCert: string
ldapEnable: string
ldapUrl: string
signingKeyData: string
userAttribute: string
userDn: string
GatewayLdapAuthConfig 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 GatewayLdapAuthConfig resource accepts the following input properties:
- Access
Id string - The access ID of the auth method associated with the LDAP config
- Bind
Dn string - Bind DN
- Bind
Dn stringPassword - Bind DN password
- Gateway
Ldap stringAuth Config Id - The ID of this resource.
- Group
Attr string - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- Group
Dn string - Base DN to perform group membership search
- Group
Filter string - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- Ldap
Ca stringCert - LDAP CA Certificate (base64 encoded)
- Ldap
Enable string - Enable LDAP auth [true/false]
- Ldap
Url string - LDAP server URL
- Signing
Key stringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- User
Attribute string - LDAP user attribute
- User
Dn string - LDAP user DN
- Access
Id string - The access ID of the auth method associated with the LDAP config
- Bind
Dn string - Bind DN
- Bind
Dn stringPassword - Bind DN password
- Gateway
Ldap stringAuth Config Id - The ID of this resource.
- Group
Attr string - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- Group
Dn string - Base DN to perform group membership search
- Group
Filter string - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- Ldap
Ca stringCert - LDAP CA Certificate (base64 encoded)
- Ldap
Enable string - Enable LDAP auth [true/false]
- Ldap
Url string - LDAP server URL
- Signing
Key stringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- User
Attribute string - LDAP user attribute
- User
Dn string - LDAP user DN
- access
Id String - The access ID of the auth method associated with the LDAP config
- bind
Dn String - Bind DN
- bind
Dn StringPassword - Bind DN password
- gateway
Ldap StringAuth Config Id - The ID of this resource.
- group
Attr String - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- group
Dn String - Base DN to perform group membership search
- group
Filter String - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- ldap
Ca StringCert - LDAP CA Certificate (base64 encoded)
- ldap
Enable String - Enable LDAP auth [true/false]
- ldap
Url String - LDAP server URL
- signing
Key StringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- user
Attribute String - LDAP user attribute
- user
Dn String - LDAP user DN
- access
Id string - The access ID of the auth method associated with the LDAP config
- bind
Dn string - Bind DN
- bind
Dn stringPassword - Bind DN password
- gateway
Ldap stringAuth Config Id - The ID of this resource.
- group
Attr string - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- group
Dn string - Base DN to perform group membership search
- group
Filter string - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- ldap
Ca stringCert - LDAP CA Certificate (base64 encoded)
- ldap
Enable string - Enable LDAP auth [true/false]
- ldap
Url string - LDAP server URL
- signing
Key stringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- user
Attribute string - LDAP user attribute
- user
Dn string - LDAP user DN
- access_
id str - The access ID of the auth method associated with the LDAP config
- bind_
dn str - Bind DN
- bind_
dn_ strpassword - Bind DN password
- gateway_
ldap_ strauth_ config_ id - The ID of this resource.
- group_
attr str - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- group_
dn str - Base DN to perform group membership search
- group_
filter str - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- ldap_
ca_ strcert - LDAP CA Certificate (base64 encoded)
- ldap_
enable str - Enable LDAP auth [true/false]
- ldap_
url str - LDAP server URL
- signing_
key_ strdata - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- user_
attribute str - LDAP user attribute
- user_
dn str - LDAP user DN
- access
Id String - The access ID of the auth method associated with the LDAP config
- bind
Dn String - Bind DN
- bind
Dn StringPassword - Bind DN password
- gateway
Ldap StringAuth Config Id - The ID of this resource.
- group
Attr String - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- group
Dn String - Base DN to perform group membership search
- group
Filter String - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- ldap
Ca StringCert - LDAP CA Certificate (base64 encoded)
- ldap
Enable String - Enable LDAP auth [true/false]
- ldap
Url String - LDAP server URL
- signing
Key StringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- user
Attribute String - LDAP user attribute
- user
Dn String - LDAP user DN
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayLdapAuthConfig 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 GatewayLdapAuthConfig Resource
Get an existing GatewayLdapAuthConfig 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?: GatewayLdapAuthConfigState, opts?: CustomResourceOptions): GatewayLdapAuthConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_id: Optional[str] = None,
bind_dn: Optional[str] = None,
bind_dn_password: Optional[str] = None,
gateway_ldap_auth_config_id: Optional[str] = None,
group_attr: Optional[str] = None,
group_dn: Optional[str] = None,
group_filter: Optional[str] = None,
ldap_ca_cert: Optional[str] = None,
ldap_enable: Optional[str] = None,
ldap_url: Optional[str] = None,
signing_key_data: Optional[str] = None,
user_attribute: Optional[str] = None,
user_dn: Optional[str] = None) -> GatewayLdapAuthConfigfunc GetGatewayLdapAuthConfig(ctx *Context, name string, id IDInput, state *GatewayLdapAuthConfigState, opts ...ResourceOption) (*GatewayLdapAuthConfig, error)public static GatewayLdapAuthConfig Get(string name, Input<string> id, GatewayLdapAuthConfigState? state, CustomResourceOptions? opts = null)public static GatewayLdapAuthConfig get(String name, Output<String> id, GatewayLdapAuthConfigState state, CustomResourceOptions options)resources: _: type: akeyless:GatewayLdapAuthConfig 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.
- Access
Id string - The access ID of the auth method associated with the LDAP config
- Bind
Dn string - Bind DN
- Bind
Dn stringPassword - Bind DN password
- Gateway
Ldap stringAuth Config Id - The ID of this resource.
- Group
Attr string - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- Group
Dn string - Base DN to perform group membership search
- Group
Filter string - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- Ldap
Ca stringCert - LDAP CA Certificate (base64 encoded)
- Ldap
Enable string - Enable LDAP auth [true/false]
- Ldap
Url string - LDAP server URL
- Signing
Key stringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- User
Attribute string - LDAP user attribute
- User
Dn string - LDAP user DN
- Access
Id string - The access ID of the auth method associated with the LDAP config
- Bind
Dn string - Bind DN
- Bind
Dn stringPassword - Bind DN password
- Gateway
Ldap stringAuth Config Id - The ID of this resource.
- Group
Attr string - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- Group
Dn string - Base DN to perform group membership search
- Group
Filter string - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- Ldap
Ca stringCert - LDAP CA Certificate (base64 encoded)
- Ldap
Enable string - Enable LDAP auth [true/false]
- Ldap
Url string - LDAP server URL
- Signing
Key stringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- User
Attribute string - LDAP user attribute
- User
Dn string - LDAP user DN
- access
Id String - The access ID of the auth method associated with the LDAP config
- bind
Dn String - Bind DN
- bind
Dn StringPassword - Bind DN password
- gateway
Ldap StringAuth Config Id - The ID of this resource.
- group
Attr String - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- group
Dn String - Base DN to perform group membership search
- group
Filter String - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- ldap
Ca StringCert - LDAP CA Certificate (base64 encoded)
- ldap
Enable String - Enable LDAP auth [true/false]
- ldap
Url String - LDAP server URL
- signing
Key StringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- user
Attribute String - LDAP user attribute
- user
Dn String - LDAP user DN
- access
Id string - The access ID of the auth method associated with the LDAP config
- bind
Dn string - Bind DN
- bind
Dn stringPassword - Bind DN password
- gateway
Ldap stringAuth Config Id - The ID of this resource.
- group
Attr string - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- group
Dn string - Base DN to perform group membership search
- group
Filter string - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- ldap
Ca stringCert - LDAP CA Certificate (base64 encoded)
- ldap
Enable string - Enable LDAP auth [true/false]
- ldap
Url string - LDAP server URL
- signing
Key stringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- user
Attribute string - LDAP user attribute
- user
Dn string - LDAP user DN
- access_
id str - The access ID of the auth method associated with the LDAP config
- bind_
dn str - Bind DN
- bind_
dn_ strpassword - Bind DN password
- gateway_
ldap_ strauth_ config_ id - The ID of this resource.
- group_
attr str - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- group_
dn str - Base DN to perform group membership search
- group_
filter str - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- ldap_
ca_ strcert - LDAP CA Certificate (base64 encoded)
- ldap_
enable str - Enable LDAP auth [true/false]
- ldap_
url str - LDAP server URL
- signing_
key_ strdata - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- user_
attribute str - LDAP user attribute
- user_
dn str - LDAP user DN
- access
Id String - The access ID of the auth method associated with the LDAP config
- bind
Dn String - Bind DN
- bind
Dn StringPassword - Bind DN password
- gateway
Ldap StringAuth Config Id - The ID of this resource.
- group
Attr String - LDAP attribute to follow on objects returned by ldapgroupfilter in order to enumerate user group membership
- group
Dn String - Base DN to perform group membership search
- group
Filter String - Go template used when constructing the group membership query. The template can access the following context variables: [UserDN, Username]
- ldap
Ca StringCert - LDAP CA Certificate (base64 encoded)
- ldap
Enable String - Enable LDAP auth [true/false]
- ldap
Url String - LDAP server URL
- signing
Key StringData - The private key (base64 encoded), associated with the public key defined in the Ldap auth
- user
Attribute String - LDAP user attribute
- user
Dn String - LDAP user DN
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
published on Monday, Apr 27, 2026 by akeyless-community
