Created attachment 2076 [details] Patch against CVS implementing the above. Gives GSSAPI-MIC the same options capability currently provided for public key logins by the AuthorizedKeysFile. Uses krb5_principal_match() to support widcard matches. Uses percent_expand() to expand tokens for: %c credential USER[/INSTANCE]@REALM %h homedir /home/user %u username user %n cred name USER %i cred instance INSTANCE %r cred realm REALM My intended application: # cat ~svn/.ssh/authorized_credentials command="/usr/bin/svnserve -t -r /var/svn/ --tunnel-user=%n" */svn@%r # cat ~git/.ssh/authorized_credentials command="gitosis-serve %c" */%r
Created attachment 2562 [details] Patch against GIT implementing the above.