-
Notifications
You must be signed in to change notification settings - Fork 54
Reuse of Apache Kerberos Ticket #68
Conversation
enable reuse of apache ticket cache
sync garbage collection cycle of KerberosAuth and NativeState
|
Can you move the Also with the changes moved to a separate class it can properly throw an error when the krb5 extension is missing or the ticket is missing/invalid instead of silently changing the behaviour |
c1a84fc to
0fc2a08
Compare
|
I've been having issues properly testing this because no matter what I seem to do |
|
I had this kind of problem with php-fpm. The solution was to set |
|
Here is a detailed description of a working setup: https://github.com/C1-10P/php_kerberos_cifs_poc |
|
You must also configure Kerberos delegation. For the test I have activated "Trust this user for delegation to any service" https://blogs.msdn.microsoft.com/autz_auth_stuff/2011/05/03/kerberos-delegation/ |
|
If followed the steps from your writeup and I'm testing with curl with |
e4b0bcd to
80a4edf
Compare
|
Finally got this running locally, seeing if I can get it running in CI before merging |
|
Merged this manually to handle the rebase. Thanks for the work! |
I've found that a cached Apache ticket can not be used immediately by the php-smbclient library. In my workaround, I use the krb5 php-lib to convert the ticket in the correct format. With this modification it is possible to authenticate cifs-shares with a kerberos sso-ticket. Apache only creates a ticket cache when you enable Kerberos delegation.