Cisco Optical Network Controller Installation Guide, Releases 26.x.x

PDF

Cisco Optical Network Controller Installation Guide, Releases 26.x.x

Administer user security from the sedo CLI

Want to summarize with AI?

Log in

Review the Cisco Optical Network Controller user-security settings available from the sedo CLI.


Identify the administrative commands used to manage password and session security.

Administrators can manage password policies, session duration, and login-attempt controls from the Cisco Optical Network Controller VM CLI.

The table summarizes the available user-security settings.

Table 1. User-security settings

Setting

Purpose

Command

Password policy

Controls password expiration, complexity, and reuse requirements for local users.

sedo security password-policy

Session timeout

Controls the maximum age and security properties of session cookies.

sedo security session

Session login limiter

Controls login-attempt throttling and blocking behavior.

sedo security login-limiter


Verify the system and configure initial credentials

Procedure

  1. After you SSH into the node, use the sedo system status command to check the status of all the pods.

    Example:

    sedo system status
    Note
    • The different pods along with their statuses including active and standby modes are all displayed in the different terminal sessions for each pod.

    • All the services with owner onc must display the status as Running.

  2. (Optional) View the current password policy settings using the sedo security password-policy get command.

    Example:

    sedo security password-policy get

    The command displays the default password expiration period, password reuse limit, and minimum password complexity score.

  3. (Optional) Change the password policy settings using the sedo security password-policy set command.

    Example:

    sedo security password-policy set --expiration-days <number> --reuse-limit <number> --min-complexity-score <number>
    Table 2. Password policy parameters
    Parameter Description
    expiration-days

    Default password expiration used when creating new users, in days.

    Default: 180 days

    min-complexity-score

    Minimum password complexity score required.

    Default: 3

    reuse-limit

    Number of historical passwords retained and blocked from reuse when changing a password.

    Default: 12

  4. You can check the current version using the sedo version command.

    Example:

    sedo version
  5. SSH to the node and set the initial UI password for the admin user.

    Example:

    sedo security user set admin --password
    Note

    The password policy for the system includes both configurable settings and non-configurable hard requirements to ensure security.

    Password requirements

    • The password must contain at least:

      • 1 uppercase letter

      • 1 lowercase letter

      • 1 number

      • 1 special character

    • Must have a minimum length of 8 characters

    Configurable requirements

    You can change the password policy settings using the sedo security password-policy set command. Specify the desired parameters to adjust the configuration.

The system status and credentials are verified and configured.


Configure the session timeout

Configure the session timeout to control how long a Cisco Optical Network Controller session cookie remains valid.

The session timeout configuration is an infrastructure setting that is configured from the Cisco Optical Network Controller VM CLI.

Before you begin

  • You have administrative access to the Cisco Optical Network Controller VM.

  • You can access the sedo CLI.

Follow these steps to configure the session timeout.

Procedure

  1. Log in to the Cisco Optical Network Controller VM CLI.

  2. Configure the session timeout.

    Example:

    sedo security session set --max-age <duration>

    In this command, <duration> is the maximum cookie age. The default value is 10m0s.

  3. Configure any additional session options that are required for the deployment.

    Table 3. Session timeout options

    Option

    Description

    --domain string

    Cookie domain.

    --max-age duration

    Maximum cookie age. The default value is 10m0s.

    --rolling

    Enables rolling session. The default value is true.

    --same-site string

    Cookie same-site policy.

    --secure

    Enables a secure session cookie. The default value is true.

Cisco Optical Network Controller applies the updated session timeout configuration.


Configure the session login limiter

Configure the session login limiter to control login attempt throttling and blocking behavior for Cisco Optical Network Controller access.

The session login limiter configuration is an infrastructure setting that is configured from the Cisco Optical Network Controller VM CLI. Access attempts are logged and can be viewed in system logs.

Before you begin

  • You have administrative access to the Cisco Optical Network Controller VM.

  • You can access the sedo CLI.

Follow these steps to configure the session login limiter.

Procedure

  1. Log in to the Cisco Optical Network Controller VM CLI.

  2. View the current session login limiter configuration.

    Example:

    sedo security login-limiter get

    The command displays the limit window, maximum login attempts before blocking, delay start attempt, and base delay.

  3. Configure the session login limiter.

    Example:

    sedo security login-limiter set --max-attempts <number> --limit-window <duration> --delay <duration> --delay-after-attempt <number>
  4. Review the session login limiter options.

    Table 4. Session login limiter options

    Option

    Description

    --delay duration

    Delay added between login attempts. The default value is 250ms.

    --delay-after-attempt uint

    Attempt number after which delay starts. The default value is 1.

    --limit-window duration

    Login attempt limit window. The default value is 5m0s.

    --max-attempts uint

    Maximum login attempts before blocking. The default value is 8.

  5. Verify the updated session login limiter configuration.

    Example:

    sedo security login-limiter get

Cisco Optical Network Controller applies the updated session login limiter configuration.