Bugzilla – Bug 6839
enable PAM user switching in GSI-OpenSSH (for MyProxy-enabled PAM module)
Last modified: 2009-10-01 07:29:29
You need to log in before you can comment on or make changes to this bug.
Hi, We've developed a LinuxPAM module which, in conjunction with a minor patch to GSI-OpenSSH, allows a user to connect using *any* SSH-enabled client as long as the user has previously uploaded a credential to a MyProxy server. The user simply uses the username and password to this credential to gain access. More details on the implementation are available here: http://wiki.ngs.ac.uk/index.php?title=KGSISSHD Feel free to contact me if you need any more information. Kind Regards Kevin Haines
Thanks Kevin. I'll review the patch for inclusion in gsi_openssh_4.7.
Specifically the task is to integrate one of the patches from https://bugzilla.mindrot.org/show_bug.cgi?id=1215 into GSI-OpenSSH for PAM user switching, to allow Kevin's PAM module to switch usernames according to local DN mappings. I've updated the summary to reflect this.
Patches committed to CVS trunk: http://lists.globus.org/pipermail/gsi-openssh-commit/2009-August/000159.html Next steps: * Merge to GPT branch. * Send Kevin a pre-release to test.
Kevin, could you please try installing http://www.ncsa.uiuc.edu/~jbasney/gsi_openssh-4.6-src.tar.gz and let me know if it works with KGSISSHD? If you already have v4.6 installed, you'll need to do 'gpt-build -force' to upgrade. This version incorporates the PAM user switching patch. I plan to release it as v4.7 once you give the OK. Thanks. -Jim
Hi Jim, Thanks, I'll build and test tomorrow or Monday. Cheers Kevin
(In reply to comment #5) > Thanks, I'll build and test tomorrow or Monday. Excellent. Be sure to set "PermitPAMUserChange yes" in $GLOBUS_LOCATION/etc/ssh/sshd_config.
Hi Jim, I had to do a couple of tweaks to get it to compile (see below) but otherwise - it works fine, thanks! Cheers Kevin servconf.c:402 needs a comma on the end of the line. gss-serv.c:556: Add: int ret; Can I also suggest the following change to monitor.c. When PAM changes the username under control of the MyProxy PAM module, the name of the MyProxy credential is visible in a 'ps' listing. This patch is a little rough, but will hide the supplied credential name when PermitPAMUserChange is set to Yes (might it be better to have a dedicated option for this e.g. HidePAMUserChange?). monitor.c:683 #ifdef USE_PAM if (options.permit_pam_user_change) setproctitle("%s [priv]", pwent ? "pam_chgd" : "unknown"); else #endif
Thanks Kevin. I committed the changes to CVS: http://lists.globus.org/pipermail/gsi-openssh-commit/2009-September/000171.html http://lists.globus.org/pipermail/gsi-openssh-commit/2009-September/000172.html http://lists.globus.org/pipermail/gsi-openssh-commit/2009-September/000175.html I'll release v4.7 next week.
GSI-OpenSSH 4.7 released today.
Hi Jim, I've tested the release on RH4, 64 bit - works like a charm ;-) Many thanks Kevin Haines
Excellent. Thanks Kevin for the confirmation.