0

Casオーバーレイアプローチを使用しています。時々、 /cas/services/manage に入る際に問題が発生します。

" アクセスが拒否されました UsernameNotFoundException::aaa "

時々、実際に入らせてくれます。 deployerConfigContext.xml で、「aaa」ユーザーを宣言しました。

<sec:user-service id="userDetailsService">
  <sec:user name="aaa" password="aaa" authorities="ROLE_ADMIN" />
</sec:user-service> 

この一貫性のない動作の原因は何ですか?

認証が成功したことを示すログからの抜粋

2013-07-31 11:53:05,332 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] -   <org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler successfully authenticated [username: aaa]>
2013-07-31 11:53:05,333 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <Resolved principal aaa>
2013-07-31 11:53:05,333 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler@4b4bc1e authenticated aaa with credential [username: aaa].>
4

1 に答える 1

0

これは、ユーザーaaaが認証ハンドラーで利用できないようです。あなたが提供した XML コードは、そのユーザーがそのサービスを使用することを承認するだけで、そのユーザーが CAS に認証されることを許可しません。

不一致は、認証時に認証ハンドラー (データベース/LDAP/メモリ内など) が利用できない可能性があります。

于 2013-07-30T15:41:00.733 に答える