Ticket #1485781 (closed Bugs: fixed)

Opened 12 months ago

Last modified 7 months ago

LDAP AddressBook null values in contact fields produce an error

Reported by: atuin Owned by:
Priority: 5 Milestone: 0.3-stable
Component: LDAP connection Version: 0.2.1
Severity: minor Keywords: ldap addressbook
Cc:

Description

hello (sorry for my bad english)

With extended ldap adressbook,(view http://www.roundcubeforum.net/plug-ins/2292-global-address-book-additional-fields-additional-email-addresses-4.html#post17779)

when we add a contact with null values in fields produce an "value #0 invalid per syntax" error on the ldap server (openldap)

The problem comes when fields in the html pages are left empty, which is normal for this application.

so we changed on /program/include/rcube_ldap.php

$newentry[$fld] = $val;

with

if ($val != "" ) $newentry[$fld] = $val;

Cyril

Change History

Changed 12 months ago by alec

  • milestone changed from later to 0.2.2

Changed 7 months ago by alec

  • status changed from new to closed
  • resolution set to fixed
  • component changed from Addressbook to LDAP connection

Fixed in r2890.

Note: See TracTickets for help on using tickets.