Documentation ¶
Overview ¶
lpasswd - lib to handle storage and lookup of app-local users with passwords akin to /etc/passwd.
Copyright (c) 2017-2020 Russell Magee Licensed under the terms of the MIT license (see LICENSE.mit in this distribution)
golang implementation by Russ Magee (rmagee_at_gmail.com)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthUserByPasswd ¶
func AuthUserByPasswd(ctx *AuthCtx, sysacct bool, username string, auth string, fname string) (valid bool, err error)
AuthUserByPasswd checks user login information using a password. This checks file _fname_ for auth info, and optionally system /etc/passwd to cross-check the user actually exists, if sysacct == true. nolint: gocyclo
func SetPasswd ¶
SetPasswd enters _uname_ with the specified _passwd_ into the local password file _passwdFName_.
Types ¶
Click to show internal directories.
Click to hide internal directories.