简体   繁体   English

使用kerberos验证服务器

[英]Authenticating a server using kerberos

I thought it could be a good idea to use kerberos on Windows 2003 to authenticate a Java server application against active directory. 我认为在Windows 2003上使用kerberos对活动目录进行Java服务器应用程序身份验证可能是一个好主意。 That way, we will not have to put a password in a file. 这样,我们将不必在文件中输入密码。 But this does not work. 但这是行不通的。

[2012-09-20 17:42:19,301] ERROR Cannot authenticate server via JAAS
javax.security.auth.login.LoginException: No LoginModules configured for KerberosLogin
    at javax.security.auth.login.LoginContext.init(LoginContext.java:273)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:349)

If I run the exact same code and configuration on Windows XP, then authentication works. 如果我在Windows XP上运行完全相同的代码和配置,则身份验证有效。 In both cases I am using Java 7 u07. 在这两种情况下,我都使用Java 7 u07。

事实证明,我通过JDK的kinit命令获取的TGT已过期。

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

相关问题 使用Java对启用Kerberos的Hadoop集群进行身份验证 - Authenticating to Kerberos enabled Hadoop Cluster Using Java 通过Kerberos使用Active Directory进行身份验证 - Authenticating with Active Directory via Kerberos 从通过kerberos keytabs进行身份验证的Java应用程序在远程服务器上执行脚本 - Execute a script on remote server from a java application authenticating via kerberos keytabs 使用HTTP Commons Client在服务器上进行身份验证 - Authenticating on a server using HTTP Commons Client 使用java HttpClient中的kerberos对sharepoint进行身份验证 - Authenticating to sharepoint with kerberos from a java HttpClient 在同一Java应用程序中使用不同的Kerberos KDC进行身份验证 - Authenticating with different Kerberos KDC in the same Java application 使用Kerberos的TCP通过Java服务器的SSO .NET胖客户端 - SSO .NET thick client with Java server via TCP using Kerberos 使用本地Web服务器使用Java应用程序对Google驱动器进行身份验证 - Authenticating google drive with a java application using a local web server 使用java Web应用程序中的现有ldap服务器对用户进行身份验证 - Authenticating users using an exsiting ldap server in a java web application 使用Google验证用户身份 - Authenticating a user using Google
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM