Print

Print


All,

I had the requirement here at Diamond for the ability to simply provide 'username' instead of the full 'username@realm' to pam_gss as part of the console login, to allow our local users to simply continue as they have before. 

Luke Howard, the author of pam_gss, suggested the following neat trick (although I bet everyone who uses Kerberos probably already knew this):

- Edit /etc/krb5.conf
- In it add the following:

[appdefaults]
eap_gss = { default_realm = <your default realm, e.g diamond.ac.uk> }

- Save the file
- Try to log in with a username sans realm. 

It should authenticate on your RADIUS server with the complete 'username@realm' name, where 'realm' is the default_realm specified. 

For those wishing to implement Moonshotted console access, this will probably be even more transparent to the users, although this does have the after effect that short-circuiting pam_gss to authenticate locally won't work anymore. You win some, you lose some. :-)

Stefan Paetow
Software Engineer
+44 1235 778812
Diamond Light Source Ltd.
Diamond House, Harwell Science and Innovation Campus
Didcot, Oxfordshire, OX11 0DE



-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom