summaryrefslogtreecommitdiff
path: root/check/check.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2021-02-01 13:09:18 -0500
committerJakob Kaivo <jkk@ung.org>2021-02-01 13:09:18 -0500
commit56a7bd183c92c4f1b519376ccd6155a24bae970c (patch)
tree5041a2bea9c8cf5e67e4a20b765722948ce8fcde /check/check.h
parent7e2116e5b07bd2a065bc9b8f1cbc63f57e41e285 (diff)
implement basic PAM authentication
Diffstat (limited to 'check/check.h')
-rw-r--r--check/check.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/check/check.h b/check/check.h
index 6f2c9fc..e8dac77 100644
--- a/check/check.h
+++ b/check/check.h
@@ -2,12 +2,17 @@
#define PRIVEXEC_CHECK_H
#ifndef CONFIG_PATH
-#define CONFIG_PATH "/etc/privexec.conf"
+#define CONFIG_PATH "/etc/privexec.conf"
+#endif
+
+#ifndef PAM_SERVICE_NAME
+#define PAM_SERVICE_NAME "privexec"
#endif
enum permission { UNKNOWN, AUTHORIZED, AUTHENTICATE, DENIED };
void fatal(int include_errno, char *fmt, ...);
enum permission get_permission(const char *user, const char *group, const char *cmd);
+int authenticate(const char *user);
#endif