
Andras.Horvath at cern
Sep 18, 2009, 5:47 AM
Post #4 of 4
(215 views)
Permalink
|
On Thu, Sep 17, 2009 at 03:03:04PM +0200, Andras.Horvath[at]cern.ch wrote: > > Note: authentication info has to be in username[at]REALM.DOMAIN format > instead of just 'username' for krb5 to work. This prevents users from > falling back to password authentication if they don't have a token (PAM > will come back with 'username' only). :-/ Perhaps a default realm could > be supplied somehow? I'm no gssapi expert :-/ Ahm, well, attached is a hack that, if logging in with a given username fails, retries login with any '@REALM' parts stripped off. (The whole patch only makes sense together with Nate's GSSAPI patch.) This serves me right for Kerberos and should be backwards compatible unless you use both 'bozouser' and 'bozouser[at]bozo.com' as usernames and they're two different people. Disclaimer: I'm not an experienced C programmer -- please feel free to criticize and/or fix. Andras
|