我想運行一個使用Kerberos進行身份驗證的tomcat JNDIRealm(authentication =「GSSAPI」)。如何獲取Tomcat中的JNDIRealm以使用Kerberos身份驗證?
不過,我得到這個:
SEVERE: Catalina.start: LifecycleException: Exception opening directory server connection: javax.naming.AuthenticationException: GSSAPI [Root exception is javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Attempt to obtain new INITIATE credentials failed! (null)) ]]
我有這樣的server.xml中:
<Realm className="org.apache.catalina.realm.JNDIRealm" authentication="GSSAPI" connectionName="CN=XXX User,OU=XXXGenericAccounts,\ DC=xxx,DC=com" connectionPassword="blah" connectionURL="ldap://blah.xxx.com:389" alternateURL="ldap://blah.xxx.com:389" roleBase="OU=XXXGroups,DC=xxx,DC=com" roleName="cn" roleSearch="member={0}" roleSubtree="true" userBase="OU=XXXUsers,DC=xxx,DC=com" userSearch="sAMAccountName={0}" userSubtree="true"/>
任何想法是什麼,我在這裏失蹤?
是的。有過去,這,但我使用Kerberos/JAAS:
並獲得這樣的: javax.security.auth.login.LoginException:javax.naming.NamingException中:LDAP:錯誤代碼1 - 00000000:LDA,評論:爲了執行此操作,必須在連接上完成成功綁定。,數據名稱'ou = LIMUsers,dc = lim,dc = com' – Jorel 2009-09-17 19:07:32