mod_auth_openidcをインストールする

mod_auth_openidcをインストールする

Azur Active Directoryをつかって認証するモジュールmod_auth_openidcをApacheへインストール。

mod_auth_openidcをダウンロードする

Releases · zmartzone/mod_auth_openidc · GitHub
ここから最新をダウンロード。インストールする先のapacheがソースからコンパイルしたものだから、モジュールもソースからビルドする必要があります。
パッケージなら楽ちんなのに。

必要な物件をインストール

以下の物件が上記モジュールの依存性で必要。

cjose

これはパッケージから入れてOK。mod_auth_openidc 2.4.0のところのAssetsにリンクがあります。
ここからダウンロード。

pkgconfig(jansson)

これなんだろ。上記cjoseをrpmでインストールしようとすると、これがないっていわれる。
このあたりから jansson-devel-2.10-1.el7.x86_64.rpm あたりをダウンロードしてインストール。

hiredis

これはyumでインストールできる。

# yum install hiredis
autoconf

これもyumでインストールできる。

# yum install autoconf
automake

これもyumで。

# yum install automake
さっきダウンロードしたmod_auth_openidcを展開する
# tar -zxcvf mod_auth_openidc-2.4.9.4.tar.gz
autogen.shを実行
# cd mod_auth_openidc-2.4.9.4
# ./autogen.sh
apr-util-develをインストール
# yum install apr-util-devel 
configureを実行
# cd mod_auth_openidc-2.4.9.4  
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs 
# make
# make install