[Openupload-svn-update] SF.net SVN: openupload:[76] trunk/www/config.inc.php.example
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-10-24 09:37:14
|
Revision: 76
http://openupload.svn.sourceforge.net/openupload/?rev=76&view=rev
Author: tsdogs
Date: 2008-10-24 09:32:52 +0000 (Fri, 24 Oct 2008)
Log Message:
-----------
Add LDAP authentication configuration options
Modified Paths:
--------------
trunk/www/config.inc.php.example
Modified: trunk/www/config.inc.php.example
===================================================================
--- trunk/www/config.inc.php.example 2008-10-24 09:19:12 UTC (rev 75)
+++ trunk/www/config.inc.php.example 2008-10-24 09:32:52 UTC (rev 76)
@@ -33,12 +33,52 @@
$CONFIG['database']['name']='openupload';
/* TXT Database */
-//$CONFIG['database']['type']='txt';
-//$CONFIG['database']['rootdir']=$CONFIG['INSTALL_ROOT'].'/txtdb';
+# $CONFIG['database']['type']='txt';
+# $CONFIG['database']['rootdir']=$CONFIG['INSTALL_ROOT'].'/txtdb';
/* Table name prefix: should be common */
$CONFIG['database']['prefix']='';
+/* AUTHENTICATION MODULE */
+/* default uses the database table users */
+# $CONFIG['auth'] = 'ldap';
+$CONFIG['auth'] = 'default';
+
+/************************************************************
+ * LDAP detail configuration options *
+ ************************************************************/
+/* LDAP Host */
+# $CONFIG['ldap']['host'] = '127.0.0.1';
+/* Ldap bind user/password to get group and user information */
+# $CONFIG['ldap']['user'] = 'uid=readonly,ou=Users,dc=yourdomain,dc=com';
+# $CONFIG['ldap']['password'] = 'readonlypassword';
+/* BASE search DN */
+# $CONFIG['ldap']['basedn'] = 'dc=yourdomain,dc=com';
+
+/* users are part of this LDAP dn */
+# $CONFIG['ldap']['userdn'] = 'ou=Users,dc=yourdomain,dc=com';
+/* search objectClass for users */
+# $CONFIG['ldap']['userclass']='posixAccount';
+/* login corresponds to the 'uid' field */
+# $CONFIG['ldap']['uid']='uid';
+/* user field correspondence with application */
+# $CONFIG['ldap']['userfields'] = array ( 'uid' => 'login', 'displayname' => 'name', 'gidnumber' => 'group_id', 'mail' => 'email');
+
+/* Groups search base */
+# $CONFIG['ldap']['groupdn'] = 'ou=Groups,dc=yourdomain,dc=com';
+/* Group / SubGroup objectClass */
+# $CONFIG['ldap']['groupclass']='posixGroup';
+/* group id number which corresponds to main user group */
+# $CONFIG['ldap']['gid']='gidNumber';
+/* if the user can have more than 1 group search for other groups which contain the login in ther 'memberUid' */
+# $CONFIG['ldap']['sgid']='memberUid';
+
+/* group field correspondence with application */
+# $CONFIG['ldap']['groupfields'] = array ( 'cn' => 'name', 'description' => 'description' );
+/* other group field correspondence with application */
+# $CONFIG['ldap']['sgroupfields'] = array ( 'cn' => 'name', 'description' => 'description' );
+
+
/* PLUGINS: here you enable the plugins
* they will need to enable the functionality
* on a group basis
@@ -73,6 +113,7 @@
/* SITE STYLE */
$CONFIG['site']['template'] = 'default';
+
/* ENABLE OR DISABLE SMARTY CACHING
* if enabled make sure a cache folder exsists
* and that it is writable
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|