Apache OAK might also run in an OSGi environment.
It would be nice to have OAK supporting JAAS based authentication as provided by Apache Felix in FELIX-3705.
I changed the import for org.apache.felix.jaas.boot package to DynamicImport-Package as its an optional dependency and required if JAAS OSGi related logic is triggered (Rev 1458645)
applied patch and additionally added the ldap-login module.
as discussed i moved at the same time the the login module implementations (and associated classes and tests) back to internal packages that are not exported.
ok... i will move back the loginmodules in that case.
I have attached a simple patch that will allow to leverage the features as for FELIX-3705.
I will put some basic documentation in .
I should also remark that is not needed to export the login modules in the oak-core as previously stated by me.
I have checked this with Chetan Mehrotra and he point me out the right approach. Apologies for misleading...
attaching simple patch