
kadmin.localを利用して作成を行います。kadmin.localツールはroot/sudo権限で実行する必要があります。$ sudo kadmin.local
Authenticating as principal root/admin@GOOSEFS.COM with password.kadmin.local:
kadmin.localはこのインタラクティブ実行環境のコマンドプロンプトを表します。kadmin.localにServerとClientのID認証関連情報を作成します。kadmin.local: addprinc -randkey goosefs/172.16.0.1@GOOSEFS.COMkadmin.local: addprinc -randkey client/172.16.0.4@GOOSEFS.COM
-randkeyオプションを使用する理由は、GooseFSがServerログインとClientログインの両方でkeytabファイル認証を使用し、平文のパスワードは使用しないためです。ID情報をpasswordログインに用いる必要がある場合は、このオプションを削除することができます。keytabファイルを生成してエクスポートします。kadmin.local: xst -k goosefs_172_16_0_1.keytab goosefs/172.16.0.1@GOOSEFS.COMkadmin.local: xst -k client_172_16_0_4.keytab client/172.16.0.4@GOOSEFS.COM
keytabファイルを対応するマシン上に配信します。ここで推奨するパスは${GOOSEFS_HOME}/conf/です。$ scp goosefs_172_16_0_1.keytab <username>@172.16.0.1:${GOOSEFS_HOME}/conf/$ scp goosefs_172_16_0_1.keytab <username>@172.16.0.2:${GOOSEFS_HOME}/conf/$ scp goosefs_172_16_0_1.keytab <username>@172.16.0.3:${GOOSEFS_HOME}/conf/$ scp client_172_16_0_4.keytab <username>@172.16.0.4:${HOME}/.goosefs/
$ chown <GooseFS_USER>:<GOOSEFS_USERGROUP> goosefs_172_16_0_1.keytab$ # Unixのアクセスパーミッションビットを同時に変更します$ chmod 0440 goosefs_172_16_0_1.keytab
$ chown <client_user>:<client_usergroup> client_172_16_0_4.keytab$ # Unixのアクセスパーミッションビットを同時に変更します$ chmod 0440 client_172_16_0_4.keytab
# Security properties# Kerberos propertiesgoosefs.security.authorization.permission.enabled=truegoosefs.security.authentication.type=KERBEROSgoosefs.security.kerberos.unified.instance.name=172.16.0.1goosefs.security.kerberos.server.principal=goosefs/172.16.0.1@GOOSEFS.COMgoosefs.security.kerberos.server.keytab.file=${GOOSEFS_HOME}/conf/goosefs_172_16_0_1.keytab
# Security properties# Kerberos propertiesgoosefs.security.authorization.permission.enabled=truegoosefs.security.authentication.type=KERBEROSgoosefs.security.kerberos.unified.instance.name=172.16.0.1goosefs.security.kerberos.server.principal=goosefs/172.16.0.1@GOOSEFS.COMgoosefs.security.kerberos.client.principal=client/172.16.0.4@GOOSEFS.COMgoosefs.security.kerberos.client.keytab.file=${GOOSEFS_HOME}/conf/client_172_16_0_4.keytab
フィードバック