2
我正嘗試在CAS服務器上使用CAS進行SSO和JAAS。用戶信息在數據庫表上。我爲JAAS創建了自己的LoginModule,並在jaas.conf
中配置了我的LoginModule。
以下是jaas.conf
文件。使用JAAS在CAS服務器上進行身份驗證
,我添加了以下行deployerConfigContext.xml
:
CAS {
com.usol.cas.sample.CasLoginModule required debug=true
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://linux.ssoserver/ssotest"
user="cas"
password="cas";
};
我發現JaasAuthenticationHandler
不使用我的CasLoginModule。
<bean class="org.jasig.cas.authentication.handler.support.JaasAuthenticationHandler" />
我寫System.out.println
線在我的Java源代碼,但沒有輸出和我的Jaas.conf文件改變了我的類名稱不正確,使ClassNotFoundError
但沒有錯誤發生。 你認爲什麼原因? 我無法解決我的問題。
預先感謝您。
如果不影響刪除相應的罐子,再拍一張。 –
密碼被加密。你如何解密密碼?用戶表的描述在哪裏?它是如何工作的? – Dongkyun
問題是關於CAS與JAAS,但你的答案是指向一個不同的身份驗證處理程序,我相信。 – Siddharth