-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbaccess.php.in
57 lines (49 loc) · 1.56 KB
/
dbaccess.php.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* @author Anakeen
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
*/
// $Id: dbaccess.php.sample.in,v 1.6 2009/01/15 09:55:32 jerome Exp $
$pgservice_core="@CORE_DB@";
$pgservice_freedom="@FREEDOM_DB@";;
$freedom_context="default";
$dbpsql=$pgservice_core;
/*
** Authentication mode : apache / basic / html / open
** --------------------------------------------------
*/
$freedom_authtype = '@AUTHTYPE@';
$freedom_authtypeparams = array(
'html' => array (
'cookie' => 'freedom_auth',
'authurl' => 'guest.php?sole=A&app=AUTHENT&action=LOGINFORM',
'username' => 'auth_user',
'password' => 'auth_pass',
),
'open' => array(),
'basic' => array(
'realm' => 'freedom',
),
);
/*
** Providers : how username / password tuple is validated
** ------------------------------------------------------
*/
$freedom_authprovider = 'freedom';
$freedom_providers = array(
'freedom' => array(
'connection' => 'service='.$pgservice_core,
),
'file' => array(
'authfile' => '@prefix@/.freedompwd',
),
);
/*
** Include local/override config
** -----------------------------
*/
$local_dbaccess = dirname(__FILE__).DIRECTORY_SEPARATOR.'local-dbaccess.php';
if( file_exists($local_dbaccess) ) {
include($local_dbaccess);
}
?>