1<?php
2/*
3 * This file should be put outside the server's ROOT directory to avoid
4 * malicious accessing, for example in /etc.
5 *
6 * It is read only by the gda-config.php script.
7 */
8
9/*
10 * initial shared secret: will have to be passed as the SECRET argument when opening
11 * the connection from Libgda
12 */
13$init_shared = "MySecret";
14
15/*
16 * declared connections: for each connection which can be opened by Libgda, the
17 * the connection's password and the real connection's DSN need to be added respectively
18 * to the $cnc and $dsn arrays, using the connection name as a key. The connection name
19 * and password have no significance outside of the Libgda's context and be arbitrary.
20 * However the real connection's DSN need to be valid for the PEAR's MDB2 module, as
21 * per http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
22 *
23 */
24
25/* sample connection cnc1 */
26$cnc["cnc1"] = "MyPass1";
27$dsn["cnc1"] = "pgsql://gdauser:GdaUser@127.0.0.1/test";
28
29/* sample connection cnc2 */
30$cnc["cnc2"] = "MyPass2";
31$dsn["cnc2"] = "mysql://gdauser:GdaUser@unix(/var/run/mysqld/mysqld.sock)/test1";
32
33?>
34