You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by Ethanlm <gi...@git.apache.org> on 2017/11/09 23:05:02 UTC

[GitHub] storm pull request #2405: [STORM-2806] Give users an option to disable the l...

GitHub user Ethanlm opened a pull request:

    https://github.com/apache/storm/pull/2405

    [STORM-2806] Give users an option to disable the login cache

    https://issues.apache.org/jira/browse/STORM-2806
    
    
    With this patch, users can add `disableLoginCache=true` to the jaas.conf file to disable the login cache.  For example,
    ```
    StormClient {
       com.sun.security.auth.module.Krb5LoginModule required
       doNotPrompt=true
       useTicketCache=true
       disableLoginCache=true
       serviceName="gstorm";
    };
    ```
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Ethanlm/storm STORM-2806

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/2405.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2405
    
----
commit 864188f1cfb18aedccf9e235e18de3b059ebdc80
Author: Ethan Li <et...@gmail.com>
Date:   2017-11-09T21:54:47Z

    [STORM-2806] Give users an option to disable the login cache

----


---

[GitHub] storm pull request #2405: [STORM-2806] Give users an option to disable the l...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/storm/pull/2405


---

[GitHub] storm issue #2405: [STORM-2806] Give users an option to disable the login ca...

Posted by Ethanlm <gi...@git.apache.org>.
Github user Ethanlm commented on the issue:

    https://github.com/apache/storm/pull/2405
  
    Tested it manually.  
    
    ```
    [ethanli@persistmist ~]$ less /tmp/apache-storm-2.0.0-SNAPSHOT/logs/ui.log | grep "Login Cache"
    2017-11-09 22:54:25.499 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-16 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:54:25.499 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-15 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:54:25.499 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-19 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:54:25.500 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-18 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:54:25.500 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-29 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:54:25.500 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-20 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:55:19.972 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-26 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:55:19.972 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-26 [DEBUG] Kerberos Login was not found in the Login Cache, attempting to contact the Kerberos Server
    2017-11-09 22:55:19.974 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-20 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:55:19.992 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-15 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:55:19.994 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-18 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:55:20.006 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-21 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:55:20.008 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-27 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:56:18.139 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-18 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:56:18.158 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-19 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:56:18.164 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-29 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:56:18.175 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-20 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:56:18.190 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-26 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:56:18.199 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-17 [DEBUG] Kerberos Login Cache is disabled, attempting to contact the Kerberos Server
    2017-11-09 22:56:33.642 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-17 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:56:33.642 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-17 [DEBUG] Kerberos Login was not found in the Login Cache, attempting to contact the Kerberos Server
    2017-11-09 22:56:33.643 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-26 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:56:33.646 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-18 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:56:33.663 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-29 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:56:33.672 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-21 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    2017-11-09 22:56:33.677 o.a.s.s.a.k.KerberosSaslTransportPlugin qtp1753746465-20 [DEBUG] Trying to get the Kerberos Login from the Login Cache
    
    ```
    
    The jaas.conf file remains unchanged during the process. The logincache is first disabled, then enabled, then disabled, and then enabled. The behavior is expected.



---