minrk / pamela

Python PAM interface
Other
34 stars 10 forks source link

Support setcred flags besides reinitialize #6

Closed parente closed 7 years ago

parente commented 7 years ago

PAM_REINITIALIZE_CRED creates a cred cache with the wrong uid in Kerberos. Changing resetcred to be of int type lets clients use PAM_ESTABLISH_CRED instead or any of the other support PAM flags. Retains backwards compatibility by making resetcred=PAM_REINITIAL_CRED by default which is also truthy.

Ref: https://github.com/jupyterhub/jupyterhub/issues/856

minrk commented 7 years ago

Released as 0.3