私はJHipsterを数週間前から使い始めました。私はJHipsterのデフォルト認証と同時にLDAP認証をしたいと思っています。JHipster LDAP認証を使用
私はこれに続き、https://jhipster.github.io/tips/016_tip_ldap_authentication.html、それは計画どおりに動作しません。 実際に私の設定は私のLDAPサーバにうまく接続しています。私は、ログインがLDAPサーバに検索してパスワードを比較するというログを見ることで分かります。 (だけ
UT005023: Exception handling request to /api/authentication
org.springframework.security.core.userdetails.UsernameNotFoundException: User nseys was not found in the database
at com.mycompany.myapp.security.PersistentTokenRememberMeServices.lambda$onLoginSuccess$1(PersistentTokenRememberMeServices.java:116)
at java.util.Optional.orElseThrow(Optional.java:290)
at com.mycompany.myapp.security.PersistentTokenRememberMeServices.onLoginSuccess(PersistentTokenRememberMeServices.java:116)
at org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices.loginSuccess(AbstractRememberMeServices.java:294)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
...
事がある私は、それはパラメータのマッピングにそこに存在しない場合JHipsterが自動的にデータベースにユーザーを作成します:
問題はログインがエラーで失敗していますLDAPユーザーの場合)、すでに完了していれば接続するだけです。
私はSpringセキュリティソリューションも検索しましたが、実装はJHipsterによって作成された最初のファイルから離れすぎており、このすべてを破棄したくありません。