#
# The PAM configuration file for the nihaspassword service
#

# Skip to the bottom if the user is not root
auth    [success=ignore default=4]              pam_rootok.so

# When running as root, don't delay on failure
auth    [success=2 auth_err=1 default=ignore]   pam_niauth.so
auth    [success=1 default=ignore]              pam_unix.so nullok_secure nodelay
# Fall back to a deny
auth    requisite                               pam_deny.so
# Ensure a success is on the stack and stop here
auth    [success=done default=die]              pam_permit.so

# When not running as root, use the standard stack
auth    include    common-auth
