Update pam.py
This commit is contained in:
parent
3f68b57eec
commit
f849026192
1 changed files with 4 additions and 4 deletions
|
|
@ -32,10 +32,10 @@ def doAuth(pamh):
|
||||||
return pamh.PAM_AUTHINFO_UNAVAIL
|
return pamh.PAM_AUTHINFO_UNAVAIL
|
||||||
|
|
||||||
# Abort if the video device does not exist
|
# Abort if the video device does not exist
|
||||||
if not os.path.exists(config.get("video", "device_path")):
|
if not os.path.exists(config.get("video", "device_path")):
|
||||||
if config.getboolean("video", "warn_no_device"):
|
if config.getboolean("video", "warn_no_device"):
|
||||||
print("Camera path is not configured correctly, please edit the 'device_path' config value.")
|
print("Camera path is not configured correctly, please edit the 'device_path' config value.")
|
||||||
return pamh.PAM_AUTHINFO_UNAVAIL
|
return pamh.PAM_AUTHINFO_UNAVAIL
|
||||||
|
|
||||||
# Set up syslog
|
# Set up syslog
|
||||||
syslog.openlog("[HOWDY]", 0, syslog.LOG_AUTH)
|
syslog.openlog("[HOWDY]", 0, syslog.LOG_AUTH)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue