Ignore:
Timestamp:
04/13/11 10:07:27 (13 years ago)
Author:
emersonfaria
Message:

Ticket #1746 - Criada autenticacao dos Backends no LDAP e corrigido bug de login alfanumerico

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/z-push/config.php

    r3637 r4000  
    7979    //        'domain'    - the value of the "domain" field is used 
    8080    //        '@mydomain.com' - the username is used and the given string will be appended 
    81     define('IMAP_DEFAULTFROM', ''); 
     81    define('IMAP_DEFAULTFROM', 'domain'); 
    8282    // copy outgoing mail to this folder. If not set z-push will try the default folders 
    8383    define('IMAP_SENTFOLDER', 'INBOX/Sent'); 
     
    9595    define('VCARDDIR_DIR', '/var/www/vcf'); 
    9696 
     97    // **************************************************** 
     98    //  LDAP Authentication settings 
     99    // ****************************************************     
     100    // Set USER and PASSWORD if you are not using anonymous bind 
     101    // Must have read access to DN, UID and UIDNUMBER of all users 
     102        define("ANONYMOUS_BIND", false); 
     103        define("LDAP_BIND_USER", "cn=admin,ou=expressolivre,ou=corp,dc=empresa,dc=gov,dc=br"); 
     104        define("LDAP_BIND_PASSWORD", "senha_do_admin"); 
     105     
     106        define("LDAP_HOST", "ldap://10.200.112.132/"); // Address of your LDAP server 
     107        define("LDAP_PORT", "389"); // Port of your LDAP server 
     108 
     109        // Search base & filter 
     110        define("LDAP_SEARCH_BASE", "dc=empresa,dc=gov,dc=br"); // Base path to search the filter. Example: dc=company,dc=com 
     111        define("LDAP_SEARCH_FILTER", "uid=SEARCHVALUE"); // The filter is the user login attribute. You can change only the "uid" by other attribute. The SEARCHVALUE string is replaced by the user login inside the backends. 
     112 
     113        // LDAP field mapping. 
     114        global $ldap_field_map; 
     115        $ldap_field_map = array( 
     116                                                DN                                              => 'dn', // Change 'dn' only if you use other attribute name in your LDAP. 
     117                            UID                                         => 'uid', // Change 'uid' only if you use other attribute name in your LDAP. 
     118                        UIDNUMBER                               => 'uidnumber', // Change 'uidnumber' only if you use other attribute name in your LDAP. 
     119                     ); 
    97120?> 
Note: See TracChangeset for help on using the changeset viewer.