salt.states.pdbedit

Manage accounts in Samba's passdb using pdbedit

maintainer:Jorge Schrauwen <sjorge@blackdot.be>
maturity:new
depends:pdbedit
platform:posix

New in version 2017.7.0.

wash:
  pdbedit.absent

kaylee:
  pdbedit.managed:
    - password: A70C708517B5DD0EDB67714FE25336EB
    - password_hashed: True
    - drive: 'X:'
    - homedir: '\\serenity\mechanic\profile'
salt.states.pdbedit.absent(name)

Ensure user account is absent

name
: string
username
salt.states.pdbedit.managed(name, **kwargs)

Manage user account

login
: string
login name
password
: string
password
password_hashed
: boolean
set if password is a nt hash instead of plain text
domain
: string
users domain
profile
: string
profile path
script
: string
logon script
drive
: string
home drive
homedir
: string
home directory
fullname
: string
full name
account_desc
: string
account description
machine_sid
: string
specify the machines new primary group SID or rid
user_sid
: string
specify the users new primary group SID or rid
account_control
: string

specify user account control properties

Note

Only the follwing can be set: - N: No password required - D: Account disabled - H: Home directory required - L: Automatic Locking - X: Password does not expire

reset_login_hours
: boolean
reset the users allowed logon hours
reset_bad_password_count
: boolean
reset the stored bad login counter
salt.states.pdbedit.present(name, **kwargs)

Alias for pdbedit.managed