AuthConfigOpenLdap
Provides a Rancher v2 Auth Config OpenLdap resource. This can be used to configure and enable Auth Config OpenLdap for Rancher v2 RKE clusters and retrieve their information.
In addition to the built-in local auth, only one external auth config provider can be enabled at a time.
Create a AuthConfigOpenLdap Resource
new AuthConfigOpenLdap(name: string, args: AuthConfigOpenLdapArgs, opts?: CustomResourceOptions);def AuthConfigOpenLdap(resource_name, opts=None, access_mode=None, allowed_principal_ids=None, annotations=None, certificate=None, connection_timeout=None, enabled=None, group_dn_attribute=None, group_member_mapping_attribute=None, group_member_user_attribute=None, group_name_attribute=None, group_object_class=None, group_search_attribute=None, group_search_base=None, labels=None, nested_group_membership_enabled=None, port=None, servers=None, service_account_distinguished_name=None, service_account_password=None, tls=None, user_disabled_bit_mask=None, user_enabled_attribute=None, user_login_attribute=None, user_member_attribute=None, user_name_attribute=None, user_object_class=None, user_search_attribute=None, user_search_base=None, __props__=None);func NewAuthConfigOpenLdap(ctx *Context, name string, args AuthConfigOpenLdapArgs, opts ...ResourceOption) (*AuthConfigOpenLdap, error)public AuthConfigOpenLdap(string name, AuthConfigOpenLdapArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AuthConfigOpenLdapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AuthConfigOpenLdapArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthConfigOpenLdapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AuthConfigOpenLdap Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AuthConfigOpenLdap resource accepts the following input properties:
- Servers List<string>
OpenLdap servers list (list)
- Service
Account stringDistinguished Name Service account DN for access OpenLdap service (string)
- Service
Account stringPassword Service account password for access OpenLdap service (string)
- User
Search stringBase User search base DN (string)
- Access
Mode string Access mode for auth.
required,restricted,unrestrictedare supported. Defaultunrestricted(string)- Allowed
Principal List<string>Ids Allowed principal ids for auth. Required if
access_modeisrequiredorrestricted. Ex:openldap_user://<DN>openldap_group://<DN>(list)- Annotations Dictionary<string, object>
Annotations of the resource (map)
- Certificate string
Base64 encoded CA certificate for TLS if self-signed. Use filebase64(
) for encoding file (string) - Connection
Timeout int OpenLdap connection timeout. Default
5000(int)- Enabled bool
Enable auth config provider. Default
true(bool)- Group
Dn stringAttribute Group DN attribute. Default
entryDN(string)- Group
Member stringMapping Attribute Group member mapping attribute. Default
member(string)- Group
Member stringUser Attribute Group member user attribute. Default
entryDN(string)- Group
Name stringAttribute Group name attribute. Default
cn(string)- Group
Object stringClass Group object class. Default
groupOfNames(string)- Group
Search stringAttribute Group search attribute. Default
cn(string)- Group
Search stringBase Group search base (string)
- Labels Dictionary<string, object>
Labels of the resource (map)
- Nested
Group boolMembership Enabled Nested group membership enable. Default
false(bool)- Port int
OpenLdap port. Default
389(int)- Tls bool
Enable TLS connection (bool)
- User
Disabled intBit Mask User disabled bit mask (int)
- User
Enabled stringAttribute User enable attribute (string)
- User
Login stringAttribute User login attribute. Default
uid(string)- User
Member stringAttribute User member attribute. Default
memberOf(string)- User
Name stringAttribute User name attribute. Default
givenName(string)- User
Object stringClass User object class. Default
inetorgperson(string)- User
Search stringAttribute User search attribute. Default
uid|sn|givenName(string)
- Servers []string
OpenLdap servers list (list)
- Service
Account stringDistinguished Name Service account DN for access OpenLdap service (string)
- Service
Account stringPassword Service account password for access OpenLdap service (string)
- User
Search stringBase User search base DN (string)
- Access
Mode string Access mode for auth.
required,restricted,unrestrictedare supported. Defaultunrestricted(string)- Allowed
Principal []stringIds Allowed principal ids for auth. Required if
access_modeisrequiredorrestricted. Ex:openldap_user://<DN>openldap_group://<DN>(list)- Annotations map[string]interface{}
Annotations of the resource (map)
- Certificate string
Base64 encoded CA certificate for TLS if self-signed. Use filebase64(
) for encoding file (string) - Connection
Timeout int OpenLdap connection timeout. Default
5000(int)- Enabled bool
Enable auth config provider. Default
true(bool)- Group
Dn stringAttribute Group DN attribute. Default
entryDN(string)- Group
Member stringMapping Attribute Group member mapping attribute. Default
member(string)- Group
Member stringUser Attribute Group member user attribute. Default
entryDN(string)- Group
Name stringAttribute Group name attribute. Default
cn(string)- Group
Object stringClass Group object class. Default
groupOfNames(string)- Group
Search stringAttribute Group search attribute. Default
cn(string)- Group
Search stringBase Group search base (string)
- Labels map[string]interface{}
Labels of the resource (map)
- Nested
Group boolMembership Enabled Nested group membership enable. Default
false(bool)- Port int
OpenLdap port. Default
389(int)- Tls bool
Enable TLS connection (bool)
- User
Disabled intBit Mask User disabled bit mask (int)
- User
Enabled stringAttribute User enable attribute (string)
- User
Login stringAttribute User login attribute. Default
uid(string)- User
Member stringAttribute User member attribute. Default
memberOf(string)- User
Name stringAttribute User name attribute. Default
givenName(string)- User
Object stringClass User object class. Default
inetorgperson(string)- User
Search stringAttribute User search attribute. Default
uid|sn|givenName(string)
- servers string[]
OpenLdap servers list (list)
- service
Account stringDistinguished Name Service account DN for access OpenLdap service (string)
- service
Account stringPassword Service account password for access OpenLdap service (string)
- user
Search stringBase User search base DN (string)
- access
Mode string Access mode for auth.
required,restricted,unrestrictedare supported. Defaultunrestricted(string)- allowed
Principal string[]Ids Allowed principal ids for auth. Required if
access_modeisrequiredorrestricted. Ex:openldap_user://<DN>openldap_group://<DN>(list)- annotations {[key: string]: any}
Annotations of the resource (map)
- certificate string
Base64 encoded CA certificate for TLS if self-signed. Use filebase64(
) for encoding file (string) - connection
Timeout number OpenLdap connection timeout. Default
5000(int)- enabled boolean
Enable auth config provider. Default
true(bool)- group
Dn stringAttribute Group DN attribute. Default
entryDN(string)- group
Member stringMapping Attribute Group member mapping attribute. Default
member(string)- group
Member stringUser Attribute Group member user attribute. Default
entryDN(string)- group
Name stringAttribute Group name attribute. Default
cn(string)- group
Object stringClass Group object class. Default
groupOfNames(string)- group
Search stringAttribute Group search attribute. Default
cn(string)- group
Search stringBase Group search base (string)
- labels {[key: string]: any}
Labels of the resource (map)
- nested
Group booleanMembership Enabled Nested group membership enable. Default
false(bool)- port number
OpenLdap port. Default
389(int)- tls boolean
Enable TLS connection (bool)
- user
Disabled numberBit Mask User disabled bit mask (int)
- user
Enabled stringAttribute User enable attribute (string)
- user
Login stringAttribute User login attribute. Default
uid(string)- user
Member stringAttribute User member attribute. Default
memberOf(string)- user
Name stringAttribute User name attribute. Default
givenName(string)- user
Object stringClass User object class. Default
inetorgperson(string)- user
Search stringAttribute User search attribute. Default
uid|sn|givenName(string)
- servers List[str]
OpenLdap servers list (list)
- service_
account_ strdistinguished_ name Service account DN for access OpenLdap service (string)
- service_
account_ strpassword Service account password for access OpenLdap service (string)
- user_
search_ strbase User search base DN (string)
- access_
mode str Access mode for auth.
required,restricted,unrestrictedare supported. Defaultunrestricted(string)- allowed_
principal_ List[str]ids Allowed principal ids for auth. Required if
access_modeisrequiredorrestricted. Ex:openldap_user://<DN>openldap_group://<DN>(list)- annotations Dict[str, Any]
Annotations of the resource (map)
- certificate str
Base64 encoded CA certificate for TLS if self-signed. Use filebase64(
) for encoding file (string) - connection_
timeout float OpenLdap connection timeout. Default
5000(int)- enabled bool
Enable auth config provider. Default
true(bool)- group_
dn_ strattribute Group DN attribute. Default
entryDN(string)- group_
member_ strmapping_ attribute Group member mapping attribute. Default
member(string)- group_
member_ struser_ attribute Group member user attribute. Default
entryDN(string)- group_
name_ strattribute Group name attribute. Default
cn(string)- group_
object_ strclass Group object class. Default
groupOfNames(string)- group_
search_ strattribute Group search attribute. Default
cn(string)- group_
search_ strbase Group search base (string)
- labels Dict[str, Any]
Labels of the resource (map)
- nested_
group_ boolmembership_ enabled Nested group membership enable. Default
false(bool)- port float
OpenLdap port. Default
389(int)- tls bool
Enable TLS connection (bool)
- user_
disabled_ floatbit_ mask User disabled bit mask (int)
- user_
enabled_ strattribute User enable attribute (string)
- user_
login_ strattribute User login attribute. Default
uid(string)- user_
member_ strattribute User member attribute. Default
memberOf(string)- user_
name_ strattribute User name attribute. Default
givenName(string)- user_
object_ strclass User object class. Default
inetorgperson(string)- user_
search_ strattribute User search attribute. Default
uid|sn|givenName(string)
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthConfigOpenLdap resource produces the following output properties:
Look up an Existing AuthConfigOpenLdap Resource
Get an existing AuthConfigOpenLdap 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?: AuthConfigOpenLdapState, opts?: CustomResourceOptions): AuthConfigOpenLdapstatic get(resource_name, id, opts=None, access_mode=None, allowed_principal_ids=None, annotations=None, certificate=None, connection_timeout=None, enabled=None, group_dn_attribute=None, group_member_mapping_attribute=None, group_member_user_attribute=None, group_name_attribute=None, group_object_class=None, group_search_attribute=None, group_search_base=None, labels=None, name=None, nested_group_membership_enabled=None, port=None, servers=None, service_account_distinguished_name=None, service_account_password=None, tls=None, type=None, user_disabled_bit_mask=None, user_enabled_attribute=None, user_login_attribute=None, user_member_attribute=None, user_name_attribute=None, user_object_class=None, user_search_attribute=None, user_search_base=None, __props__=None);func GetAuthConfigOpenLdap(ctx *Context, name string, id IDInput, state *AuthConfigOpenLdapState, opts ...ResourceOption) (*AuthConfigOpenLdap, error)public static AuthConfigOpenLdap Get(string name, Input<string> id, AuthConfigOpenLdapState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Access
Mode string Access mode for auth.
required,restricted,unrestrictedare supported. Defaultunrestricted(string)- Allowed
Principal List<string>Ids Allowed principal ids for auth. Required if
access_modeisrequiredorrestricted. Ex:openldap_user://<DN>openldap_group://<DN>(list)- Annotations Dictionary<string, object>
Annotations of the resource (map)
- Certificate string
Base64 encoded CA certificate for TLS if self-signed. Use filebase64(
) for encoding file (string) - Connection
Timeout int OpenLdap connection timeout. Default
5000(int)- Enabled bool
Enable auth config provider. Default
true(bool)- Group
Dn stringAttribute Group DN attribute. Default
entryDN(string)- Group
Member stringMapping Attribute Group member mapping attribute. Default
member(string)- Group
Member stringUser Attribute Group member user attribute. Default
entryDN(string)- Group
Name stringAttribute Group name attribute. Default
cn(string)- Group
Object stringClass Group object class. Default
groupOfNames(string)- Group
Search stringAttribute Group search attribute. Default
cn(string)- Group
Search stringBase Group search base (string)
- Labels Dictionary<string, object>
Labels of the resource (map)
- Name string
(Computed) The name of the resource (string)
- Nested
Group boolMembership Enabled Nested group membership enable. Default
false(bool)- Port int
OpenLdap port. Default
389(int)- Servers List<string>
OpenLdap servers list (list)
- Service
Account stringDistinguished Name Service account DN for access OpenLdap service (string)
- Service
Account stringPassword Service account password for access OpenLdap service (string)
- Tls bool
Enable TLS connection (bool)
- Type string
(Computed) The type of the resource (string)
- User
Disabled intBit Mask User disabled bit mask (int)
- User
Enabled stringAttribute User enable attribute (string)
- User
Login stringAttribute User login attribute. Default
uid(string)- User
Member stringAttribute User member attribute. Default
memberOf(string)- User
Name stringAttribute User name attribute. Default
givenName(string)- User
Object stringClass User object class. Default
inetorgperson(string)- User
Search stringAttribute User search attribute. Default
uid|sn|givenName(string)- User
Search stringBase User search base DN (string)
- Access
Mode string Access mode for auth.
required,restricted,unrestrictedare supported. Defaultunrestricted(string)- Allowed
Principal []stringIds Allowed principal ids for auth. Required if
access_modeisrequiredorrestricted. Ex:openldap_user://<DN>openldap_group://<DN>(list)- Annotations map[string]interface{}
Annotations of the resource (map)
- Certificate string
Base64 encoded CA certificate for TLS if self-signed. Use filebase64(
) for encoding file (string) - Connection
Timeout int OpenLdap connection timeout. Default
5000(int)- Enabled bool
Enable auth config provider. Default
true(bool)- Group
Dn stringAttribute Group DN attribute. Default
entryDN(string)- Group
Member stringMapping Attribute Group member mapping attribute. Default
member(string)- Group
Member stringUser Attribute Group member user attribute. Default
entryDN(string)- Group
Name stringAttribute Group name attribute. Default
cn(string)- Group
Object stringClass Group object class. Default
groupOfNames(string)- Group
Search stringAttribute Group search attribute. Default
cn(string)- Group
Search stringBase Group search base (string)
- Labels map[string]interface{}
Labels of the resource (map)
- Name string
(Computed) The name of the resource (string)
- Nested
Group boolMembership Enabled Nested group membership enable. Default
false(bool)- Port int
OpenLdap port. Default
389(int)- Servers []string
OpenLdap servers list (list)
- Service
Account stringDistinguished Name Service account DN for access OpenLdap service (string)
- Service
Account stringPassword Service account password for access OpenLdap service (string)
- Tls bool
Enable TLS connection (bool)
- Type string
(Computed) The type of the resource (string)
- User
Disabled intBit Mask User disabled bit mask (int)
- User
Enabled stringAttribute User enable attribute (string)
- User
Login stringAttribute User login attribute. Default
uid(string)- User
Member stringAttribute User member attribute. Default
memberOf(string)- User
Name stringAttribute User name attribute. Default
givenName(string)- User
Object stringClass User object class. Default
inetorgperson(string)- User
Search stringAttribute User search attribute. Default
uid|sn|givenName(string)- User
Search stringBase User search base DN (string)
- access
Mode string Access mode for auth.
required,restricted,unrestrictedare supported. Defaultunrestricted(string)- allowed
Principal string[]Ids Allowed principal ids for auth. Required if
access_modeisrequiredorrestricted. Ex:openldap_user://<DN>openldap_group://<DN>(list)- annotations {[key: string]: any}
Annotations of the resource (map)
- certificate string
Base64 encoded CA certificate for TLS if self-signed. Use filebase64(
) for encoding file (string) - connection
Timeout number OpenLdap connection timeout. Default
5000(int)- enabled boolean
Enable auth config provider. Default
true(bool)- group
Dn stringAttribute Group DN attribute. Default
entryDN(string)- group
Member stringMapping Attribute Group member mapping attribute. Default
member(string)- group
Member stringUser Attribute Group member user attribute. Default
entryDN(string)- group
Name stringAttribute Group name attribute. Default
cn(string)- group
Object stringClass Group object class. Default
groupOfNames(string)- group
Search stringAttribute Group search attribute. Default
cn(string)- group
Search stringBase Group search base (string)
- labels {[key: string]: any}
Labels of the resource (map)
- name string
(Computed) The name of the resource (string)
- nested
Group booleanMembership Enabled Nested group membership enable. Default
false(bool)- port number
OpenLdap port. Default
389(int)- servers string[]
OpenLdap servers list (list)
- service
Account stringDistinguished Name Service account DN for access OpenLdap service (string)
- service
Account stringPassword Service account password for access OpenLdap service (string)
- tls boolean
Enable TLS connection (bool)
- type string
(Computed) The type of the resource (string)
- user
Disabled numberBit Mask User disabled bit mask (int)
- user
Enabled stringAttribute User enable attribute (string)
- user
Login stringAttribute User login attribute. Default
uid(string)- user
Member stringAttribute User member attribute. Default
memberOf(string)- user
Name stringAttribute User name attribute. Default
givenName(string)- user
Object stringClass User object class. Default
inetorgperson(string)- user
Search stringAttribute User search attribute. Default
uid|sn|givenName(string)- user
Search stringBase User search base DN (string)
- access_
mode str Access mode for auth.
required,restricted,unrestrictedare supported. Defaultunrestricted(string)- allowed_
principal_ List[str]ids Allowed principal ids for auth. Required if
access_modeisrequiredorrestricted. Ex:openldap_user://<DN>openldap_group://<DN>(list)- annotations Dict[str, Any]
Annotations of the resource (map)
- certificate str
Base64 encoded CA certificate for TLS if self-signed. Use filebase64(
) for encoding file (string) - connection_
timeout float OpenLdap connection timeout. Default
5000(int)- enabled bool
Enable auth config provider. Default
true(bool)- group_
dn_ strattribute Group DN attribute. Default
entryDN(string)- group_
member_ strmapping_ attribute Group member mapping attribute. Default
member(string)- group_
member_ struser_ attribute Group member user attribute. Default
entryDN(string)- group_
name_ strattribute Group name attribute. Default
cn(string)- group_
object_ strclass Group object class. Default
groupOfNames(string)- group_
search_ strattribute Group search attribute. Default
cn(string)- group_
search_ strbase Group search base (string)
- labels Dict[str, Any]
Labels of the resource (map)
- name str
(Computed) The name of the resource (string)
- nested_
group_ boolmembership_ enabled Nested group membership enable. Default
false(bool)- port float
OpenLdap port. Default
389(int)- servers List[str]
OpenLdap servers list (list)
- service_
account_ strdistinguished_ name Service account DN for access OpenLdap service (string)
- service_
account_ strpassword Service account password for access OpenLdap service (string)
- tls bool
Enable TLS connection (bool)
- type str
(Computed) The type of the resource (string)
- user_
disabled_ floatbit_ mask User disabled bit mask (int)
- user_
enabled_ strattribute User enable attribute (string)
- user_
login_ strattribute User login attribute. Default
uid(string)- user_
member_ strattribute User member attribute. Default
memberOf(string)- user_
name_ strattribute User name attribute. Default
givenName(string)- user_
object_ strclass User object class. Default
inetorgperson(string)- user_
search_ strattribute User search attribute. Default
uid|sn|givenName(string)- user_
search_ strbase User search base DN (string)
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.