[cvs] [Wiki] changed: AuthCompositeHowTo

Wiki Guest wiki at wiki.horde.org
Fri Aug 6 00:41:30 PDT 2004


guest [24.237.14.243]  Fri,  6 Aug 2004 00:41:29 -0700

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

@@ -12,27 +12,27 @@
 First you need to define all the drivers that should be part of the composite driver. Each driver is configured like a "normal" authentication driver and associated with a sub-driver name. This name is completely independent with the authentication scheme.
 
 Let's say you would configure an FTP authentication backend like this:
 
-<php>
+<code type=php>
 $conf['auth']['driver'] = 'ftp';
 $conf['auth']['params'] = array('hostspec' => '192.168.0.21',
                                 'port' => 21);
-</php>
+</code>
 
 If you want to use that configuration in a composite driver, choose a name, say "intranet_ftp", and add this configuration to the "drivers" section of the composite driver parameters:
 
-<php>
+<code type=php>
 $conf['auth']['driver'] = 'composite';
 $conf['auth']['params']['drivers']['intranet_ftp']['driver'] = 'ftp';
 $conf['auth']['params']['drivers']['intranet_ftp']['params'] = array(
     'hostspec' => '192.168.0.21',
     'port' => 21);
-</php>
+</code>
 
 Let's configure a second authentication driver called "corporate_sql":
 
-<php>
+<code type=php>
 $conf['auth']['driver'] = 'composite';
 $conf['auth']['params']['drivers']['intranet_ftp']['driver'] = 'ftp';
 $conf['auth']['params']['drivers']['intranet_ftp']['params'] = array(
     'hostspec' => '192.168.0.21',
@@ -44,9 +44,9 @@
     'protocol' => 'unix',
     'username' => 'dbuser',
     'password' => 'secret',
     'database' => 'coporate_users');
-</php>
+</code>
 
 ++ 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:
@@ -55,15 +55,14 @@
 
 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>
+<code type=php>
 $conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
 if (!function_exists('_horde_select_loginscreen')) {
     function _horde_select_loginscreen()
     {
         return 'intranet_ftp';
     }
 }
-</php>
+</code>
 


More information about the cvs mailing list