Changeset 3279 for branches


Ignore:
Timestamp:
09/22/10 16:03:25 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1299 - Corrige a gravação da senha criptografada com certificado digital no LDAP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/preferences/changepassword.php

    r1681 r3279  
    4444        $cc=ldap_connect($ldap_servidor); 
    4545 
     46        if($GLOBALS['phpgw_info']['server']['ldap_version3']) 
     47        { 
     48                ldap_set_option($cc, LDAP_OPT_PROTOCOL_VERSION, 3); 
     49        } 
     50 
    4651        //  bind .. 
    4752        $sr=ldap_bind($cc,$ldap_dn,$ldap_passwd); 
     
    5762        // Tem de achar só uma entrada.....ao menos uma.... 
    5863        if($info["count"]!=1) 
    59             { 
     64            {        if($GLOBALS['phpgw_info']['server']['ldap_version3']) 
     65        { 
     66                ldap_set_option($cc, LDAP_OPT_PROTOCOL_VERSION, 3); 
     67        } 
    6068                ldap_close($cc); 
    6169                return false; 
Note: See TracChangeset for help on using the changeset viewer.