[Tickets #7957] Unable to send smime encrypted mail unless 'email' attribute is set

bugs at horde.org bugs at horde.org
Fri Feb 6 12:25:15 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7957
------------------------------------------------------------------------------
  Ticket             | 7957
  Created By         | johannes.nilsson at sorch.se
  Summary            | Unable to send smime encrypted mail unless 'email'
                     | attribute is set
  Queue              | IMP
  Version            | 4.3.3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


johannes.nilsson at sorch.se (2009-02-06 07:25) wrote:

I have turba set up with ldap as backend. For email addresses the  
three attributes email, homemail and workmail are available. When  
trying to send smime encrypted mails using imp it seems as only the  
email attribute is 'valid'. If email isn't set sending the mail fails  
with an error about not beeing able to find smimePublicKey. The user  
I'm testing with has his mail set in homemail, and the address is  
found and autocompleted when starting to type in the 'to' field.

The logs below is from right after pressing 'send' with encryption set.

horde.log:

Feb 06 12:47:14 HORDE [debug] [imp] SQL Query by  
DataTree_sql::_exists(): SELECT datatree_id FROM horde_datatree WHERE  
group_uid = ? AND datatree_name = ? AND datatree_parents = ?, array (
   0 => 'horde.perms',
   1 => 'imp',
   2 => '',
) [pid 17311 on line 398 of "/usr/share/horde/lib/Horde/DataTree/sql.php"]
Feb 06 12:47:14 HORDE [debug] [turba] LDAP query by  
Turba_Driver_ldap::_search(): user = myuser, root =  
ou=myuser,ou=AddressBook,dc=domain,dc=com (localhost); filter =  
"(&(note=*other.user at domain.com*))"; attributes = "dn, uid, turbaType,  
turbaMembers, givenname, sn, mozillaNickname, birthDate, anniversary,  
spouseName, jpegPhoto, audio, mozillaHomeStreet, mozillaHomeStreet2,  
mozillaHomeLocalityName, mozillaHomeState, mozillaHomePostalCode,  
mozillaHomeCountryName, street, mozillaWorkStreet2, l, st, postalCode,  
c, note, homePhone, telephoneNumber, otherPhone,  
facsimileTelephoneNumber, pager, title, businessrole,  
businessCategory, o, ou, roomNumber, description, labeledURI,  
freeBusyURI, userCertificate, userSMIMECertificate, category,  
initials, mozillaSecondEmail, mail, primaryPhone,  
otherFacsimileTelephoneNumber, homeFacsimileTelephoneNumber, carPhone,  
mobile, mozillaCustom1, mozillaCustom2, mozillaCustom3,  
mozillaCustom4, mozillaWorkUrl, mozillaHomeUrl"; deref = "0"  ;  
sizelimit = 0 [pid 17311 on line 186 of  
"/usr/share/horde/turba/lib/Driver/ldap.php"]
Feb 06 12:47:14 HORDE [debug] [imp] S/MIME-fel:Post smimePublicKey  
saknas för other.user at domain.com [pid 17311 on line 176 of  
"/usr/share/horde/lib/Horde/Notification.php"]
Feb 06 12:47:14 HORDE [debug] [imp] SQL query by  
Horde_Alarm_sql::_list(): SELECT alarm_id, alarm_uid, alarm_start,  
alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text,  
alarm_snooze, alarm_internal FROM horde_alarms WHERE alarm_dismissed =  
0 AND ((alarm_snooze IS NULL AND alarm_start <= ?) OR alarm_snooze <=  
?) AND (alarm_end IS NULL OR alarm_end >= ?) AND (alarm_uid = ? OR  
alarm_uid = ?) ORDER BY alarm_start, alarm_end [pid 17311 on line 148  
of "/usr/share/horde/lib/Horde/Alarm/sql.php"]
Feb 06 12:47:14 HORDE [debug] [imp] Max memory usage: 11534336 bytes  
[pid 17311 on line 339 of "/usr/share/horde/lib/Horde/Registry.php"]



ldap.log:

Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 fd=34 ACCEPT from  
IP=127.0.0.1:44332 (IP=0.0.0.0:389)
Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 op=0 BIND  
dn="mail=my.user at domain.com,ou=MailAccounts,dc=domain,dc=com" method=128
Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 op=0 BIND  
dn="mail=my.user at domain.com,ou=MailAccounts,dc=domain,dc=com"  
mech=SIMPLE ssf=0
Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 op=0 RESULT tag=97  
err=0 text=
Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 op=1 SRCH  
base="ou=myuser,ou=AddressBook,dc=domain,dc=com" scope=1 deref=0  
filter="(&(note=*other.user at domain.com*))"
Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 op=1 SRCH attr=dn  
uid turbaType turbaMembers givenname sn mozillaNickname birthDate  
anniversary spouseNamejpegPhoto audio mozillaHomeStreet  
mozillaHomeStreet2 mozillaHomeLocalityName mozillaHomeState  
mozillaHomePostalCode mozillaHomeCountryName street mozillaWorStreet2  
l st postalCode c note homePhone telephoneNumber otherPhone  
facsimileTelephoneNumber pager title businessrole businessCategory o  
ou roomNumber descrption labeledURI freeBusyURI userCertificate  
userSMIMECertificate category initials mozillaSecondEmail mail  
primaryPhone otherFacsimileTelephoneNumber homeFcsimileTelephoneNumber  
carPhone mobile mozillaCustom1 mozillaCustom2 mozillaCustom3  
mozillaCustom4 mozillaWorkUrl mozillaHomeUrl
Feb  6 12:47:14 mettemauge slapd[4568]: <= bdb_substring_candidates:  
(note) not indexed
Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 op=1 SEARCH RESULT  
tag=101 err=0 nentries=0 text=
Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 op=2 UNBIND
Feb  6 12:47:14 mettemauge slapd[4568]: conn=3930 fd=34 closed



 From turba/sources.php

'map' => array(
<...>
         'email' => 'note',
<...>
         'smimePublicKey' => 'userSMIMECertificate',
<...>
         'workEmail' => 'mozillaSecondEmail',
         'homeEmail' => 'mail',


[root at mettemauge johnilx]# rpm -qa "horde*"
horde-ingo-1.2.1-1mdv2008.1
horde-imp-4.3.3-1mdv2008.1
horde-kronolith-2.3-1mdv2008.1
horde-3.3.3-1mdv2008.1
horde-turba-2.3.1-1mdv2008.1






More information about the bugs mailing list