Changeset 6582 for branches


Ignore:
Timestamp:
06/22/12 16:29:52 (8 years ago)
Author:
eduardow
Message:

Ticket #2860 - Respeitar parâmetro follow_referrals na busca ldap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/workflow/inc/class.bo_utils.inc.php

    r6037 r6582  
    114114                        $senha = $config[$ldap_indexes['passwd']]; 
    115115 
     116                        $referrals = ($params['useCCParams'] == "true") ? 1 : $config['ldap_follow_referrals']; 
     117 
    116118                        if($usuario != "" && $senha != ""){ 
    117119                                $ds = ldap_connect($ldapconfig['host']); 
    118120 
    119121                                ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); 
    120                                 ldap_set_option($ds, LDAP_OPT_REFERRALS, 1); 
     122                                ldap_set_option($ds, LDAP_OPT_REFERRALS, $referrals); 
    121123 
    122124                                $lbind = @ldap_bind($ds, $usuario, $senha); 
Note: See TracChangeset for help on using the changeset viewer.