Class AuthBackendUser
Provides a resource to create a user in an LDAP auth backend within Vault.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var ldap = new Vault.Ldap.AuthBackend("ldap", new Vault.Ldap.AuthBackendArgs
{
Discoverdn = false,
Groupdn = "OU=Groups,DC=example,DC=org",
Groupfilter = "(&(objectClass=group)(member:1.2.840.113556.1.4.1941:={{.UserDN}}))",
Path = "ldap",
Upndomain = "EXAMPLE.ORG",
Url = "ldaps://dc-01.example.org",
Userattr = "sAMAccountName",
Userdn = "OU=Users,OU=Accounts,DC=example,DC=org",
});
var user = new Vault.Ldap.AuthBackendUser("user", new Vault.Ldap.AuthBackendUserArgs
{
Backend = ldap.Path,
Policies =
{
"dba",
"sysops",
},
Username = "test-user",
});
}
}
Inherited Members
Namespace: Pulumi.Vault.Ldap
Assembly: Pulumi.Vault.dll
Syntax
public class AuthBackendUser : CustomResource
Constructors
View SourceAuthBackendUser(String, AuthBackendUserArgs, CustomResourceOptions)
Create a AuthBackendUser resource with the given unique name, arguments, and options.
Declaration
public AuthBackendUser(string name, AuthBackendUserArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AuthBackendUserArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBackend
Path to the authentication backend
Declaration
public Output<string> Backend { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Groups
Override LDAP groups which should be granted to user
Declaration
public Output<ImmutableArray<string>> Groups { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Policies
Policies which should be granted to user
Declaration
public Output<ImmutableArray<string>> Policies { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Username
The LDAP username
Declaration
public Output<string> Username { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AuthBackendUserState, CustomResourceOptions)
Get an existing AuthBackendUser resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AuthBackendUser Get(string name, Input<string> id, AuthBackendUserState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AuthBackendUserState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AuthBackendUser |