[284] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | * Created on 20/08/2007 Por Bruno costa |
---|
| 4 | * |
---|
[1069] | 5 | * Arquivo de configuração de catálogos externos |
---|
[284] | 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | /* |
---|
| 10 | * This file is comprised of two arrays describing the external catalogs ($external_srcs) and their attribute mappings |
---|
| 11 | * ($external_mappings). The mapping between an external catalog and his attribute mappings are made with the array indices, i. e. |
---|
| 12 | * a catalog at external_srcs with indice = 1 use the mapping with indice = 1 at external_mapping. |
---|
| 13 | * |
---|
| 14 | * external_srcs' format: |
---|
| 15 | * |
---|
| 16 | * $external_srcs = array( |
---|
| 17 | * 1 => array( |
---|
| 18 | * 'name' => 'Catalog's name', |
---|
| 19 | * 'host' => 'catalog's hostname', |
---|
| 20 | * 'dn' => 'catalog's base dn', |
---|
| 21 | * 'acc' => 'catalog's bind dn', |
---|
| 22 | * 'pw' => 'bind dn's password', |
---|
| 23 | * 'obj' => 'objectClass that will be used in searches', |
---|
| 24 | * 'branch' => strtolower('attribute used as branches in the catalog tree'), |
---|
[1042] | 25 | 'quicksearch => 'ExpressoMail's search', |
---|
| 26 | 'max_results' => 'Ldap's search limit', |
---|
[404] | 27 | * ), |
---|
[284] | 28 | * 2 => array( |
---|
| 29 | * ... |
---|
| 30 | * ), |
---|
| 31 | * ); |
---|
| 32 | * |
---|
| 33 | * external_mappings' format: |
---|
| 34 | * |
---|
| 35 | * $external_mappings = array( |
---|
| 36 | * 1 => array( |
---|
| 37 | * 'contact.id_contact' => array('dn'), |
---|
| 38 | * 'contact.photo' => array('jpegPhoto'), |
---|
| 39 | * 'contact.prefixes.prefix' => false, //used when you don't have an attribute or don't want to use one |
---|
| 40 | * ... |
---|
| 41 | * ), |
---|
| 42 | * 2 => array( |
---|
| 43 | * ... |
---|
| 44 | * ), |
---|
| 45 | * ); |
---|
| 46 | * |
---|
| 47 | */ |
---|
[1042] | 48 | |
---|
[285] | 49 | ?> |
---|