application.xml の LDAP および UserMapper コネクタのコメントを外しました
サーバー上の他のアプリに LDAP 認証と承認を使用しているため、LDAP 資格情報 (binddn、ホスト名など) がすべて機能していることはわかっています。
私が行ったのは、application.xml と security.properties を変更したことだけです。他にやるべきことはありますか?
LDAP からユーザーでログインしようとすると、失敗します。何が問題なのかを確認できるログ ファイルはありますか? アーカイブのドキュメントはまばらで簡潔であることがわかりました。
ここに私の security.properties ファイルがあります - いくつかの値が変更されています.誰かが構造が無傷であることを確認できるかもしれません:
# LDAP
user.manager.impl=ldap
ldap.bind.authenticator.enabled=true
redback.default.admin=admin
security.policy.password.expiration.enabled=false
ldap.config.hostname=localhost
ldap.config.port=389
ldap.config.base.dn=domainName=mydomain.com,o=domains,dc=mydomain,dc=com
ldap.config.context.factory=com.sun.jndi.ldap.LdapCtxFactory
ldap.config.bind.dn=cn=Manager,dc=mydomain,dc=com
ldap.config.password=mypass
ldap.config.mapper.attribute.email=mail
ldap.config.mapper.attribute.fullname=displayName
ldap.config.mapper.attribute.password=userPassword
ldap.config.mapper.attribute.user.id=mail
ldap.config.mapper.attribute.user.base.dn=ou=Users
ldap.config.mapper.attribute.user.object.class=inetOrgPerson
ldap.config.mapper.attribute.user.filter=(objectclass=inetOrgPerson)
また、config.mapper.attribute.user.base.dn は私を混乱させます。私のユーザーのベースはここにあります: ou=Users,domainName=mydomain.com,o=domains,dc=mydomain,dc=com
これは、私が入力したベース DN についても意味します: domainName=scoresecret.com,o=domains,dc=scoresecret,dc=com
config.mapper.attribute.user.base.dn の場合: ou=Users
何か間違ったことをしている場合、「LDAP をオンにする」ために何かをするのを忘れている場合、正しい方向に向けるためのログを見つけることができる場合はお知らせください。ありがとうございます