You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Ashish Jain (JIRA)" <ji...@apache.org> on 2009/09/11 06:34:57 UTC

[jira] Created: (GERONIMO-4865) Login module to enable Kerberos authentication

Login module to enable  Kerberos authentication
-----------------------------------------------

                 Key: GERONIMO-4865
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
             Project: Geronimo
          Issue Type: New Feature
      Security Level: public (Regular issues)
          Components: security
            Reporter: Ashish Jain
             Fix For: 2.2
         Attachments: KerberosLoginModule.java

A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Ashish Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Jain updated GERONIMO-4865:
----------------------------------

    Attachment: KerberosLoginModule.java_initial

Initial version of kerberos login module

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.2
>
>         Attachments: KerberosLoginModule.java, KerberosLoginModule.java_initial
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Ashish Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Jain reassigned GERONIMO-4865:
-------------------------------------

    Assignee: Ashish Jain

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.2
>
>         Attachments: KerberosLoginModule.java
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Kevan Miller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevan Miller resolved GERONIMO-4865.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Patch applied. JDK specific configuration (i.e. the kerberos login module class name occurs via configuration). Thanks for the patch Ashish.

One request -- can you help make sure some documentation is added to our wiki so that this is properly documented?

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Kevan Miller
>             Fix For: 2.1.5, 2.2, 3.0
>
>         Attachments: KerberosLoginModule.java, KerberosLoginModule.java_initial
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Kevan Miller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevan Miller reassigned GERONIMO-4865:
--------------------------------------

    Assignee: Kevan Miller  (was: Ashish Jain)

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Kevan Miller
>             Fix For: 2.1.5, 2.2
>
>         Attachments: KerberosLoginModule.java, KerberosLoginModule.java_initial
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Ashish Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Jain updated GERONIMO-4865:
----------------------------------

    Attachment: KerberosLoginModule.java

Please find the attached Login module class thanks

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.2
>
>         Attachments: KerberosLoginModule.java
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang closed GERONIMO-4865.
------------------------------


closing it

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.1.5, 2.2, 3.0
>
>         Attachments: KerberosLoginModule.java, KerberosLoginModule.java_initial
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks updated GERONIMO-4865:
-----------------------------------

    Fix Version/s:     (was: 2.2)
                   Wish List

We can't include this in standard geronimo because it requires a class found only in the ibm jdk.  Similarly I don't think we could include one requiring a sun jdk.  Maybe we could have a separate jar?  Or, we could work on supplying fewer options.

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: Wish List
>
>         Attachments: KerberosLoginModule.java, KerberosLoginModule.java_initial
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Ashish Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777012#action_12777012 ] 

Ashish Jain commented on GERONIMO-4865:
---------------------------------------

This will work with class found in IBM JDK as well as class found in Sun JDK. It depends what is class specified by user in the login module options.
It can be <log:option name="krb5LoginModuleClass">com.ibm.security.auth.module.Krb5LoginModule</log:option> or
<log:option name="krb5LoginModuleClass">com.sun.security.auth.module.Krb5LoginModule</log:option.



> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.1.5, 2.2
>
>         Attachments: KerberosLoginModule.java, KerberosLoginModule.java_initial
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Ashish Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Jain updated GERONIMO-4865:
----------------------------------

    Fix Version/s:     (was: Wish List)
                   2.2
                   2.1.5

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.1.5, 2.2
>
>         Attachments: KerberosLoginModule.java, KerberosLoginModule.java_initial
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Kevan Miller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevan Miller reassigned GERONIMO-4865:
--------------------------------------

    Assignee: Ashish Jain  (was: Kevan Miller)

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.1.5, 2.2, 3.0
>
>         Attachments: KerberosLoginModule.java, KerberosLoginModule.java_initial
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4865) Login module to enable Kerberos authentication

Posted by "Ashish Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754093#action_12754093 ] 

Ashish Jain commented on GERONIMO-4865:
---------------------------------------

Just a history of what all has been done on this:

Initial trials suggested that there were some unreconganised options being added. The following error was thrown in the very first try

javax.security.auth.login.LoginException: Bad JAAS configuration: unrecognized option: org.apache.geronimo.security.realm.GenericSecurityRealm.SERVERINFO
        at com.ibm.security.jgss.i18n.I18NException.throwLoginException(I18NException.java:16)
        at com.ibm.security.auth.module.Krb5LoginModule.b(Krb5LoginModule.java:412)
        at com.ibm.security.auth.module.Krb5LoginModule.a(Krb5LoginModule.java:171)
        at com.ibm.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:374)
        at org.apache.geronimo.security.jaas.ClassOptionLoginModule.login(ClassOptionLoginModule.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:795)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:709)
        at java.security.AccessController.doPrivileged(AccessController.java:246)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:706)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:603)
        at org.apache.geronimo.security.ContextManager.login(ContextManager.java:76)
        at org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm.authenticate(TomcatGeronimoRealm.java:294)
        at org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm.authenticate(TomcatGeronimoRealm.java:260)
        at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:181)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

Similarly errors were thrown for org.apache.geronimo.security.realm.GenericSecurityRealm.KERNEL and org.apache.geronimo.security.realm.GenericSecurityRealm.CLASSLOADER 
so as to overcome this these options were removed by using a custom login module

Attaching the initial version of the Kerberos Login module with the name KerberosLoginModule.java_initial

> Login module to enable  Kerberos authentication
> -----------------------------------------------
>
>                 Key: GERONIMO-4865
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4865
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: security
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.2
>
>         Attachments: KerberosLoginModule.java
>
>
> A new login module for using the kerberos authentication mechanism  in geronimo.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.