[OpenAFS] Samba & aklog

Craig Huckabee huck@spawar.navy.mil
Wed, 06 Aug 2014 11:45:30 -0400


This is a cryptographically signed message in MIME format.

--------------ms090200080708050205040505
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable


   I had a request from a small group locally that needs to access their =

AFS space(s) via a Windows file share - installing the AFS client on=20
these systems is not an option.

   So I started looking into doing this via Samba, using a dedicated=20
server (RHEL6).  I've got normal shares working, using Kerberos=20
authentication to connect (works from OSX, Windows, etc).

   A little research turned up a suggestion of doing something like this =

in the smb.conf for AFS shares:

=2E..
root preexec =3D /usr/bin/aklog -setpag -cell mycell.mil -keytab=20
/usr/afs/etc/rxkad.keytab -principal %u
=2E..

   This almost works but I think I'm running into either PAG issues or=20
some other weirdness.  Testing the connection it appears that sometimes=20
I get tokens, sometimes I don't.  Not sure if I need to force the smbd=20
into a new PAG on startup.

   Anyone else try this before ?


--Craig


--------------ms090200080708050205040505
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIPCTCC
BLAwggOYoAMCAQICAxN/ODANBgkqhkiG9w0BAQUFADBdMQswCQYDVQQGEwJVUzEYMBYGA1UE
ChMPVS5TLiBHb3Zlcm5tZW50MQwwCgYDVQQLEwNEb0QxDDAKBgNVBAsTA1BLSTEYMBYGA1UE
AxMPRE9EIEVNQUlMIENBLTMwMB4XDTEyMDYyODAwMDAwMFoXDTE1MDYyNzIzNTk1OVowdzEL
MAkGA1UEBhMCVVMxGDAWBgNVBAoTD1UuUy4gR292ZXJubWVudDEMMAoGA1UECxMDRG9EMQww
CgYDVQQLEwNQS0kxDDAKBgNVBAsTA1VTTjEkMCIGA1UEAxMbSFVDS0FCRUUuREFSWUwuQy4x
MjQ5MzUzNTYyMIIBIjANBgkq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