tkopecek / koji

Forked from koji 7 years ago
Clone

4b6c920 Add a `ctx` kwarg to ClientSession.krb_login

Authored and Committed by mprahl 5 years ago
    Add a `ctx` kwarg to ClientSession.krb_login
    
    Before this change, `koji.ClientSession.krb_login` always used the
    default context. This can be an issue when a multi-threaded application
    shares this context and the Kerberos cache is stored in the thread keyring.
    In this scenario, the first thread to run `krb_login` will succeed while
    all others will get a "Permission denied" error. By adding the `ctx` kwarg,
    a thread can establish a context and tell `krb_login` to use it instead of
    the default context.
    
        
file modified
+5 -3