[cvs] [Wiki] changed: AuthCompositeHowTo

Jan Schneider jan at horde.org
Wed May 19 08:42:59 PDT 2004


jan  Wed, 19 May 2004 08:42:59 -0700

Modified page: http://wiki.horde.org/display.php?page=AuthCompositeHowTo
New Revision:  1.2

@@ -1,5 +1,10 @@
 + Composite Authentication !HowTo
+
+**Contents**
+[[toc]]
+
+
 
 The composite authentication driver allows to use different authentication schemes for different purposes or circumstances. You can force mobiles of PDAs to ((MIMPHowTo|authenticate with MIMP)) for instance, or choose different drivers for authentication and user management.
 
 ++ Defining the several drivers
@@ -41,7 +46,24 @@
     'password' => 'secret',
     'database' => 'coporate_users');
 </php>
 
-++ Selecting the driver
+++ Selecting the drivers
 
+Next we need to select the correct drivers for the different purposes of the authentication API. The driver gets selected by the name we used in the last step. There are currently three possible switches for selecting a driver:
+
++++ Selecting the login driver
+
+The driver that is responsible for logging the user in, including providing the login screen and authenticating the user credentials, is selected by the "loginscreen_switch".
+
+Let's take our sample from above and choose the "intranet_ftp" driver as the login driver:
+
+<php>
+$conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
+if (!function_exists('_horde_select_loginscreen')) {
+    function _horde_select_loginscreen()
+    {
+        return 'intranet_ftp';
+    }
+}
+</php>
 


More information about the cvs mailing list