artifactory.LdapSettingV2
Explore with Pulumi AI
Provides an Artifactory LDAP Setting resource.
This resource can be used to manage Artifactory’s LDAP settings for user authentication.
When specified LDAP setting is active, Artifactory first attempts to authenticate the user against the LDAP server. If LDAP authentication fails, it then tries to authenticate via its internal database.
API documentation, general documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
const ldapName = new artifactory.LdapSettingV2("ldap_name", {
key: "ldap_name",
enabled: true,
ldapUrl: "ldap://ldap_server_url",
userDnPattern: "uid={0},ou=People",
emailAttribute: "mail",
autoCreateUser: true,
ldapPoisoningProtection: true,
allowUserToAccessProfile: false,
pagingSupportEnabled: false,
searchFilter: "(uid={0})",
searchBase: "ou=users",
searchSubTree: true,
managerDn: "mgr_dn",
managerPassword: "mgr_passwd_random",
});
import pulumi
import pulumi_artifactory as artifactory
ldap_name = artifactory.LdapSettingV2("ldap_name",
key="ldap_name",
enabled=True,
ldap_url="ldap://ldap_server_url",
user_dn_pattern="uid={0},ou=People",
email_attribute="mail",
auto_create_user=True,
ldap_poisoning_protection=True,
allow_user_to_access_profile=False,
paging_support_enabled=False,
search_filter="(uid={0})",
search_base="ou=users",
search_sub_tree=True,
manager_dn="mgr_dn",
manager_password="mgr_passwd_random")
package main
import (
"github.com/pulumi/pulumi-artifactory/sdk/v8/go/artifactory"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := artifactory.NewLdapSettingV2(ctx, "ldap_name", &artifactory.LdapSettingV2Args{
Key: pulumi.String("ldap_name"),
Enabled: pulumi.Bool(true),
LdapUrl: pulumi.String("ldap://ldap_server_url"),
UserDnPattern: pulumi.String("uid={0},ou=People"),
EmailAttribute: pulumi.String("mail"),
AutoCreateUser: pulumi.Bool(true),
LdapPoisoningProtection: pulumi.Bool(true),
AllowUserToAccessProfile: pulumi.Bool(false),
PagingSupportEnabled: pulumi.Bool(false),
SearchFilter: pulumi.String("(uid={0})"),
SearchBase: pulumi.String("ou=users"),
SearchSubTree: pulumi.Bool(true),
ManagerDn: pulumi.String("mgr_dn"),
ManagerPassword: pulumi.String("mgr_passwd_random"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Artifactory = Pulumi.Artifactory;
return await Deployment.RunAsync(() =>
{
var ldapName = new Artifactory.LdapSettingV2("ldap_name", new()
{
Key = "ldap_name",
Enabled = true,
LdapUrl = "ldap://ldap_server_url",
UserDnPattern = "uid={0},ou=People",
EmailAttribute = "mail",
AutoCreateUser = true,
LdapPoisoningProtection = true,
AllowUserToAccessProfile = false,
PagingSupportEnabled = false,
SearchFilter = "(uid={0})",
SearchBase = "ou=users",
SearchSubTree = true,
ManagerDn = "mgr_dn",
ManagerPassword = "mgr_passwd_random",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.LdapSettingV2;
import com.pulumi.artifactory.LdapSettingV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var ldapName = new LdapSettingV2("ldapName", LdapSettingV2Args.builder()
.key("ldap_name")
.enabled(true)
.ldapUrl("ldap://ldap_server_url")
.userDnPattern("uid={0},ou=People")
.emailAttribute("mail")
.autoCreateUser(true)
.ldapPoisoningProtection(true)
.allowUserToAccessProfile(false)
.pagingSupportEnabled(false)
.searchFilter("(uid={0})")
.searchBase("ou=users")
.searchSubTree(true)
.managerDn("mgr_dn")
.managerPassword("mgr_passwd_random")
.build());
}
}
resources:
ldapName:
type: artifactory:LdapSettingV2
name: ldap_name
properties:
key: ldap_name
enabled: true
ldapUrl: ldap://ldap_server_url
userDnPattern: uid={0},ou=People
emailAttribute: mail
autoCreateUser: true
ldapPoisoningProtection: true
allowUserToAccessProfile: false
pagingSupportEnabled: false
searchFilter: (uid={0})
searchBase: ou=users
searchSubTree: true
managerDn: mgr_dn
managerPassword: mgr_passwd_random
Create LdapSettingV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LdapSettingV2(name: string, args: LdapSettingV2Args, opts?: CustomResourceOptions);
@overload
def LdapSettingV2(resource_name: str,
args: LdapSettingV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def LdapSettingV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
ldap_url: Optional[str] = None,
enabled: Optional[bool] = None,
allow_user_to_access_profile: Optional[bool] = None,
email_attribute: Optional[str] = None,
ldap_poisoning_protection: Optional[bool] = None,
auto_create_user: Optional[bool] = None,
manager_dn: Optional[str] = None,
manager_password: Optional[str] = None,
paging_support_enabled: Optional[bool] = None,
search_base: Optional[str] = None,
search_filter: Optional[str] = None,
search_sub_tree: Optional[bool] = None,
user_dn_pattern: Optional[str] = None)
func NewLdapSettingV2(ctx *Context, name string, args LdapSettingV2Args, opts ...ResourceOption) (*LdapSettingV2, error)
public LdapSettingV2(string name, LdapSettingV2Args args, CustomResourceOptions? opts = null)
public LdapSettingV2(String name, LdapSettingV2Args args)
public LdapSettingV2(String name, LdapSettingV2Args args, CustomResourceOptions options)
type: artifactory:LdapSettingV2
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 LdapSettingV2Args
- 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 LdapSettingV2Args
- 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 LdapSettingV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LdapSettingV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LdapSettingV2Args
- 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 ldapSettingV2Resource = new Artifactory.LdapSettingV2("ldapSettingV2Resource", new()
{
Key = "string",
LdapUrl = "string",
Enabled = false,
AllowUserToAccessProfile = false,
EmailAttribute = "string",
LdapPoisoningProtection = false,
AutoCreateUser = false,
ManagerDn = "string",
ManagerPassword = "string",
PagingSupportEnabled = false,
SearchBase = "string",
SearchFilter = "string",
SearchSubTree = false,
UserDnPattern = "string",
});
example, err := artifactory.NewLdapSettingV2(ctx, "ldapSettingV2Resource", &artifactory.LdapSettingV2Args{
Key: pulumi.String("string"),
LdapUrl: pulumi.String("string"),
Enabled: pulumi.Bool(false),
AllowUserToAccessProfile: pulumi.Bool(false),
EmailAttribute: pulumi.String("string"),
LdapPoisoningProtection: pulumi.Bool(false),
AutoCreateUser: pulumi.Bool(false),
ManagerDn: pulumi.String("string"),
ManagerPassword: pulumi.String("string"),
PagingSupportEnabled: pulumi.Bool(false),
SearchBase: pulumi.String("string"),
SearchFilter: pulumi.String("string"),
SearchSubTree: pulumi.Bool(false),
UserDnPattern: pulumi.String("string"),
})
var ldapSettingV2Resource = new LdapSettingV2("ldapSettingV2Resource", LdapSettingV2Args.builder()
.key("string")
.ldapUrl("string")
.enabled(false)
.allowUserToAccessProfile(false)
.emailAttribute("string")
.ldapPoisoningProtection(false)
.autoCreateUser(false)
.managerDn("string")
.managerPassword("string")
.pagingSupportEnabled(false)
.searchBase("string")
.searchFilter("string")
.searchSubTree(false)
.userDnPattern("string")
.build());
ldap_setting_v2_resource = artifactory.LdapSettingV2("ldapSettingV2Resource",
key="string",
ldap_url="string",
enabled=False,
allow_user_to_access_profile=False,
email_attribute="string",
ldap_poisoning_protection=False,
auto_create_user=False,
manager_dn="string",
manager_password="string",
paging_support_enabled=False,
search_base="string",
search_filter="string",
search_sub_tree=False,
user_dn_pattern="string")
const ldapSettingV2Resource = new artifactory.LdapSettingV2("ldapSettingV2Resource", {
key: "string",
ldapUrl: "string",
enabled: false,
allowUserToAccessProfile: false,
emailAttribute: "string",
ldapPoisoningProtection: false,
autoCreateUser: false,
managerDn: "string",
managerPassword: "string",
pagingSupportEnabled: false,
searchBase: "string",
searchFilter: "string",
searchSubTree: false,
userDnPattern: "string",
});
type: artifactory:LdapSettingV2
properties:
allowUserToAccessProfile: false
autoCreateUser: false
emailAttribute: string
enabled: false
key: string
ldapPoisoningProtection: false
ldapUrl: string
managerDn: string
managerPassword: string
pagingSupportEnabled: false
searchBase: string
searchFilter: string
searchSubTree: false
userDnPattern: string
LdapSettingV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LdapSettingV2 resource accepts the following input properties:
- Key string
- Ldap setting name.
- Ldap
Url string - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- Allow
User boolTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - Auto
Create boolUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - Email
Attribute string - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - Enabled bool
- Flag to enable or disable the ldap setting. Default value is
true
. - Ldap
Poisoning boolProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - Manager
Dn string - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - Manager
Password string - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - Paging
Support boolEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - Search
Base string - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- Search
Filter string - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- Search
Sub boolTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - User
Dn stringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- Key string
- Ldap setting name.
- Ldap
Url string - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- Allow
User boolTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - Auto
Create boolUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - Email
Attribute string - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - Enabled bool
- Flag to enable or disable the ldap setting. Default value is
true
. - Ldap
Poisoning boolProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - Manager
Dn string - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - Manager
Password string - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - Paging
Support boolEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - Search
Base string - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- Search
Filter string - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- Search
Sub boolTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - User
Dn stringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- key String
- Ldap setting name.
- ldap
Url String - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- allow
User BooleanTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - auto
Create BooleanUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - email
Attribute String - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - enabled Boolean
- Flag to enable or disable the ldap setting. Default value is
true
. - ldap
Poisoning BooleanProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - manager
Dn String - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - manager
Password String - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - paging
Support BooleanEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - search
Base String - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- search
Filter String - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- search
Sub BooleanTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - user
Dn StringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- key string
- Ldap setting name.
- ldap
Url string - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- allow
User booleanTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - auto
Create booleanUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - email
Attribute string - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - enabled boolean
- Flag to enable or disable the ldap setting. Default value is
true
. - ldap
Poisoning booleanProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - manager
Dn string - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - manager
Password string - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - paging
Support booleanEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - search
Base string - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- search
Filter string - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- search
Sub booleanTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - user
Dn stringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- key str
- Ldap setting name.
- ldap_
url str - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- allow_
user_ boolto_ access_ profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - auto_
create_ booluser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - email_
attribute str - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - enabled bool
- Flag to enable or disable the ldap setting. Default value is
true
. - ldap_
poisoning_ boolprotection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - manager_
dn str - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - manager_
password str - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - paging_
support_ boolenabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - search_
base str - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- search_
filter str - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- search_
sub_ booltree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - user_
dn_ strpattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- key String
- Ldap setting name.
- ldap
Url String - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- allow
User BooleanTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - auto
Create BooleanUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - email
Attribute String - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - enabled Boolean
- Flag to enable or disable the ldap setting. Default value is
true
. - ldap
Poisoning BooleanProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - manager
Dn String - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - manager
Password String - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - paging
Support BooleanEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - search
Base String - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- search
Filter String - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- search
Sub BooleanTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - user
Dn StringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
Outputs
All input properties are implicitly available as output properties. Additionally, the LdapSettingV2 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 LdapSettingV2 Resource
Get an existing LdapSettingV2 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?: LdapSettingV2State, opts?: CustomResourceOptions): LdapSettingV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_user_to_access_profile: Optional[bool] = None,
auto_create_user: Optional[bool] = None,
email_attribute: Optional[str] = None,
enabled: Optional[bool] = None,
key: Optional[str] = None,
ldap_poisoning_protection: Optional[bool] = None,
ldap_url: Optional[str] = None,
manager_dn: Optional[str] = None,
manager_password: Optional[str] = None,
paging_support_enabled: Optional[bool] = None,
search_base: Optional[str] = None,
search_filter: Optional[str] = None,
search_sub_tree: Optional[bool] = None,
user_dn_pattern: Optional[str] = None) -> LdapSettingV2
func GetLdapSettingV2(ctx *Context, name string, id IDInput, state *LdapSettingV2State, opts ...ResourceOption) (*LdapSettingV2, error)
public static LdapSettingV2 Get(string name, Input<string> id, LdapSettingV2State? state, CustomResourceOptions? opts = null)
public static LdapSettingV2 get(String name, Output<String> id, LdapSettingV2State state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Allow
User boolTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - Auto
Create boolUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - Email
Attribute string - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - Enabled bool
- Flag to enable or disable the ldap setting. Default value is
true
. - Key string
- Ldap setting name.
- Ldap
Poisoning boolProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - Ldap
Url string - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- Manager
Dn string - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - Manager
Password string - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - Paging
Support boolEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - Search
Base string - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- Search
Filter string - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- Search
Sub boolTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - User
Dn stringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- Allow
User boolTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - Auto
Create boolUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - Email
Attribute string - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - Enabled bool
- Flag to enable or disable the ldap setting. Default value is
true
. - Key string
- Ldap setting name.
- Ldap
Poisoning boolProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - Ldap
Url string - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- Manager
Dn string - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - Manager
Password string - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - Paging
Support boolEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - Search
Base string - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- Search
Filter string - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- Search
Sub boolTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - User
Dn stringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- allow
User BooleanTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - auto
Create BooleanUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - email
Attribute String - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - enabled Boolean
- Flag to enable or disable the ldap setting. Default value is
true
. - key String
- Ldap setting name.
- ldap
Poisoning BooleanProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - ldap
Url String - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- manager
Dn String - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - manager
Password String - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - paging
Support BooleanEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - search
Base String - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- search
Filter String - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- search
Sub BooleanTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - user
Dn StringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- allow
User booleanTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - auto
Create booleanUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - email
Attribute string - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - enabled boolean
- Flag to enable or disable the ldap setting. Default value is
true
. - key string
- Ldap setting name.
- ldap
Poisoning booleanProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - ldap
Url string - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- manager
Dn string - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - manager
Password string - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - paging
Support booleanEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - search
Base string - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- search
Filter string - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- search
Sub booleanTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - user
Dn stringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- allow_
user_ boolto_ access_ profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - auto_
create_ booluser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - email_
attribute str - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - enabled bool
- Flag to enable or disable the ldap setting. Default value is
true
. - key str
- Ldap setting name.
- ldap_
poisoning_ boolprotection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - ldap_
url str - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- manager_
dn str - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - manager_
password str - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - paging_
support_ boolenabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - search_
base str - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- search_
filter str - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- search_
sub_ booltree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - user_
dn_ strpattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
- allow
User BooleanTo Access Profile - Auto created users will have access to their profile page and will be able to perform actions such as generating an API key. Default value is
false
. - auto
Create BooleanUser - When set, users are automatically created when using LDAP. Otherwise, users are transient and associated with auto-join groups defined in Artifactory. Default value is
true
. - email
Attribute String - An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is
mail
. - enabled Boolean
- Flag to enable or disable the ldap setting. Default value is
true
. - key String
- Ldap setting name.
- ldap
Poisoning BooleanProtection - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - ldap
Url String - Location of the LDAP server in the following format:
ldap://myldapserver/dc=sampledomain,dc=com
- manager
Dn String - The full DN of the user that binds to the LDAP server to perform user searches. Only used with
search
authentication. - manager
Password String - The password of the user that binds to the LDAP server to perform the search. Only used with
search
authentication. - paging
Support BooleanEnabled - When set, supports paging results for the LDAP server. This feature requires that the LDAP server supports a PagedResultsControl configuration. Default value is
true
. - search
Base String - A context name to search in relative to the base DN of the LDAP URL. For example, 'ou=users' With the LDAP Group Add-on enabled, it is possible to enter multiple search base entries separated by a pipe ('|') character.
- search
Filter String - A filter expression used to search for the user DN used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, and is denoted by '{0}'. Possible examples are: (uid={0}) - This searches for a username match on the attribute. Authentication to LDAP is performed from the DN found if successful.
- search
Sub BooleanTree - When set, enables deep search through the sub tree of the LDAP URL + search base. Default value is
true
. - user
Dn StringPattern - A DN pattern that can be used to log users directly in to LDAP. This pattern is used to create a DN string for 'direct' user authentication where the pattern is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username. This only works if anonymous binding is allowed and a direct user DN can be used, which is not the default case for Active Directory (use User DN search filter instead). Example: uid={0},ou=People. Default value is blank/empty.
Import
$ pulumi import artifactory:index/ldapSettingV2:LdapSettingV2 ldap ldap1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactory
Terraform Provider.