Re: [RCD] Login plugin and default host

2009-09-15 Thread Terminal Addict
A.L.E.C wrote: > Pedro R. Benito da Rocha wrote: >> Hello all, >> >> Here is the plugin and default config (rename it to config.inc.php). See >> attached files. > > Did you try imap_connect/smtp_connect hooks to overwrite host setting? > add_hook('imap_connect', array($this, 'get_server'));

Re: [RCD] weird LDAP addressbook behaviour

2009-09-04 Thread Terminal Addict
Sorry for the late response. Moved last week, and this was first week of classes. The changes do seem to have corrected the issue. :) Unfortunately, I'll still need to modify rcube_ldap.php to allow me to use multiple DN's for searching. The AD implementation where I am is messy. Searching on

[RCD] patches

2009-08-11 Thread Terminal Addict
search.inc.patch is for program/steps/addressbook/search.inc This patch is a workaround for what appears to be a PHP bug that prevents the setting of multi-dimension associative arrays in $_SESSION (more specifically, the value of $_SESSION['search'][$search_request]). The bug causes issues wi

Re: [RCD] weird LDAP addressbook behaviour

2009-07-31 Thread Terminal Addict
n the listing of records and displaying details of a specific record. As it is, it took me quite some time to track down the "filtering" effect of _ldap2result (I have admitted, and admit again here, that I am not a professional programmer or debugger :) ). Kyle A.L.E.

Re: [RCD] weird LDAP addressbook behaviour

2009-07-30 Thread Terminal Addict
$out[$rf] = $rec[$lf][0]; elseif ($rec[strtolower($lf)]['count']) $out[$rf] = $rec[strtolower($lf)][0]; } return $out; } - Terminal Addict wrote: > Oops. :) > > The change does

Re: [RCD] corrupted filter in multiple LDAP searches (work around found)

2009-07-23 Thread Terminal Addict
t with the following: // $_SESSION['search'][$search_request] = $CONTACTS->get_search_set(); $search_set[$search_request] = $CONTACTS->get_search_set(); $_SESSION['search'] = $search_set; This of course would be a problem if $_SESSION['search'] contained anything el

[RCD] corrupted filter in multiple LDAP searches

2009-07-22 Thread Terminal Addict
I am following up on a submitted bug and was hoping someone else could confirm the behaviour I'm seeing. I have added the following to program/steps/addressbook/search.inc to demonstrate the problem (note that first line below should be the existing line 34). $_SESSION['search'][$search_req

Re: [RCD] weird LDAP addressbook behaviour

2009-07-21 Thread Terminal Addict
Oops. :) The change does indeed work, but it required the "*_field" values to be all lower case. The values in "search_fields" seem to be case-insensitive (which I believe they should be). Kyle Terminal Addict wrote: > Okay... > > program/steps/addressbook/show.i

Re: [RCD] weird LDAP addressbook behaviour

2009-07-20 Thread Terminal Addict
ecified for search_fields and name_field arrays. So, line 33 in show.inc changed to the following yields expected results. if (!(($result = $CONTACTS->list_records()) && ($record = $result->first( { Kyle Terminal Addict wrote: > LDAP being used is AD. name_field is 

[RCD] weird LDAP addressbook behaviour

2009-07-17 Thread Terminal Addict
LDAP being used is AD. name_field is 'displayName'. If I specify name_field as 'displayname', then it properly displays names in the list (for search results), but it won't show the display name in the contact details. If I specify name_field as 'displayName', then it displays empty (but click

[RCD] Multiple LDAP search base diff

2009-07-07 Thread Terminal Addict
This diff for rcube_ldap.php allows users to define an array 'search_base_dn' in an ldap config. This is for users that may have to deal with poor LDAP data (like you would see from someone who can install Windows Server 2008 so they think they're an IT admin expert). I freely and openly admit tha