The Courier authentication library will serve our purpose by separating the user authentication from the OS X user administration into a standalone user administration based on a MySQL database. You can find the software and documentation from the Courier authentication library web-site. The version we used is version 0.58.
Compiling and installing is the same procedure as all the previous ones. Extract the source archive in a directory, open a Terminal session, change the directory to the one you extracted the archive in and type in the following commands as a normal user (please note that the configure command will run a long time):
For Intel:
CFLAGS="-arch i386" \ ./configure --with-authmysql \ --without-authpam \ --with-mysql-libs=/usr/local/mysql/lib/mysql \ --with-mysql-includes=/usr/local/mysql/include
For PowerPC
CFLAGS="-arch ppc" \ ./configure --with-authmysql \ --without-authpam \ --with-mysql-libs=/usr/local/mysql/lib/mysql \ --with-mysql-includes=/usr/local/mysql/include
Followed by:
make
Issue the install command when the compilation has finished:
sudo make install
If you are building a fresh installation run the following command to create new configuration files. Do not run it if you are just upgrading to a new version.
sudo make install-configure
August 26th, 2006 at 7:55 pm
Richard,
Just tried compiling this on my Intel machine and it fails with:
Compiling authpam.c
authpam.c:23:31: error: security/pam_appl.h: No such file or directory
Taking a second look at the configure instructions i notice the PPC instructions has –without-authpam \ and the Intel one does not. ??
I assume that it should be in the Intel one as well.
Richard5: Stupid mistake, it’s corrected on the page.
August 26th, 2006 at 8:05 pm
Also..
There is a difference in the paths you specify for the –with-mysql-libs argument. I’m pretty sure one of them must be wrong.
Richard5: Again, same stupid mistake, corrected as well…
November 5th, 2006 at 1:33 pm
obviously this is not my day.
the courier-mta.org website is down :-/
didn’t find any mirrors.
so i expect i’ll get a cup of tea and wait
November 5th, 2006 at 1:36 pm
just found a mirror at:
http://prdownloads.sourceforge.net/courier/courier-authlib-0.58.tar.bz2
April 2nd, 2007 at 5:33 pm
Thanks very much for this guide, it was REALLY helpful.
September 14th, 2007 at 11:00 pm
Everything has went great up to this point.
Please help.
I’m getting this error.
gcc: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
I tried removing the extra -arch flags from the Makefile, but that just produced another error about a file being to “fat”.
I’m at my wits end.
September 17th, 2007 at 7:29 pm
Fixed it!!!
Had to remove the extra arch flags from
mysql_config file. In order to eliminate the error. I replaced them with -arch i386.
Hope this helps someone else.
September 17th, 2007 at 8:16 pm
Thanks for letting us know !
September 17th, 2007 at 8:25 pm
Correction…
It wasn’t that I needed to modify the mysql_config script.
It was that it was using the one under /usr/bin instead of the one under /usr/local/mysql/bin So once I moved the /usr/bin/mysql* to a backed up directory I had to take a few steps back in the process and compile this one again, now knowing what the true issue was.
I just happened on this when I tried to connect to mysql and couldn’t.