Websphere:我应该在哪里添加 LoginModule 的 jar 文件
Websphere : Where should I add the jar file for LoginModule
我已经在 WebSphere 中编写了一个登录模块,如果我想在应用程序级别使用它,我可以将它添加到共享库中,但现在我想在 RMI_Inbound 下的系统登录下使用它,我可以在那里添加我的 class 的路径,但是我需要把 jar 文件放在哪里以及如何配置它?
我浏览了很多文档,但 none 告诉我在哪里保存 jar 文件或编辑任何 xml,他们都告诉我只提到 class 登录模块的名称,例如 com.custom.loginmodule.
如果你想把它添加到RMI_Inbound
,那么最好的地方是WebSphere\AppServer\lib\ext
文件夹。添加 jar 后,您必须重新启动服务器才能使 类 在 JVM 中可见。
请参阅知识中心的 Configuring programmatic logins for Java Authentication and Authorization Service 主题:
Proxy LoginModule. The Proxy LoginModule loads the actual LoginModule
module. The default JAAS implementation does not use the thread
context class loader to load classes. The LoginModule module cannot
load if the LoginModule class file is not in the application class
loader or the Java extension class loader class path. Due to this
class loader visibility problem, WebSphere Application Server provides
a proxy LoginModule module to load the JAAS LoginModule using the
thread context class loader. You do not need to place the LoginModule
implementation on the application class loader or the class path for
the Java extension class loader with this proxy LoginModule module.
If you do not want to use the Proxy LoginModule module, you can place the LoginModule module in the app_server_root/lib/ext/ directory. However, this action is not recommended due to the security risks.
我会配置一个与服务器关联的共享库。请参阅知识中心的 Associating shared libraries with servers 主题。
我已经在 WebSphere 中编写了一个登录模块,如果我想在应用程序级别使用它,我可以将它添加到共享库中,但现在我想在 RMI_Inbound 下的系统登录下使用它,我可以在那里添加我的 class 的路径,但是我需要把 jar 文件放在哪里以及如何配置它?
我浏览了很多文档,但 none 告诉我在哪里保存 jar 文件或编辑任何 xml,他们都告诉我只提到 class 登录模块的名称,例如 com.custom.loginmodule.
如果你想把它添加到RMI_Inbound
,那么最好的地方是WebSphere\AppServer\lib\ext
文件夹。添加 jar 后,您必须重新启动服务器才能使 类 在 JVM 中可见。
请参阅知识中心的 Configuring programmatic logins for Java Authentication and Authorization Service 主题:
Proxy LoginModule. The Proxy LoginModule loads the actual LoginModule module. The default JAAS implementation does not use the thread context class loader to load classes. The LoginModule module cannot load if the LoginModule class file is not in the application class loader or the Java extension class loader class path. Due to this class loader visibility problem, WebSphere Application Server provides a proxy LoginModule module to load the JAAS LoginModule using the thread context class loader. You do not need to place the LoginModule implementation on the application class loader or the class path for the Java extension class loader with this proxy LoginModule module.
If you do not want to use the Proxy LoginModule module, you can place the LoginModule module in the app_server_root/lib/ext/ directory. However, this action is not recommended due to the security risks.
我会配置一个与服务器关联的共享库。请参阅知识中心的 Associating shared libraries with servers 主题。