Conf.php.sample 891 Bytes
Newer Older
remy's avatar
remy committed
1
2
3
4
5
6
7
8
9
10
11
12
<?php

class Conf {

        public static $DB_NAME       = '';

        public static $DB_HOSTNAME   = '';

        public static $DB_USERNAME   = '';

        public static $DB_PP         = '';

13
14
        // generate an admin password with: echo password|sha1sum|awk '{print $1}';
        public static $KK            = "to_replace_with_your_admin_pass";
remy's avatar
remy committed
15

jlopez's avatar
jlopez committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
        public static $LDAP_HOSTNAME = '';
        public static $LDAP_PORT     = 0;
        public static $LDAP_ADMIN    = 'cn=X,dc=X,dc=X,dc=X';
        public static $LDAP_USER     = 'ou=people,dc=X,dc=X,dc=X';
        public static $LDAP_PP       = '';

        public static function dbEncodePass($p) {
                # exemple md5, sha1, etc...
                return $p;
        } 

        # encoding ldap password
        public static function ldapEncodePass($p) {
                
                return $p;
        } 

remy's avatar
remy committed
33
34
}