Skip to content

Password Hardening: Fix the support of disable expiration like in Linux (PAM) #17427

Open
@davidpil2002

Description

@davidpil2002

Description

 Password Hardening: Add support to disable expiration date like in Linux:
 -1: expiration will never occur
 0: expiration will expire immediately

Steps to reproduce the issue:

sudo config passw-hardening policies expiration -1
Usage: config passw-hardening policies expiration [OPTIONS] EXPIRATION
Try "config passw-hardening policies expiration -h" for help.

Error: no such option: -1

Describe the results you received:

Recieved -1 its not exist "Error: no such option: -1", but the cracklib library that this feature used supports -1 as disabling the expiration time.

Describe the results you expected:

expect to be able to set -1 value in the expiration attribute and not expiration day will happen to the password of the users.

Output of show version:

any version

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions