The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Dropbear::XS::AuthState - Manage the authentication information of a user's login attempt.

DESCRIPTION

This type of object is created and passed during the on_passwd_fill hook. See Net::Dropbear::SSHd for details. There is no new method for this object, it is only created based on the struct from Dropbear.

ATTRIBUTES

All of these attributes are set to sane defaults. They can be left as-is or updated to new values. Note that they should be sane values; the uid and gid should exist in the system. Otherwise the results will be undefined.

These attributes represent values that are normally read from the passwd file.

pw_uid

The UID of the user attempting to login.

Default: The current user's UID.

pw_gid

The GID of the user attempting to login.

Default: The current user's GID.

pw_dir

The user's home directory.

Default: /tmp

pw_shell

The login shell of the user. This should be set to a valid shell as defined by /etc/shells. See shells(5).

Default: The empty string, which is interpreted as /bin/sh.

pw_name

The name of the user attempting login. Changing this will be seen by later hooks.

Default: The attempted login username.

pw_passwd

The crypted password of the user. This can be changed to any password that they system understands. See crypt(3).

Default: The string "!!", which will indicate a locked account.

CONSTANTS

AUTH_TYPE_NONE
AUTH_TYPE_PUBKEY
AUTH_TYPE_PASSWORD
AUTH_TYPE_INTERACT