# salt.states.pdbedit

Manage accounts in Samba's passdb using pdbedit

maintainer:

  Jorge Schrauwen <sjorge@blackdot.be>

maturity:

  new

depends:

  pdbedit

platform:

  posix

Added 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

  namestring

    username

salt.states.pdbedit.managed(name, **kwargs)

  Manage user account

  loginstring

    login name

  passwordstring

    password

  password_hashedboolean

    set if password is a nt hash instead of plain text

  domainstring

    users domain

  profilestring

    profile path

  scriptstring

    logon script

  drivestring

    home drive

  homedirstring

    home directory

  fullnamestring

    full name

  account_descstring

    account description

  machine_sidstring

    specify the machines new primary group SID or rid

  user_sidstring

    specify the users new primary group SID or rid

  account_controlstring

    specify user account control properties

    Note

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

  reset_login_hoursboolean

    reset the users allowed logon hours

  reset_bad_password_countboolean

    reset the stored bad login counter

salt.states.pdbedit.present(name, **kwargs)

  Alias for pdbedit.managed