source/auth.tcl
| Procedure Summary |
adduser { user shell {pass {}} }Create a new user |
crypt { pass {salt {}} }Compute the MD5 checksum of a string. |
deluser { user }Delete a user account from the |
islocked { user }Find if a user account is |
lock { user }Lock a user account: Cannot be used to login. |
login { {user {}} } |
makeroot { user }Give root privileges to a user account. |
name_is_ok { user }Verify that username string is syntactically correct (length, character composition, etc). |
pass_is_ok { pass }Verify that password string is syntactically correct (length, character composition, etc). |
passwd { user newpass {nocrypt {}} }Change user password, without asking for the old one. |
unlock { user }Unlock a user account: Can be used to login. |
user_exists { user }Check if a username is used in the |
verify { user pass }Verify that supplied username and password is |
| Procedure Detail |
proc adduser { user shell {pass {}} }
user - The username string.
shell - The user shell. MikroConf shell is used if not provided.
pass - The cleartext password string for the new user. Login is dissabled if not provided.
proc crypt { pass {salt {}} }
pass - The password cleartext string
salt - A string to use as a salt as per 'cryptpw'. If not specified 'cryptpw' will select one randomly.
proc deluser { user }
user - The username string
proc islocked { user }
user - User name.
proc lock { user }
user - User name.
@error
proc login { {user {}} }
proc makeroot { user }
user - The username string.
@error
proc name_is_ok { user }
user - The username string
proc pass_is_ok { pass }
pass - The password string
proc passwd { user newpass {nocrypt {}} }
user - The username string.
newpass - The new password string (cleartext) to change to.
nocrypt - When set to something then password is assumed to be already encrypted.
proc unlock { user }
user - User name.
@error
proc user_exists { user }
user - The username string
proc verify { user pass }
user - The username string
pass - The password string