Skip to content
This repository was archived by the owner on Jan 3, 2018. It is now read-only.
This repository was archived by the owner on Jan 3, 2018. It is now read-only.

Patch failes at DirectoryLDAP.php #7

@cyberdaemon

Description

@cyberdaemon

Hi,

I've setuap a new Kolab 3.1 server and when running the patch i get following error:

patching file lib/Kolab/FreeBusy/DirectoryLDAP.php
Hunk #1 FAILED at 99.
1 out of 1 hunk FAILED -- saving rejects to file lib/Kolab/FreeBusy/DirectoryLDAP.php.rej

Contents of rej file:

--- lib/Kolab/FreeBusy/DirectoryLDAP.php
+++ lib/Kolab/FreeBusy/DirectoryLDAP.php
@@ -99,9 +99,17 @@
$result = array('s' => $user);

            if ($this->ready) {
  •                    $base_dn = $config['base_dn'];
    
  •                    if ($base_dn = '%dc') {
    
  •                        list($u, $d) = explode('@', $user);
    
  •                        $base_dn = 'dc='.strtr($d, array('.' => ',dc='));
    
  •                    }
    
    •               // search with configured filter
                    $filter = preg_replace('/%s/i', $user, $this->config['filter']);
      
  •                   $ldapresult = $this->ldap->search($this->config['base_dn'], $filter, 'sub');
    
  •                   $ldapresult = $this->ldap->search($base_dn, $filter, 'sub');
    
                    // got a valid result
                    if ($ldapresult && $ldapresult->count()) {
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions