Changeset 6496


Ignore:
Timestamp:
06/14/12 16:14:18 (7 years ago)
Author:
viani
Message:

Ticket #2860 - Correção para respeitar follow_referrals na busca ldap workflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.bo_utils.inc.php

    r6037 r6496  
    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.