aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/pam.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-06 12:34:00 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-06 12:34:00 +0000
commite38e82687bdb67eccadd46b2615df2baa4e0b7ce (patch)
tree6e90ff9592d3c9e2146b06ebc9746d652b00f1db /engine/lib/pam.php
parent4044e085cd5b5698b05f1a070cd95b453c19aa69 (diff)
downloadelgg-e38e82687bdb67eccadd46b2615df2baa4e0b7ce.tar.gz
elgg-e38e82687bdb67eccadd46b2615df2baa4e0b7ce.tar.bz2
removing username/password authorization for REST by default - developers can add their own custom PAM using the plugin hook if they require this
git-svn-id: http://code.elgg.org/elgg/trunk@3627 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/pam.php')
-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