From: websrvr (no email)
Date: Fri May 20 2005 - 21:53:18 EDT
On May 20, 2005, at 08:14 PM, wrote:
> Hi all,
>
> I finished implementing SASL for IMAP and POP3 for Thunderbird and
> it seems to work great (thanks to the help of Derek, Ken &
> Morten). I'm not sure if the Mozilla people are going to let me
> check in the fix as it is because it would require Mozilla builders
> to download and install Cyrus in order to pick up the functionality
> I'm delivering. So it looks like I get to port my Cyrus-using code
> over to an "nsIAuthModule", where it will pick up Cyrus if it
> exists or whatever is native on Windows if Cyrus doesn't exist.
> There's little documentation or working examples, so that's a job
> I'm not looking forward to. I know these enhancements to TBird and
> Mozilla will be very appreciated by lots of people and groups, so
> if anyone wants me to keep them in the loop or provide code or
> binaries, just email me. :-)
I'm sure there has to be an easier method to get your configuration
implemented.
Providing a hook in Tbird or Mozilla in the configuration stage would
be the best way for any to add the functionality.
Providing your source for the end user to build is probably a better
idea than providing binaries because of variation in OS, platforms
and system dependancies.
> Anyways... on to the problem at hand:
>
> I just built Cyrus on a second Macintosh to use while I send in my
> primary development box for repairs.
>
> I ended up not being able to do the final "ln -s /usr/local/lib/
> sasl2 /usr/lib/sasl2" command because there is already a directory
> with files in it at /usr/lib/sasl2. These appear to be libraries
> that ship with the system.
This tree is installed in all Mac OSX Server installations, they wont
be compatible, I've been this route already.
>
> The contents of the /usr/lib/sasl2 folder under OS 10.3.9 look like
> this: <http://rsug.itd.umich.edu/~myke/pantherusrlibsasl2.html>
> (missing libgssapi, most obviously)
>
> The contents of the /usr/lib/sasl2 folder under OS 10.4.1 look like
> this: <http://rsug.itd.umich.edu/~myke/tigerusrlibsasl2.html> (this
> ships with libgassapi, but not libsasldb that Cyrus comes with)
>
> The contents of my built Cyrus folder on 10.4.1 look like this:
> <http://rsug.itd.umich.edu/~myke/usrlocallibsasl2.html>
>
> Is it safe for me to copy the contents of /usr/local/lib/sasl2
> into /usr/lib/sasl2?
mv /usr/lib/sasl2 /usr/lib/sasl2.apple.orig && ln -s /usr/local/lib/
sasl2 /usr/lib/sasl2
> Or what should Mac developers be doing instead? the notes in doc/
> install.html and doc/macosx.html provide no obvious guidance on
> this. Or did I miss something somewhere else in documentation &
> archives?
You may wish to know that I have fixed libsql.so (libsasldb.so is
almost fixed, small bug to work out but it is working at 95%) in 10.4
so authentication against mysql is now a real working option without
losing any Apple functionality.
This means you don't need to build and install an additional copy of
cyrus-sasl to get the functionality you are trying to achieve.
Unfortunately you will find that you cannot mix the modules unless
you build both version of cyrus-sasl yourself on the same machine
with the same dependancies which have probably changed considerably
since you started installing software.
What's nice is that you can build the newer cyrus-sasl
(passwordserver_sasl-59.2) and use it on a 10.3.x (I've already done
this and it works well) setup and it will continue to function as if
nothing has changed.
If you configure things properly, you can still receive e-mail for
local users using the Apple authentication methods and use other
methods/modules to authenticate virtual users/domains (users who
don't have a local account).
All of this can be done without installing a lot of additional
software by utilizing what is already installed without giving up any
Apple functionality.
I'm still toying around with configurations in an effort to find the
best possible configuration that works without giving up anything
Apple provided but to date, I haven't added any additional software
to achieve this task, just some configuration files and rebuilding of
postfix with mysql support, fixing cyrus-sasl
(passwordserver_sasl-59.2) to get authentication against mysql stored
data.
> thanks,
>
> michael
-- Dale
examine your output from postconf -m against this one, this is
Apple's postfix v2.1.5 (postfix-144).
dellc:/Users/websrvr root# postconf -m
static
sdbm
cidr
pcre
regexp
environ
mysql
proxy
ldap
btree
netinfo
unix
hash
dellc:/Users/websrvr root#
Heres a view for you and I think you should look closely at it.
dellc:/Users/websrvr root# uname -a
Darwin dellc.local 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26
14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC Power Macintosh
powerpc
dellc:/Users/websrvr root# ls -lsa /usr/lib/sasl2
total 6736
0 drwxr-xr-x 45 root wheel 1530 May 18 21:23 .
0 drwxr-xr-x 343 root wheel 11662 May 20 06:21 ..
8 -rw-r--r-- 1 root wheel 631 May 11 17:06 apop.la
40 -r-xr-xr-x 1 root wheel 17496 May 11 17:06 apop.so
8 -rwxr-xr-x 1 root wheel 629 May 11 17:06 dhx.la
1368 -r-xr-xr-x 1 root wheel 699612 May 11 17:06 dhx.so
8 -rw-r--r-- 1 root wheel 653 May 11 17:06
digestmd5WebDAV.la
88 -r-xr-xr-x 1 root wheel 43132 May 11 17:06
digestmd5WebDAV.so
0 drwxr-xr-x 8 root wheel 272 May 11 18:07 disabled
40 -r-xr-xr-x 1 root wheel 17660 May 11 17:08
libanonymous.2.so
8 -rw-r--r-- 1 root wheel 694 May 11 17:09
libanonymous.la
40 -r-xr-xr-x 1 root wheel 17740 May 11 17:08
libcrammd5.2.so
8 -rw-r--r-- 1 root wheel 682 May 11 17:09 libcrammd5.la
96 -r-xr-xr-x 1 root wheel 47228 May 11 17:08
libdigestmd5.2.so
8 -rw-r--r-- 1 root wheel 703 May 11 17:09
libdigestmd5.la
48 -r-xr-xr-x 1 root wheel 22688 May 11 17:01
libgssapiv2.2.0.18.so
8 lrwxr-xr-x 1 root wheel 21 May 11 18:07
libgssapiv2.2.so -> libgssapiv2.2.0.18.so
8 -rw-r--r-- 1 root wheel 739 May 11 17:01
libgssapiv2.la
8 -rw-r--r-- 1 root wheel 737 May 11 17:01
libkerberos4.la
48 -r-xr-xr-x 1 root wheel 22504 May 11 17:01
libkerberos4.2.so
8 -rw-r--r-- 1 root wheel 628 May 11 17:09 liblogin.la
8 -rw-r--r-- 1 root wheel 637 May 11 17:09 libntlm.la
64 -r-xr-xr-x 1 root wheel 30816 May 11 17:09 libntlm.so
136 -r-xr-xr-x 1 root wheel 67668 May 11 17:09 libotp.2.so
8 -rw-r--r-- 1 root wheel 667 May 11 17:09 libotp.la
40 -r-xr-xr-x 1 root wheel 17604 May 11 17:09 libplain.2.so
8 -rw-r--r-- 1 root wheel 670 May 11 17:09 libplain.la
8 -rw-r--r-- 1 root wheel 550 May 11 17:09 libsql.la
2016 -rwxr-xr-x 1 root websrvr 1031232 May 11 17:09 libsql.so
40 -r-xr-xr-x 1 root wheel 17612 May 11 17:08 login.so
8 -rwxr-xr-x 1 root wheel 639 May 11 17:06 mschapv2.la
48 -r-xr-xr-x 1 root wheel 22792 May 11 17:06 mschapv2.so
0 drwxr-xr-x 6 root wheel 204 May 11 18:07 openldap
8 -rwxr-xr-x 1 root wheel 641 Mar 25 20:21 pwauxprop.la
88 -r-xr-xr-x 1 root wheel 43888 Mar 25 20:21 pwauxprop.so
8 -rwxr-xr-x 1 root wheel 651 May 11 17:06
shadow_auxprop.la
40 -r-xr-xr-x 1 root wheel 18580 May 11 17:06
shadow_auxprop.so
8 -rwxr-xr-x 1 root wheel 635 May 11 17:06 smb_lm.la
48 -r-xr-xr-x 1 root wheel 22316 May 11 17:06 smb_lm.so
8 -rwxr-xr-x 1 root wheel 635 May 11 17:06 smb_nt.la
48 -r-xr-xr-x 1 root wheel 22316 May 11 17:06 smb_nt.so
8 -rwxr-xr-x 1 root wheel 568 May 11 17:06 smb_ntlmv2.la
48 -r-xr-xr-x 1 root wheel 22616 May 11 17:06 smb_ntlmv2.so
8 -rw-r--r-- 1 root wheel 300 May 16 19:57 smtpd.conf
48 -r-xr-xr-x 1 root wheel 21960 May 11 17:06
twowayrandom.so
dellc:/Users/websrvr root#
macftphttp:/Users/dale root# uname -a
Darwin macftphttp.local 7.7.0 Darwin Kernel Version 7.7.0: Sun Nov 7
16:06:51 PST 2004; root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC Power
Macintosh powerpc
macftphttp:/Users/dale root# ls -lsa /usr/lib/sasl2
total 6634
0 drwxr-xr-x 45 root wheel 1530 May 10 07:10 .
0 drwxr-xr-x 340 root wheel 11560 May 19 04:28 ..
8 -rw-r--r-- 1 root wheel 631 May 14 10:06 apop.la
40 -r-xr-xr-x 1 root wheel 17496 May 14 10:06 apop.so
8 -rwxr-xr-x 1 root wheel 629 May 14 10:06 dhx.la
1368 -r-xr-xr-x 1 root wheel 699612 May 14 10:06 dhx.so
8 -rw-r--r-- 1 root wheel 653 May 14 10:06
digestmd5WebDAV.la
88 -r-xr-xr-x 1 root wheel 43132 May 14 10:06
digestmd5WebDAV.so
0 drwxr-xr-x 5 root wheel 170 24 May 14 10:06 disabled
40 -r-xr-xr-x 1 root wheel 17660 May 14 10:08
libanonymous.2.so
8 -rw-r--r-- 1 root wheel 694 May 14 10:09
libanonymous.la
40 -r-xr-xr-x 1 root wheel 17740 May 14 10:08
libcrammd5.2.so
8 -rw-r--r-- 1 root wheel 682 May 14 10:09 libcrammd5.la
96 -r-xr-xr-x 1 root wheel 47228 May 14 10:08
libdigestmd5.2.so
8 -rw-r--r-- 1 root wheel 703 May 14 10:09
libdigestmd5.la
48 -r-xr-xr-x 1 root wheel 22688 May 14 10:10
libgssapiv2.2.0.18.so
8 lrwxr-xr-x 1 root wheel 21 May 14 18:10
libgssapiv2.2.so -> libgssapiv2.2.0.18.so
8 -rw-r--r-- 1 root wheel 739 May 14 10:10
libgssapiv2.la
8 -rw-r--r-- 1 root wheel 737 May 14 10:10
libkerberos4.la
48 -r-xr-xr-x 1 root wheel 22504 May 14 10:10
libkerberos4.2.so
8 -rw-r--r-- 1 root wheel 628 May 14 10:09 liblogin.la
8 -rw-r--r-- 1 root wheel 637 May 14 10:09 libntlm.la
64 -r-xr-xr-x 1 root wheel 30816 May 14 10:09 libntlm.so
136 -r-xr-xr-x 1 root wheel 67668 May 14 10:09 libotp.2.so
8 -rw-r--r-- 1 root wheel 667 May 14 10:09 libotp.la
40 -r-xr-xr-x 1 root wheel 17604 May 14 10:09 libplain.2.so
8 -rw-r--r-- 1 root wheel 670 May 14 10:09 libplain.la
8 -rw-r--r-- 1 root wheel 550 May 14 10:09 libsql.la
2016 -rwxr-xr-x 1 root websrvr 1031232 May 14 10:09 libsql.so
40 -r-xr-xr-x 1 root wheel 17612 May 14 10:08 login.so
8 -rwxr-xr-x 1 root wheel 639 May 14 10:06 mschapv2.la
48 -r-xr-xr-x 1 root wheel 22792 May 14 10:06 mschapv2.so
0 drwxr-xr-x 6 root wheel 204 May 14 10:07 openldap
8 -rwxr-xr-x 1 root wheel 641 Mar 25 20:21 pwauxprop.la
88 -r-xr-xr-x 1 root wheel 43888 Mar 25 20:21 pwauxprop.so
8 -rwxr-xr-x 1 root wheel 651 May 14 10:06
shadow_auxprop.la
40 -r-xr-xr-x 1 root wheel 18580 May 14 10:06
shadow_auxprop.so
8 -rwxr-xr-x 1 root wheel 635 May 14 10:06 smb_lm.la
48 -r-xr-xr-x 1 root wheel 22316 May 14 10:06 smb_lm.so
8 -rwxr-xr-x 1 root wheel 635 May 14 10:06 smb_nt.la
48 -r-xr-xr-x 1 root wheel 22316 May 14 10:06 smb_nt.so
8 -rwxr-xr-x 1 root wheel 568 May 14 10:06 smb_ntlmv2.la
48 -r-xr-xr-x 1 root wheel 22616 May 14 10:06 smb_ntlmv2.so
8 -rw-r--r-- 1 root wheel 294 May 14 10:28 smtpd.conf
8 -rwxr-xr-x 1 root wheel 647 May 14 10:06
twowayrandom.la
48 -r-xr-xr-x 1 root wheel 21960 May 14 10:06
twowayrandom.so
macftphttp:/Users/dale root#
|
|
|