authuser

authuser — creates a new user.

Syntax

(authuser name group hash bits max_concurrent_logins max_logins login_count expiry)
    

Arguments

name

The name of the group.

group

The group name if the user belongs to a group, otherwise "".

hash

A password hash computed by the DataHub. The algorithm is not published and the hash cannot be reversed to determine the original password.

bits

Authentication bits.

max_concurrent_logins

The maximum number of concurrent logins for members of this group. Each group member maintains its own independent count.

max_logins

The maximum number of times that a member of this group may log in to the DataHub, ever. Each member of the group maintains its own independent count.

login_count

The number of times that this user has logged in, ever.

expiry

The expiry date for members of this group. This is given as UNIX epoch time - the number of seconds since Jan. 1, 1970.

Returns

A message indicating success or error. Please refer to Return Syntax for details.

Description

This command creates a new user. This cannot really be emitted by a client because a client will not know how to compute the password hash. If a client knows a valid password hash then it can use that hash to produce a new user with the same password as the password that produced that password hash.