0

有沒有人設法爲運行在Windows上的Apache 2.4 HTTP Server編譯mod_spnego 0.2.0?我真的很想使用mod_auth_kerb 5.4,但從我讀過的內容來看,在Windows上編譯幾乎是無望的。爲Apache 2.4.3編譯mod_spnego在Windows上運行的HTTP服務器

我目前在Windows 2008 R2機器上運行Apache HTTP Server 2.4.3。我特林使用Visual Studio 2012來編譯mod_spnego,我認爲我幾乎沒有,但我不斷收到以下錯誤:

mod_spnego.obj : error LNK2001: unresolved external symbol _ap_requires 

顯然,ap_requires()功能不再阿帕奇2.4的支持。

我GOOGLE了這個問題,我可以找到最好的迴應如下:

It needs to register an auth provider. As a simple example, compare the 2.2 and 2.4 versions of the bundled module mod_authz_dbm.c.

說實話,我不知道,以我應該如何進行。任何人都可以將我指向正確的方向嗎?關於mod_auth_kerb的任何想法?

回答

2

我以大幅修改mod_spnego結束,因爲原始版本太不穩定了。它現在可在https://github.com/ibauersachs/mod_spnego,但它仍然使用ap_requires。

根據2.4發行說明,應該用ap_register_auth_provider註冊一個「Require」替換ap_requires。如果你知道一點C,那麼在我的修改版本中實現它應該比原始版本更容易。

+0

對不起,花了這麼長的時間來接受你的答案。做得好! – HydroPowerDeveloper

相關問題