https://wiki.davical.org/api.php?action=feedcontributions&user=AndrewRuthven&feedformat=atomDavical - User contributions [en]2024-03-29T09:13:54ZUser contributionsMediaWiki 1.40.1https://wiki.davical.org/index.php?title=PROPFIND&diff=3773PROPFIND2018-11-12T20:56:22Z<p>AndrewRuthven: Add the missing <D:prop></D:prop> tags and wrap the lines.</p>
<hr />
<div>=List available resources using propfind=<br />
==Only this user==<br />
curl --request PROPFIND --user "USER:PASS" https://SERVER/caldav.php <br />
<br />
==Show all user has access to==<br />
curl --request PROPFIND --header "Depth: 2" \<br />
--data-ascii "<D:propfind xmlns:D=\"DAV:\"><D:prop><D:getetag/></D:prop></D:propfind>" \<br />
--user "USER:PASS" https://SERVER/caldav.php</div>AndrewRuthvenhttps://wiki.davical.org/index.php?title=Configuration&diff=46Configuration2007-11-26T22:43:31Z<p>AndrewRuthven: Imported from MoinMoin</p>
<hr />
<div><br />
<br />
{{TableOfContents}} <br />
==The Configuration File==<br />
<br />
The configuration file for RSCDS is looked for in two places. First, a {{{config/config.php}}} file is looked for, relative to the RSCDS root directory (the directory above the htdocs directory). If that is not present then it will look for a file in {{{/etc/rscds}}} which is named {{{domain.com-conf.php}}}. This file is a PHP file and is included very early in the processing of each page. <br />
<br />
Although you use RSCDS only from remote locations a {{{/etc/rscds/localhost-conf.php}}} is also necessary. So make a symbolic link from {{{/etc/rscds/localhost-conf.php}}} to your {{{/etc/rscds/domain.com-conf.php}}}. (I didn't need to do this. -- [[Matt Palmer|MattPalmer]], 2007-11-08) <br />
<br />
==Example Configurations==<br />
<br />
Some commented example configurations are available in the source code. Unfortunately these did not ship with 0.8.0 but they will be included in future versions in {{{/usr/share/doc/rscds/examples}}}. <br />
<br />
You can, however, download these example configurations from the source code, here: <br />
* [http://git.catalyst.net.nz/gw?p=rscds.git;a=blob;f=config/example-config.php;hb=HEAD Example Config] - examples of the general settings. <br />
* [http://git.catalyst.net.nz/gw?p=rscds.git;a=blob;f=config/other-config.php;hb=HEAD Other Config] - examples of the more unusual settings. <br />
* [http://git.catalyst.net.nz/gw?p=rscds.git;a=blob;f=config/debug-config.php;hb=HEAD Debugging Config] - examples of the debugging settings. <br />
<br />
==Authentication Configuration==<br />
<br />
===Standard PostgreSQL Database===<br />
<br />
===Using LDAP===<br />
<br />
<pre>/********************************/<br />
/*********** LDAP hook **********/<br />
/********************************/<br />
//$c->authenticate_hook['call'] = 'LDAP_check';<br />
//$c->authenticate_hook['config'] = array(<br />
// 'host' => 'www.tennaxia.net', //host name of your LDAP Server<br />
// 'port' => '389', //port<br />
// 'bindDN'=> 'cn=manager,cn=internal,dc=tennaxia,dc=net', //DN to bind to this server enabling to perform request<br />
// 'passDN'=> 'xxxxxxxx', //Password of the previous bindDN to bind to this server enabling to perform request<br />
// 'baseDNUsers'=> 'dc=tennaxia,dc=net', //where to look at valid user<br />
// 'filterUsers' => 'objectClass=kolabInetOrgPerson', //filter that must validate an valid user<br />
// 'baseDNGroups' => 'ou=divisions,dc=tennaxia,dc=net', //not used ATM<br />
// 'filterGroups' => 'objectClass=groupOfUniqueNames', //not used ATM<br />
/** /!\ "username" should be set and "updated" must be set **/<br />
// 'mapping_field' => array("username" => "uid",<br />
// "updated" => "modifyTimestamp",<br />
// "fullname" => "cn" ,<br />
// "email" =>"mail",<br />
// "active" => ), //used to create the user based on his ldap properties<br />
/** used to set default value for all users, will be overcharged by ldap if defined also in mapping_field **/<br />
// 'default_value' => array("date_format_type" => "E","locale" => "fr_FR"),<br />
/** foreach key set start and length in the string provided by ldap<br />
example for openLDAP timestamp : 20070503162215Z **/<br />
// 'format_updated'=> array('Y' => array(0,4),'m' => array(4,2),'d'=> array(6,2),'H' => array(8,2),'M'=>array(10,2),'S' => array(12,2))<br />
//<br />
// );<br />
//<br />
//include('drivers_ldap.php');<br />
</pre><br />
<br />
===Using a different 'AWL' database===<br />
<br />
The "AWL" library contains the basic database structure for user data which is used by RSCDS, and it is possible to use this data from a different database. This plugin is written more-or-less as an example of how to write an authentication plugin, but may be useful.</div>AndrewRuthven