Blame Automation/Php/Webenv/config.php

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