Puppet: System Administration Automated

Support

Ticket #1106 (closed enhancement: duplicate)

Opened 6 months ago

Last modified 6 months ago

user provider locking of password

Reported by: jspirat Assigned to: community
Priority: normal Milestone:
Component: library Version:
Severity: normal Keywords: provider user
Cc: Triage Stage: Unreviewed
Attached Patches: None Complexity: Unknown

Description

hi,

right now in the user type we have the ensure parameter that can use absent/present. I suggest to add: locked,unlocked

locked = present + password locked (passwd start by '!' on linux or '*LOCKED*' on freebsd) like this on:

linux: passwd -l <login>
freebsd: pw lock <login>

unlocked = present + password unlocked like this (passwd do not start by '!' on linux or '*LOCKED*' on freebsd):

freebsd:  pw unlock <login>
linux: passwd -u <login>

note: password lock does not prevent ssh login by ssh keys :)

this can be handy to disable/enable a user.

regards, jean.

Change History

02/28/08 19:15:50 changed by plathrop

  • status changed from new to closed.
  • resolution set to duplicate.

Duplicate of #219