Blame Scripts/centos-web/config.php

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