lib/users.cf

Table of Contents

See the users promises documentation for a comprehensive reference on the body types and attributes used here.

To use these bodies, add the following to your policy:

body file control
{
    inputs => { "users.cf" }
}

password bodies

plaintext_password

Prototype: plaintext_password(text)

Description: Sets the plaintext password for the user to text

Arguments:

  • text: the plain text version of the password

Note: Don't use that unless you really have no choice

See also: hashed_password()

Implementation:

body password plaintext_password(text)
{
    format => "plaintext";
    data => $(text);
}

hashed_password

Prototype: hashed_password(hash)

Description: Sets the hashed password for the user to hash

Arguments:

  • hash: the hashed representation of the password

The hashing method is up to the platform.

See also: plaintext_password()

Implementation:

body password hashed_password(hash)
{
    format => "hash";
    data => $(hash);
}