[turba] problem w/ turba/lib/Driver/ldap.php read() function

Chuck Hagenbuch chuck at horde.org
Fri Dec 5 11:23:12 PST 2003


Quoting Gary Windham <windhamg at email.arizona.edu>:

> It appears that the read() method in the Turba LDAP driver doesn't work
> properly when passed an array of DNs.  I stumbled across this while
> trying to add a client link to a Nag task from an LDAP address book
> source.  If the $dn argument is an array, the read() method attempts to
> construct a search filter comprised of the array values, logically ORed.
>   The 'dn' attribute, at least in the various LDAP servers I've dealt
> with, is not a real, "searchable" attribute--to retrieve a single DN
> entry, one needs to set the search base to the desired entry's DN.
>
> I've attached a patch for turba/lib/Driver/ldap.php that seems to
> resolve this issue.

Committed, thanks!

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"I'm really... I'm not too fascinated by green food." - Average Joe


More information about the turba mailing list