|
|
61a2f1 |
|
|
|
61a2f1 |
/***
|
|
|
61a2f1 |
* CentOS-News configuration files.
|
|
|
61a2f1 |
*
|
|
|
61a2f1 |
*/
|
|
|
61a2f1 |
|
|
|
61a2f1 |
/* HTTP */
|
|
|
61a2f1 |
define('BASEURL', 'http://localhost/~al/cnus/trunk/');
|
|
|
61a2f1 |
|
|
|
61a2f1 |
/* HTML */
|
|
|
61a2f1 |
define('HTML_TITLE', 'CentOS EspaƱol');
|
|
|
61a2f1 |
|
|
|
61a2f1 |
/* LANGUAGE */
|
|
|
61a2f1 |
define('LANGUAGE', 'es');
|
|
|
61a2f1 |
|
|
|
61a2f1 |
/* LDAP */
|
|
|
61a2f1 |
define('LDAP_HOST', 'localhost');
|
|
|
61a2f1 |
define('LDAP_PORT', '389');
|
|
|
61a2f1 |
define('LDAP_DN', 'ou=people,dc=example,dc=com');
|
|
|
61a2f1 |
define('LDAP_ROOTDN', 'cn=manager,dc=example,dc=com');
|
|
|
61a2f1 |
define('LDAP_ROOTPW', 'ldap.Example28.InLife');
|
|
|
61a2f1 |
define('LDAP_PASSHASH', '{MD5}'); // Ex. {MD5}, {SHA}
|
|
|
61a2f1 |
define('LDAP_FILTER_ATT', 'preferredlanguage');
|
|
|
61a2f1 |
define('LDAP_FILTER_TYPE', '=');
|
|
|
61a2f1 |
define('LDAP_FILTER_VALUE', LANGUAGE);
|
|
|
61a2f1 |
|
|
|
61a2f1 |
/* DATABASE
|
|
|
61a2f1 |
|
|
|
61a2f1 |
In order to this configuration to take effect, you need to commit the
|
|
|
61a2f1 |
following steps:
|
|
|
61a2f1 |
|
|
|
61a2f1 |
1. Get into PostgreSQL as superuser and create a database to store the
|
|
|
61a2f1 |
tables used by this application.
|
|
|
61a2f1 |
|
|
|
61a2f1 |
2. Build database from predifined SQL commands.
|
|
|
61a2f1 |
|
|
|
61a2f1 |
3. Create the user you'll use to connect to PostgreSQL.
|
|
|
61a2f1 |
(Ex. createuser -P -d cnus )
|
|
|
61a2f1 |
|
|
|
61a2f1 |
4. Add, to the created user, access to authenticate in the PostgreSQL
|
|
|
61a2f1 |
host base authentication file (var/lib/pgsql/pg_hba.conf).
|
|
|
61a2f1 |
|
|
|
61a2f1 |
For example:
|
|
|
61a2f1 |
|
|
|
61a2f1 |
# TYPE DATABASE USER CIDR-ADDRESS METHOD
|
|
|
61a2f1 |
local cnus cnus md5
|
|
|
61a2f1 |
|
|
|
61a2f1 |
5. Reload PostgreSQL service (Ex. service postgresql reload)
|
|
|
61a2f1 |
|
|
|
61a2f1 |
*/
|
|
|
61a2f1 |
define('DB_USERNAME', 'cnus'); // Username
|
|
|
61a2f1 |
define('DB_PASSWORD', 'www.Cnus'); // Password
|
|
|
61a2f1 |
define('DB_DBNAME', 'cnus'); // Database name
|
|
|
61a2f1 |
|
|
|
61a2f1 |
|
|
|
61a2f1 |
//--- stop editing here!
|
|
|
61a2f1 |
|
|
|
61a2f1 |
define('ABSPATH', dirname(__FILE__) . '/');
|
|
|
61a2f1 |
?>
|