Build Mod_auth_kerb for Apache on Windows
Guillaume Ross <guillaume <at> binaryfactory.ca>
2010-03-30 13:13:44 GMT
Good day everyone,
I am attempting to setup some Windows Apache servers to provide SSO to Active Directory users. It seems the best way to achieve this would be to get mod_auth_kerb working on Apache for Windows.
As binaries are not available, I am attempting to build it, in Cygwin. I'm looking for a bit of help to tackle this, and once I manage to compile it and get it working I'd like to write a small howto as it seems a few people are looking to get this to work.
Here are the issues I stumbled accross but managed to fix:
I've downloaded the sources to krb5 and installed MIT's kerberos for
windows. I've also got the kfw specific sources but the directory
structure seemed to tell me I'd need the krb5 sources more than
anything.
$ ./configure --with-krb5="C:krb5" --with-krb4=no
Everything goes well, until it starts to check for gssapi.
checking gssapi.h usability... no
checking gssapi.h presence... no
checking for gssapi.h... no
checking gssapi/gssapi.h usability... no
checking gssapi/gssapi.h presence... no
checking for gssapi/gssapi.h... no
checking for krb5_init_context in -lkrb5... no
checking for krb5_init_context in -lkrb5... (cached) no
checking for krb5_init_context in -lkrb5... (cached) no
configure: error: No Kerberos enviroment found
The config.log file contains this error:
configure:3862: gcc -c -g -O2 -IC:\krb5/include conftest.c >&5
conftest.c:57:20: gssapi.h: No such file or directory
So the first thing I did was find gssapi.h .. which is located in krb5-1.8\src\include , so I ran the configure command again, but adding \src to the path of KRB5.
$ ./configure --with-krb5="C:\krb5\src" --with-krb4=no
This time the error in the logs is a bit more telling:
configure:3773: result: time.h
configure:3845: checking gssapi.h usability
configure:3862: gcc -c -g -O2 -IC:\source\krb5-1.8\src/include conftest.c >&5
In file included from conftest.c:57:
C:/krb5/src/include/gssapi.h:6:27: gssapi/gssapi.h: No such file or directory
configure:3869: $? = 1
Sure enough, the gssapi.h file in my sources refers to "gssapi/gssapi.h" which was not to be found in this path. However I did find it in my installed KRB5's directory structures, so I copied the gssapi directory from there to my source/include directory so gssapi.h could be found in krb5/src/include/gssapi .
This fixed the first problem:
configure:3923: result: yes
configure:3956: checking for gssapi.h
configure:3965: result: yes
----------------------------------------
Now this is the error I get. Does this mean I should be building krb5 from source too instead of having the MIT's Kerberos for windows package installed in C:\krb5 ?
configure:4222: checking for krb5_init_context in -lkrb5
configure:4257: gcc -o conftest.exe -g -O2 conftest.c -lkrb5 C:\krb5\src/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv >&5
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lkrb5
collect2: ld returned 1 exit status
Thank you!
Guillaume Ross
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
modauthkerb-help mailing list
modauthkerb-help <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/modauthkerb-help