简体   繁体   English

Java:通过JAAS使用Kerberos LoginModule

[英]Java: Using Kerberos LoginModule with JAAS

I have an application attempting to use the Kerberos LoginModule. 我有一个尝试使用Kerberos LoginModule的应用程序。 It appears that my problem is that the LoginModule being used is the wrong one. 看来我的问题是所使用的LoginModule是错误的。 I get the following error: 我收到以下错误:

javax.security.auth.login.loginException: unable to find LoginModule class: com.sun.security.auth.module.Krb5LoginModule

Except this is on an AIX system, so I would expect it to be using com. 除非这是在AIX系统上,所以我希望它使用com。 ibm .security.auth.module.Krb5LoginModule. ibm .security.auth.module.Krb5LoginModule。 I can't figure out exactly where to specify this. 我不知道确切在哪里指定。 This is my first real foray into JAAS so I'm not familiar with all the settings and configuration, but it appears that the following entry in my java.security file in JAVA_HOME/lib/security should fix this: 这是我第一次真正涉足JAAS,因此我对所有设置和配置都不熟悉,但是看来JAVA_HOME / lib / security中java.security文件中的以下条目应解决此问题:

login.configuration.provider=com.ibm.security.auth.login.ConfigFile

The only other issue is that there are approximately 12 different java installations on this machine, so I'm only relatively certain that I've got the right java.security file. 唯一的另一个问题是,这台计算机上大约有12种不同的Java安装,因此,我只能相对确定我拥有正确的java.security文件。

Can anyone help point me in the right direction? 谁能帮助我指出正确的方向? I'm currently trying to pin down the configuration that is installed using javax.security.auth.login .Configuration, but I figured in the meantime I'd post this; 我目前正在尝试确定使用javax.security.auth.login .Configuration安装的配置,但是与此同时,我想到了将其发布的内容。 maybe someone has some information that could help. 也许有人掌握了一些可以帮助您的信息。

我发现Java Home实际上是错误的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM