[OpenAFS] Re: Samba & aklog

Craig Huckabee huck@spawar.navy.mil
Mon, 11 Aug 2014 14:35:25 -0400


This is a cryptographically signed message in MIME format.

--------------ms010604060904040506010403
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable



On 8/7/14 12:29 AM, Andrew Deason wrote:
> On Wed, 06 Aug 2014 11:45:30 -0400
> Craig Huckabee <huck@spawar.navy.mil> wrote:
>
>>     A little research turned up a suggestion of doing something like t=
his
>> in the smb.conf for AFS shares:
>>
>> ...
>> root preexec =3D /usr/bin/aklog -setpag -cell mycell.mil -keytab
>> /usr/afs/etc/rxkad.keytab -principal %u
>> ...
>
> I haven't used a setup like this myself, but I can try to offer some
> more information.
>
=2E..
> I would first try running 'aklog -setpag' manually to see if it works.
> Ideally, I would run it from a session without a pag, and then acquire
> tokens with -setpag, and see if you gain a pag:
>

This was very helpful - pags appear to be working, and watching the=20
output from the preexec script it shows the process has tokens.  There=20
must be something else in my Samba config keeping things from working,=20
but this has helped my troubleshooting - thanks!

--Craig




--------------ms010604060904040506010403
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
CgYDVQQLEwNQS0kxDDAKBgNVBAsTA1VTTjE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