Class AuthBackendGroup
Provides a resource to create a group 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 @group = new Vault.Ldap.AuthBackendGroup("group", new Vault.Ldap.AuthBackendGroupArgs
{
Backend = ldap.Path,
Groupname = "dba",
Policies =
{
"dba",
},
});
}
}
Inherited Members
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 AuthBackendGroup : CustomResource
Constructors
View SourceAuthBackendGroup(String, AuthBackendGroupArgs, CustomResourceOptions)
Create a AuthBackendGroup resource with the given unique name, arguments, and options.
Declaration
public AuthBackendGroup(string name, AuthBackendGroupArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AuthBackendGroupArgs | 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> |
Groupname
The LDAP groupname
Declaration
public Output<string> Groupname { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Policies
Policies which should be granted to members of the group
Declaration
public Output<ImmutableArray<string>> Policies { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(String, Input<String>, AuthBackendGroupState, CustomResourceOptions)
Get an existing AuthBackendGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AuthBackendGroup Get(string name, Input<string> id, AuthBackendGroupState 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. |
| AuthBackendGroupState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AuthBackendGroup |