Projet

Général

Profil

Révision bc175c27

Ajouté par Assos Assos il y a plus de 5 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ldap/ldap_test/LdapServerTest.class.php
109 109
    }
110 110

  
111 111
    $watchdog_tokens = array('%user' => $userdn, '%errno' => $ldap_errno, '%error' => $ldap_error);
112
    watchdog('ldap', "LDAP bind failure for user %user. Error %errno: %error", $watchdog_tokens);
112
    watchdog('ldap_servers', "LDAP bind failure for user %user. Error %errno: %error", $watchdog_tokens);
113 113
    return $ldap_errno;
114 114

  
115 115
  }
......
238 238
          // cn=jdoe,ou=campus accounts,dc=ad,dc=myuniversity,dc=edu
239 239
          //$pos = strpos($dn_lcase, $base_dn);
240 240
          $substring = strrev(substr(strrev($dn_lcase), 0, strlen($base_dn)));
241
          $cascmp =  strcasecmp($base_dn, $substring);
241
          $cascmp = strcasecmp($base_dn, $substring);
242 242
          if ($cascmp !== 0) {
243 243

  
244 244
            continue; // not in basedn
......
279 279
          $filter_value = $subquery[1];
280 280

  
281 281
          $substring = strrev(substr(strrev($dn_lcase), 0, strlen($base_dn)));
282
          $cascmp =  strcasecmp($base_dn, $substring);
282
          $cascmp = strcasecmp($base_dn, $substring);
283 283
          if ($cascmp !== 0) {
284 284
            $match = FALSE;
285 285
            break; // not in basedn

Formats disponibles : Unified diff