Bug 34059 - libsasl failes to initialize if lookup of own hostname failes
libsasl failes to initialize if lookup of own hostname failes
Status: CLOSED WORKSFORME
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal
: UCC 2.0
Assigned To: Felix Botner
Moritz Muehlenhoff
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-05 15:19 CET by Janis Meybohm
Modified: 2014-06-12 09:19 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2014-02-05 15:19:37 CET
On UCC clients with dynamic IP a entry for the local hostname is missing in /etc/hosts. This leads to problems when initializing SASL:

---
# imtest -s -a user@domain.de mail.domain.de
failure: SASL initialization
---

Kontact/KMail gives errors like "SASL(0): successful result:" when sending Mails.

Some Debian/KDE Bugs i found on this:
<https://bugs.kde.org/show_bug.cgi?id=289207>
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631127>
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636534>


As workaround, the "debian style" entry for the local machine seems to work fine:
---
eval "$(ucr shell)"
ucr set hosts/static/127.0.1.1="${hostname}.${domainname} ${hostname}"
---
Comment 1 Moritz Muehlenhoff univentionstaff 2014-02-06 09:01:45 CET
Check status with 2.0
Comment 2 Felix Botner univentionstaff 2014-04-25 10:59:03 CEST
Works for me on UCC 2.0:

# hostname is not in /etc/hosts
-> more /etc/hosts
127.0.0.1 localhost
::1       localhost ip6-localhost ip6-loopback
fe00::0   ip6-localnet
ff00::0   ip6-mcastprefix
ff02::1   ip6-allnodes
ff02::2   ip6-allrouters

# system can't resolve his own hostname
-> ping $(hostname)
ping: unknown host coach3

# imtest works
-> imtest -s -w univention -a test1@perf.test pmaster.perf.test
verify error:num=20:unable to get local issuer certificate
verify error:num=27:certificate not trusted
verify error:num=21:unable to verify the first certificate
TLS connection established: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=PLAIN SASL-IR] pmaster Cyrus IMAP v2.4.9-Debian-2.4.9-1.27.201308091604 server ready
C: A01 AUTHENTICATE PLAIN AHRlc3QxQHBlcmYudGVzdAB1bml2ZW50aW9u
S: A01 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE IDLE] Success (tls protection)
Authenticated.
Security strength factor: 256
. list "" "*"
* LIST (\HasChildren) "/" INBOX
* LIST (\HasNoChildren) "/" INBOX/Ham
* LIST (\HasNoChildren) "/" INBOX/Spam
. OK Completed (0.000 secs 4 calls)
. logout
* BYE LOGOUT received
. OK Completed
Connection closed.
Comment 3 Moritz Muehlenhoff univentionstaff 2014-04-28 09:42:53 CEST
Confirmed, the original bug from UCC 1.0 / Ubuntu 12.04 is no longer reproducible.
Comment 4 Moritz Muehlenhoff univentionstaff 2014-06-12 09:19:48 CEST
UCC 2.0 has been released:
 http://docs.univention.de/release-notes-ucc-2.0.html

If this error occurs again, please use "Clone This Bug".