Package: squirrelmail
Version: 2:1.4.4-5
Severity: wishlist

It would be nice to have an extra parameter to ldap configuration
for scope - where the user can define sub or one scope. In the code
where ldap_search is called - then ldap_list can be called for scope
one. Scope sub should be the default (so that when not configured
behaviour is as today).

I tried patching config.phpl and abook_ldap_server.php but the config
didn't get thru

Something like this for starters:

config.php

$ldap_server[0] = array(
    'host' => 'localhost',
    'base' => '',
    'name' => 'name',
    'scope' => 'one',
);

and in abook_ldap_server.php where the code calls

        $sret = @ldap_search($this->linkid, $this->basedn, $expression,
            array('dn', 'o', 'ou', 'sn', 'givenname', 'cn', 'mail'),
            0, $this->maxrows, $this->timeout);

use ldap_list of scope of 'one' is set.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages squirrelmail depends on:
ii  apache2                 2.0.54-4         next generation, scalable, extenda
ii  apache2-mpm-prefork [ht 2.0.54-4         traditional model for Apache2
ii  libapache2-mod-php4     4:4.3.10-15      server-side, HTML-embedded scripti
ii  perl                    5.8.4-8          Larry Wall's Practical Extraction 
ii  php4                    4:4.3.10-15      server-side, HTML-embedded scripti
ii  squirrelmail-locales    1.4.4-20050308-1 Translations for the SquirrelMail 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to