[OpenAFS] Apache2 and OpenAFS
Andreas Ladanyi
andreas.ladanyi@kit.edu
Thu, 8 Oct 2015 16:43:48 +0200
This is a cryptographically signed message in MIME format.
--------------ms040506000403000102030709
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Hi Harald,
thank you for your details.
We use MIT kerberos in FreeIPA. The kinit doesnt have a --afslog option.
> We run our web server authenticated from a keytab. The keytab contains
>
> # /usr/heimdal/sbin/ktutil --keytab=3D/etc/krb5.keytab.web-daemon list
> Vno Type Principal
> 0 des3-cbc-sha1 web-daemon/scat.pdc.kth.se@NADA.KTH.SE
> 0 aes128-cts-hmac-sha1-96 web-daemon/scat.pdc.kth.se@NADA.KTH.SE
> 0 arcfour-hmac-md5 web-daemon/scat.pdc.kth.se@NADA.KTH.SE
>
> Then the webserver is started with heimdal kinit (which does all the
> pagsh and renew magic) with that keytab:
>
> # ps auxgwww | grep kinit
> root 31751 0.0 0.0 39880 2100 ? S Jul04 0:04 /usr/h=
eimdal/bin/kinit --no-forward --no-renew --keytab=3D/etc/krb5.keytab.web-=
daemon --afslog web-daemon/scat.pdc.kth.se@NADA.KTH.SE /usr/sbin/httpd -D=
NO_DETACH -D DEFAULT_VHOST -D SSL_DEFAULT_VHOST -D INFO -D LANGUAGE -D SS=
L -D CACHE -D MEM_CACHE -D DAV -D STATUS -D AUTH_DIGEST -D PROXY -D USERD=
IR -D REWRITE -k start
>
> The web-daemon/scat.pdc.kth.se@NADA.KTH.SE principal maps to this PTS
> identity (due to historical reasons the "/" is replaced with a "." in
> the OpenAFS pts to pricipal naming mapping, there are folks on this
> list who happen to know exactly why)
>
> $ pts exa web-daemon.scat.pdc.kth.se -c pdc.kth.se
> Name: web-daemon.scat.pdc.kth.se, id: 65531, owner: system:administrato=
rs, creator: haba.admin,
> membership: 4, flags: S----, group quota: 20.
>
> Then all web-daemons.x.y.z are member in this group:
>
> $ pts mem web-daemons -c pdc.kth.se
> Members of web-daemons (id: -32225) are:
> web-daemon.wrasse.pdc.kth.se
> web-daemon.schelly.pdc.kth.se
> web-daemon.scat.pdc.kth.se
>
> Then you give web-daemons the appropriate permissions in the file syste=
m.
>
> Harald.
--------------ms040506000403000102030709
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
D/owggTVMIIDvaADAgECAghQTsb1PRG0ZDANBgkqhkiG9w0BAQsFADBxMQswCQYDVQQGEwJE
RTEcMBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2VjIFRy
dXN0IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290IENBIDIwHhcNMTQw
NzIyMTIwODI2WhcNMTkwNzA5MjM1OTAwWjBaMQswCQYDVQQGEwJERTETMBEGA1UEChMKREZO
LVZlcmVpbjEQMA4GA1UECxMHREZOLVBLSTEkMCIGA1UEAxMbREZOLVZlcmVpbiBQQ0EgR2xv
YmFsIC0gRzAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6ZvDZ4X5Da71jVTD
llA1PWLpbkztlNcAW5UidNQg6zSP1uzAMQQLmYHiphTSUqAoI4SLdIkEXlvg4njBeMsWyyg1
OXstkEXQ7aAAeny/Sg4bAMOG6VwrMRF7DPOCJEOMHDiLamgAmu7cT3ir0sYTm3at7t4m6O8B
r3QPwQmi9mvOvdPNFDBP9eXjpMhim4IaAycwDQJlYE3t0QkjKpY1WCfTdsZxtpAdxO3/NYZ9
bzOz2w/FEcKKg6GUXUFr2NIQ9Uz9ylGs2b3vkoO72uuLFlZWQ8/h1RM9ph8nMM1JVNvJEzSa
cXXFbOqnC5j5IZ0nrz6jOTlIaoytyZn7wxLyvQIDAQABo4IBhjCCAYIwDgYDVR0PA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