summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/README.txt')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/README.txt23
1 files changed, 22 insertions, 1 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/README.txt b/kolab.org/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/README.txt
index 4533a85..11f74f6 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/README.txt
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/ldap/ldap_authentication/README.txt
@@ -5,6 +5,10 @@
PHP to Test for Allowed LDAP Users
=======================================
+Remember:
+-- php module must be enabled (its one of the core drupal modules)
+-- code should not be enclosed in <?php ?>
+
Two variables are available:
(1) $_name - the username ldap server configuration has mapped user to such as "jdoe" etc. How this is derived is configured in ldap_servers module.
@@ -26,7 +30,7 @@ array(
Result should print 1 for allowed or 0 for disallowed. The function used to evaluate the code is php_eval() in php.module
---------------------------------
-Examples:
+Example 1:
//exclude users with guests.myuniversity.edu email address
@@ -37,4 +41,21 @@ else {
print 0;
}
+---------------------------------
+Example 2:
+
+// test behaviour of nobody excluded
+print 1;
+
+---------------------------------
+Example 3:
+
+// test behaviour of nobody excluded
+print 0;
+
+
+
+
+
+