[cvs] [Wiki] changed: AuthCompositeHowTo

Jan Schneider jan at horde.org
Tue May 18 07:50:11 PDT 2004


jan  Tue, 18 May 2004 07:50:11 -0700

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

@@ -1 +1,47 @@
++ Composite Authentication !HowTo
+
+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
+
+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>
+$conf['auth']['driver'] = 'ftp';
+$conf['auth']['params'] = array('hostspec' => '192.168.0.21',
+                                'port' => 21);
+</php>
+
+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>
+$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>
+
+Let's configure a second authentication driver called "corporate_sql":
+
+<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);
+$conf['auth']['params']['drivers']['corporate_sql']['driver'] = 'sql';
+$conf['auth']['params']['drivers']['corporate_sql']['params'] = array(
+    'hostspec' => 'localhost',
+    'phptype' => 'mysql',
+    'protocol' => 'unix',
+    'username' => 'dbuser',
+    'password' => 'secret',
+    'database' => 'coporate_users');
+</php>
+
+++ Selecting the driver
+
 


More information about the cvs mailing list