lib/users.cf

Table of Contents

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

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);
}