Projeto

Geral

Perfil

Estatísticas
| Branch: | Revisão:

expressolivretools / app / ldap / config.php @ 3e379cec

Histórico | Ver | Anotar | Baixar (944 Bytes)

1
<?php
2

    
3
use Illuminate\Support\Facades\DB;
4

    
5
// $ldapConfig = DB::connection('pgsql-expresso')
6
//                     ->table('phpgw_config')
7
//                     ->where('config_app', 'phpgwapi')
8
//                     ->whereIn('config_name', ['ldap_context','ldap_host','ldap_root_dn','ldap_root_pw'])
9
//                     ->get();
10

    
11
// return [
12
//     'hosts'            => '',
13
//     'base_dn'          => 'dc=local,dc=com',
14
//     'username'         => 'cn=admin,dc=local,dc=com',
15
//     'password'         => 'password',
16
//     'port'             => 389,
17
//     // 'use_ssl'          => false,
18
//     // 'use_tls'          => false,
19
//     // 'version'          => 3,
20
//     // 'timeout'          => 5,
21
//     // 'follow_referrals' => false,
22

    
23
//     // // Custom LDAP Options
24
//     // 'options' => [
25
//     //     // See: http://php.net/ldap_set_option
26
//     //     LDAP_OPT_X_TLS_REQUIRE_CERT => LDAP_OPT_X_TLS_HARD
27
//     // ]
28
// ];