Re: Using a custom JAAS LoginModule with karaf

2018-04-06 Thread Martin Nielsen
I found the problem. The blueprint configuration works as intended. But as i debug my way through the org.apache.karaf.jaas.boot.ProxyLoginModule i end up in the catch clause when trying to create the PropertiesLoginModule. ClassNotFoundException

Re: Using a custom JAAS LoginModule with karaf

2018-04-06 Thread luke
Hey Martin, You raised an interesting scenario - have you tried to debug JAAS code from JRE which gets called after ShiroJaasIntegration module returns? Your configuration seems fine, if shiro fails properties login module is used as fallback. If it doesn’t get called then we need to check what

Re: Using a custom JAAS LoginModule with karaf

2018-04-05 Thread Martin Nielsen
One problem down, one to go. I had he rank set to 0, upon setting it to 1 i can succesfully override the default karaf realm. The new problem is that the PropertiesLoginModule is no longer called. My blueprint is below. What i am trying to accomplish is for JAAS to look in either module in order

Re: Using a custom JAAS LoginModule with karaf

2018-04-05 Thread Martin Nielsen
The only way my module is called is if I force stop Apache Karaf :: JAAS :: Modulesorg.apache.karaf.jaas.modules . Is this intended behavior? On Wed, Apr 4, 2018 at 9:28 AM, Martin Nielsen wrote: > I now tried changing the

Re: Using a custom JAAS LoginModule with karaf

2018-04-04 Thread Martin Nielsen
I now tried changing the blueprint to this: http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0; xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0;> That changes the

Re: Using a custom JAAS LoginModule with karaf

2018-04-03 Thread Martin Nielsen
No you understood completely. I obviously didn't though. So if i want the loginmodule i made to be usable through the webconsole, I must place it in the karaf realm, is that correct? Second question: what if i want to disable one of the current modules, for example the properties module? On Tue,

Re: Using a custom JAAS LoginModule with karaf

2018-04-03 Thread Jean-Baptiste Onofré
Hi, Maybe I don't understand what you want to do. You added your login module in a new realm (ShiroBridge). So, it means that it will be used only for applications that will use this realm. It's not possible to remove the karaf realm easily today as core part of Karaf use it (shell,

Using a custom JAAS LoginModule with karaf

2018-04-03 Thread Martin Nielsen
Hello everyone I am trying to create a new karaf JAAS module and preferably override the current karaf JAAS domain. I have my login module which basically just delegates everything to shiro, as well as a blueprint to add it to the JAAS config. My JAAS config xml from OSGI-INF\blueprint folder