Skip to main content

LDAP Server Profile

LDAP server profiles configure directory server connections for user authentication and group lookups in Strata Cloud Manager. The scm CLI provides commands to create, update, delete, and bulk manage LDAP server profiles.

Overview​

The ldap-server-profile commands allow you to:

  • Create LDAP server profiles with directory server configurations
  • Update existing profile settings including bind credentials and SSL options
  • Delete profiles that are no longer needed
  • Bulk import profiles from YAML files
  • Export profiles for backup or migration

LDAP Types​

TypeDescription
active-directoryMicrosoft Active Directory
e-directoryNovell eDirectory
sunSun/Oracle Directory Server
otherOther LDAP-compliant directory

Set LDAP Server Profile​

Create or update an LDAP server profile.

Syntax​

scm set identity ldap-server-profile NAME [OPTIONS]

Arguments​

ArgumentDescriptionRequired
NAMEProfile nameYes

Options​

OptionDescriptionRequired
--folder TEXTFolder locationNo*
--snippet TEXTSnippet locationNo*
--device TEXTDevice locationNo*
--servers TEXTServer list as JSONNo
--base TEXTBase distinguished nameNo
--bind-dn TEXTBind distinguished nameNo
--bind-password TEXTBind passwordNo
--ldap-type TEXTLDAP type (active-directory, e-directory, sun, other)No
--sslEnable SSLNo

* One of --folder, --snippet, or --device is required.

Examples​

Create Active Directory Profile​

$ scm set identity ldap-server-profile corp-ldap \
--folder Texas \
--servers '[{"name": "ldap1", "address": "ldap.example.com", "port": 389}]' \
--base "dc=example,dc=com" \
--ldap-type active-directory
---> 100%
Created ldap-server-profile: corp-ldap in folder Texas

Create LDAP Profile with SSL and Bind Credentials​

$ scm set identity ldap-server-profile secure-ldap \
--folder Texas \
--servers '[{"name": "ldaps1", "address": "ldaps.example.com", "port": 636}]' \
--base "dc=example,dc=com" \
--bind-dn "cn=admin,dc=example,dc=com" \
--bind-password "s3cret" \
--ldap-type active-directory \
--ssl
---> 100%
Created ldap-server-profile: secure-ldap in folder Texas

Create Profile with Multiple Servers​

$ scm set identity ldap-server-profile corp-ldap-ha \
--folder Texas \
--servers '[{"name": "ldap1", "address": "ldap1.example.com", "port": 389}, {"name": "ldap2", "address": "ldap2.example.com", "port": 389}]' \
--base "dc=example,dc=com" \
--ldap-type active-directory
---> 100%
Created ldap-server-profile: corp-ldap-ha in folder Texas

Delete LDAP Server Profile​

Delete an LDAP server profile from SCM.

Syntax​

scm delete identity ldap-server-profile NAME [OPTIONS]

Arguments​

ArgumentDescriptionRequired
NAMEProfile nameYes

Options​

OptionDescriptionRequired
--folder TEXTFolder locationNo*
--snippet TEXTSnippet locationNo*
--device TEXTDevice locationNo*
--forceSkip confirmation promptNo

* One of --folder, --snippet, or --device is required.

Example​

$ scm delete identity ldap-server-profile corp-ldap \
--folder Texas \
--force
---> 100%
Deleted ldap-server-profile: corp-ldap from folder Texas

Load LDAP Server Profile​

Load multiple LDAP server profiles from a YAML file.

Syntax​

scm load identity ldap-server-profile [OPTIONS]

Options​

OptionDescriptionRequired
--file TEXTPath to YAML fileYes
--folder TEXTFolder location overrideNo
--snippet TEXTSnippet location overrideNo
--device TEXTDevice location overrideNo
--dry-runPreview changes without applyingNo

YAML File Format​

---
ldap_server_profiles:
- name: corp-ldap
folder: Texas
servers:
- name: ldap1
address: ldap.example.com
port: 389
base: "dc=example,dc=com"
ldap_type: active-directory

- name: secure-ldap
folder: Texas
servers:
- name: ldaps1
address: ldaps.example.com
port: 636
base: "dc=example,dc=com"
bind_dn: "cn=admin,dc=example,dc=com"
bind_password: "s3cret"
ldap_type: active-directory
ssl: true

Examples​

Load with Original Locations​

$ scm load identity ldap-server-profile --file ldap.yml
---> 100%
✓ Loaded ldap-server-profile: corp-ldap
✓ Loaded ldap-server-profile: secure-ldap

Successfully loaded 2 out of 2 ldap-server-profiles from 'ldap.yml'

Load with Folder Override​

$ scm load identity ldap-server-profile \
--file ldap.yml \
--folder Austin
---> 100%
✓ Loaded ldap-server-profile: corp-ldap
✓ Loaded ldap-server-profile: secure-ldap

Successfully loaded 2 out of 2 ldap-server-profiles from 'ldap.yml'
note

When using container override options (--folder, --snippet, --device), all LDAP server profiles will be loaded into the specified container, ignoring the container specified in the YAML file.

Show LDAP Server Profile​

Display LDAP server profile objects.

Syntax​

scm show identity ldap-server-profile [NAME] [OPTIONS]

Arguments​

ArgumentDescriptionRequired
NAMEProfile name; omit to list allNo

Options​

OptionDescriptionRequired
--folder TEXTFolder locationNo*
--snippet TEXTSnippet locationNo*
--device TEXTDevice locationNo*
--output, -o [table|json|yaml]Output format (default: table)No
--max-results INTEGERMaximum number of results to displayNo

* One of --folder, --snippet, or --device is required.

note

When no NAME is specified, all items are listed by default.

Examples​

Show Specific LDAP Server Profile​

$ scm show identity ldap-server-profile corp-ldap \
--folder Texas
---> 100%
LDAP Server Profile: corp-ldap
Location: Folder 'Texas'
LDAP Type: active-directory
Base DN: dc=example,dc=com
SSL: No
Servers:
- ldap1 (ldap.example.com:389)

List All LDAP Server Profiles (Default Behavior)​

$ scm show identity ldap-server-profile --folder Texas
---> 100%
LDAP Server Profiles in folder 'Texas':
------------------------------------------------------------
Name: corp-ldap
LDAP Type: active-directory
Servers: ldap1 (ldap.example.com:389)
------------------------------------------------------------
Name: secure-ldap
LDAP Type: active-directory
SSL: Yes
Servers: ldaps1 (ldaps.example.com:636)
------------------------------------------------------------

Backup LDAP Server Profiles​

Backup all LDAP server profile objects from a specified location to a YAML file.

Syntax​

scm backup identity ldap-server-profile [OPTIONS]

Options​

OptionDescriptionRequired
--folder TEXTFolder locationNo*
--snippet TEXTSnippet locationNo*
--device TEXTDevice locationNo*
--file TEXTCustom output filenameNo

* One of --folder, --snippet, or --device is required.

Examples​

Backup from Folder​

$ scm backup identity ldap-server-profile --folder Texas
---> 100%
Successfully backed up 4 ldap-server-profiles to ldap_server_profile_folder_texas_20240115_120530.yaml

Backup with Custom Filename​

$ scm backup identity ldap-server-profile \
--folder Texas \
--file texas-ldap.yaml
---> 100%
Successfully backed up 4 ldap-server-profiles to texas-ldap.yaml

Best Practices​

  1. Use SSL for Production: Always enable SSL (port 636) for LDAP connections in production environments to protect credentials in transit.
  2. Configure Multiple Servers: Add redundant LDAP servers to ensure high availability for authentication services.
  3. Use Service Accounts for Bind: Create dedicated service accounts with minimal privileges for LDAP bind operations rather than using admin credentials.
  4. Choose the Correct LDAP Type: Select the appropriate directory type (active-directory, e-directory, sun, other) to ensure proper attribute mapping.
  5. Backup Before Changes: Export existing profiles before making modifications to enable quick rollback if needed.
  6. Protect Bind Credentials: Store bind passwords securely and rotate them regularly according to your organization's security policy.