aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/pam.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/pam.php b/engine/lib/pam.php
index 04f29f412..17b10b5cc 100644
--- a/engine/lib/pam.php
+++ b/engine/lib/pam.php
@@ -45,6 +45,17 @@ function register_pam_handler($handler, $importance = "sufficient") {
}
/**
+ * Unregisters a PAM handler.
+ *
+ * @param string $handler The PAM handler function name
+ */
+function unregister_pam_handler($handler) {
+ global $_PAM_HANDLERS;
+
+ unset($_PAM_HANDLERS[$handler]);
+}
+
+/**
* Attempt to authenticate.
* This function will process all registered PAM handlers or stop when the first
* handler fails. A handler fails by either returning false or throwing an