0

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 をオンにする」ために何かをするのを忘れている場合、正しい方向に向けるためのログを見つけることができる場合はお知らせください。ありがとうございます

4

1 に答える 1

1

LDAP に存在する管理者ユーザーが構成されていることを確認してください。現時点では、内部ユーザーを使用する方法はありません。

redback.default.admin=admin

adminこれに使用できる LDAP サーバーの役割アカウントに置き換えます。

これは、入力する必要がある値を示す必要がある、私が使用する構成テンプレートです: https://github.com/maestrodev/puppet-archiva/blob/master/templates/security.properties.erb

主な違いは、ユーザー フィルターが空であることでしょうか。

(users@archiva.apache.org のスレッドも参照してください: http://s.apache.org/KDj )

于 2011-11-14T01:59:11.507 に答える