Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AuthBackendUser
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Vault.Ldap
Assembly: Pulumi.Vault.dll
Syntax
public class AuthBackendUser : CustomResource

Constructors

View Source

AuthBackendUser(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 Source

Backend

Path to the authentication backend

Declaration
public Output<string> Backend { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>>
View Source

Username

The LDAP username

Declaration
public Output<string> Username { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.