This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kmail Authorization Failed against Exchange

Tags: None
(comma "," separated)
steve-o
Registered Member
Posts
12
Karma
0
Hi all.

Installed kde 4.2/Fedora 10 on my desktop today. Everything is working great except for kmail. The company I work for uses Exchange Server. I convinced the admin to enable IMAP, but I get the following error when I try to connect:

Authorization failed, Unable to authenticate via NTLM.
The server server.mycompany.com replied:
SASL(-4): no mechanism available: No worthy mechs found authentication not supported


output of 'rpm -qa | grep sasl' is

cyrus-sasl-md5-2.1.22-19.fc10.x86_64
cyrus-sasl-2.1.22-19.fc10.x86_64
libgsasl-0.2.29-1.fc10.x86_64
cyrus-sasl-plain-2.1.22-19.fc10.x86_64
cyrus-sasl-devel-2.1.22-19.fc10.x86_64
cyrus-sasl-lib-2.1.22-19.fc10.x86_64


Also of note is that evolution works fine.

Any ideas would be greatly appreciated.


Thanks in advance!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You may need to try other methods. KMail is usually capable of auto diagnosing what the server supports. You may also need to install Samba for NTLM support, but I'm not sure...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
coques
Registered Member
Posts
6
Karma
0
bcooksley wrote:You may need to try other methods. KMail is usually capable of auto diagnosing what the server supports. You may also need to install Samba for NTLM support, but I'm not sure...



Hi,
I was facing the same problem and found this topic here.
What I needed to do:

first, check whether you have anything NTLM related in /usr/lib/sasl2
if not you have to either find an appropriate sasl package for your distribution or compile NTLM plugin from sources. I had to compile it.

I noticed, by default it will not generate NTLM stuff, I had to enable it explicitly. The 2nd problem, I was not able to compile "digest" plugin so I disabled it (--disable-digest) as i don't need it and it's already in sasl2 dir.

You can download sources here: http://asg.web.cmu.edu/sasl/sasl-library.html

unpack tar
./configure --enable-ntlm
make
(as root) make install

All libs are now in /usr/local/lib/sasl2, you can copy ntlm to /usr/lib/sasl2:

cp /usr/local/lib/sasl2/ntlm* /usr/lib/sasl2


hope it helps
regards
steve-o
Registered Member
Posts
12
Karma
0
coques wrote:
bcooksley wrote:You may need to try other methods. KMail is usually capable of auto diagnosing what the server supports. You may also need to install Samba for NTLM support, but I'm not sure...



Hi,
I was facing the same problem and found this topic here.
What I needed to do:

first, check whether you have anything NTLM related in /usr/lib/sasl2
if not you have to either find an appropriate sasl package for your distribution or compile NTLM plugin from sources. I had to compile it.

I noticed, by default it will not generate NTLM stuff, I had to enable it explicitly. The 2nd problem, I was not able to compile "digest" plugin so I disabled it (--disable-digest) as i don't need it and it's already in sasl2 dir.

You can download sources here: http://asg.web.cmu.edu/sasl/sasl-library.html

unpack tar
./configure --enable-ntlm
make
(as root) make install

All libs are now in /usr/local/lib/sasl2, you can copy ntlm to /usr/lib/sasl2:

cp /usr/local/lib/sasl2/ntlm* /usr/lib/sasl2


hope it helps
regards


!! SOLVED !!

That worked perfectly. Thank you very much.

I can't be the only one trying to get their kmail to integrate with Windoze exchange servers. It might be a good idea to get ntlm into the mainline distro?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]