> Hi, > > > I want to incorporate the abook_group plugin into our environment but > I'm having some problems. We use the default flat file address book > scheme, and the abook_group plugin is happy with that. We also have a > home-grown plugin to access the user's imsp address book and Squirrelmail > is configured for LDAP access as well. The problem is, when adding names > to an address group, the search function allows the user to search all the > various available varieties of address book, but adding folks from > anything other than the person address book is problematic (and that > translates into a support nightmare). Is there away to forcibly limit > users to their personal address book only when adding addresses to a > group.
addrbook_search.php file ---- /* List all backends to allow the user to choose where to search */ if ($abook->numbackends > 1) { echo '<strong>' . _("in") . '</strong> <select name="backend">'."\n". '<option value=-1'. (($backend == -1) ? " selected" : "").'>' . _("All address books") . "\n"; $ret = $abook->get_backend_list(); while (list($undef,$v) = each($ret)) { echo '<option value=' . $v->bnum . (($backend == $v->bnum) ? " selected" : "") . '>' . $v->sname . "\n"; } echo "</select>\n"; } else { echo '<input type="hidden" name="backend" value="-1">' . "\n"; } ---- If you force use of hidden 'backend' input field with value set to 1, all searches should be performed in first configured backend. Or you can use $abook->localbackend parameter from $abook object. -- Tomas ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@lists.sourceforge.net List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users