[imp] Autoexpand not working for additinal field of LDAP

ANANT S ATHAVALE asa at isac.gov.in
Tue Nov 1 10:50:18 UTC 2011


To further add to this, I added var_dump($fields) in lib/IMP.php and  
got the following output during compose.

array(3) { ["aNSXRVC-ZUxOnQYUwauXA5A"]=> array(50) { [0]=> string(9)  
"firstname" [1]=> string(8) "lastname" [2]=> string(11) "middlenames"  
[3]=> string(10) "namePrefix" [4]=> string(10) "nameSuffix" [5]=>  
string(4) "name" [6]=> string(5) "alias" [7]=> string(8) "birthday"  
[8]=> string(11) "anniversary" [9]=> string(6) "spouse" [10]=>  
string(5) "photo" [11]=> string(9) "phototype" [12]=> string(10)  
"homeStreet" [13]=> string(9) "homePOBox" [14]=> string(8) "homeCity"  
[15]=> string(12) "homeProvince" [16]=> string(14) "homePostalCode"  
[17]=> string(11) "homeCountry" [18]=> string(11) "homeAddress" [19]=>  
string(10) "workStreet" [20]=> string(9) "workPOBox" [21]=> string(8)  
"workCity" [22]=> string(12) "workProvince" [23]=> string(14)  
"workPostalCode" [24]=> string(11) "workCountry" [25]=> string(11)  
"workAddress" [26]=> string(10) "department" [27]=> string(8)  
"timezone" [28]=> string(5) "email" [29]=> string(9) "homePhone"  
[30]=> string(7) "homeFax" [31]=> string(9) "workPhone" [32]=>  
string(9) "cellPhone" [33]=> string(11) "assistPhone" [34]=> string(3)  
"fax" [35]=> string(5) "pager" [36]=> string(5) "title" [37]=>  
string(4) "role" [38]=> string(7) "company" [39]=> string(4) "logo"  
[40]=> string(8) "logotype" [41]=> string(8) "category" [42]=>  
string(5) "notes" [43]=> string(7) "website" [44]=> string(11)  
"freebusyUrl" [45]=> string(12) "pgpPublicKey" [46]=> string(14)  
"smimePublicKey" [47]=> string(9) "imaddress" [48]=> string(10)  
"imaddress2" [49]=> string(10) "imaddress3" } ["localldap"]=> array(3)  
{ [0]=> string(4) "name" [1]=> string(5) "email" [2]=> string(11)  
"staffnumber" } ["favourites"]=> array(2) { [0]=> string(4) "name"  
[1]=> string(5) "email" } }

Here it clearly shows, it is also using staffnumber attribute.  But,  
it still does not expand to email id.

----- Message from asa at isac.gov.in ---------
     Date: Tue, 01 Nov 2011 13:24:18 +0530
     From: ANANT S ATHAVALE <asa at isac.gov.in>
  Subject: Re: [imp] Autoexpand not working for additinal field of LDAP
       To: imp at lists.horde.org


> Dear List,
>
> I modified prefs.local.php to
>
> $_prefs['search_sources']['locked'] = true;
> $_prefs['search_sources']['hook'] = true;
> $_prefs['search_fields']['value'] = '';
> $_prefs['search_fields']['locked'] = true;
> $_prefs['search_fields']['hook'] = true;
> $_prefs['add_source']['locked'] = true;
> $_prefs['add_source']['hook'] = true;
>
> as per discussion in mailing list.  Still, I find the same problem.  
> Autoexapansion works with Name and Email, but not for staffnumber  
> which is also one of the attributes in LDAP.
>
> Regards,
> ANANT.
>
>
> ----- Message from asa at isac.gov.in ---------
>     Date: Mon, 31 Oct 2011 18:35:03 +0530
>     From: ANANT S ATHAVALE <asa at isac.gov.in>
>  Subject: [imp] Autoexpand not working for additinal field of LDAP
>       To: horde at lists.horde.org
>       Cc: imp at lists.horde.org
>
>
>> Dear List,
>>
>> I am testing Horde Groupware Webmail Edition 4.0.3.
>>
>> imp/config/prefs.local.php
>>
>> $_prefs['search_sources']['value'] = json_encode(array('localsql',  
>> 'localldap','favourites'));
>> $_prefs['search_sources']['locked'] = true;
>> $_prefs['search_fields']['locked'] = true;
>> $_prefs['add_source']['value'] = 'localsql';
>> $_prefs['add_source']['locked'] = true;
>> $_prefs['search_fields']['value'] =  json_encode(array(
>>       'localsql' => array('name','email'),
>>       'localldap' => array('name','email','staffnumber'),
>>       'favourites' => array('name','email')
>> ));
>>
>>
>> and
>>
>> turba/config/backends.local.php
>>
>> $cfgSources['localldap'] = array(
>>    // Disabled by default
>>    'disabled' => false,
>>    'title' => _("LDAP Directory"),
>>    'type' => 'ldap',
>>    'params' => array(
>>        'server' => 'localhost',
>>        'port' => 389,
>>        'tls' => false,
>>        'root' => 'dc=xxx,dc=xxxx',
>>        'bind_dn' => 'cn=Manager,dc=xxx',
>>        'bind_password' => 'xxxxx',
>>        'sizelimit' => 10,
>>        'dn' => array('cn'),
>>        'objectclass' => array('employee'),
>>        'scope' => 'sub',
>>        'charset' => 'utf-8',
>>        'checkrequired' => false,
>>        'checkrequired_string' => ' ',
>>        'checksyntax' => false,
>>        'version' => 3,
>>    ),
>>    'map' => array(
>>        '__key' => 'dn',
>>        '__uid' => 'uid',
>>        'name' => 'cn',
>>        'email' => 'mail',
>>        'staffnumber' => 'staffnumber',
>>    ),
>>    'search' => array(
>>        'name',
>>        'email',
>>        'staffnumber',
>>    ),
>>    'strict' => array(
>>        'dn',
>>    ),
>>    'approximate' => array(
>>        'cn',
>>    ),
>>    'export' => false,
>>    'browse' => false,
>> );
>>
>>
>> NOTE:  I am able to search based on staffnumber in Turba and also  
>> in IMP (if I click on Address book).  But, autoexpand does not work  
>> with staffnumber.  This was working and working in older HGWE.
>>
>> Regards,
>>
>> Anant Athavale.
>>
>> ------------------------------------------------------------------------------
>> Confidentiality Notice: This e-mail message, including any  
>> attachments, is for
>> the sole use of the intended recipient(s) and may contain confidential and
>> privileged information. Any unauthorized review, use, disclosure or
>> distribution is prohibited. If you are not the intended recipient, please
>> contact the sender by reply e-mail and destroy all copies of the original
>> message.
>> ------------------------------------------------------------------------------
>>
>> -- 
>> IMP mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>>
>
>
> ----- End message from asa at isac.gov.in -----
>
>
>
> Regards,
>
> Anant Athavale.
>
> ------------------------------------------------------------------------------
> Confidentiality Notice: This e-mail message, including any  
> attachments, is for
> the sole use of the intended recipient(s) and may contain confidential and
> privileged information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of the original
> message.
> ------------------------------------------------------------------------------
>
> -- 
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>


----- End message from asa at isac.gov.in -----



Regards,

Anant Athavale.

------------------------------------------------------------------------------
Confidentiality Notice: This e-mail message, including any attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
------------------------------------------------------------------------------



More information about the imp mailing list