0

ここで入手可能なGitblitの最新リリース1.0を入手しました

LDAP認証方式を統合しようとしています。私のLDAPは一般的ではないと思うので、用語が一致するものに問題があります。

これまでのところ、私は限られたリソース(1.0がリリースされたばかりなので)とグーグルグループをフォローしてきました。

ただし、サーバーを接続することすらできません。

Gitblitが認証に必要なフィールドを貼り付けてから、LDAPにリストされている関連フィールドのいくつかを貼り付けます。

以前にLDAP構造に問題がありましたが、それが私だけなのかどうか疑問に思っています。

ありがとう!

内部:gitblit.properties

realm.ldap.server = http://127.0.0.1 #for this purpose

# Login username for LDAP searches.
  realm.ldap.username = username

# Login password for LDAP searches.
  realm.ldap.password = password

# Root node for all LDAP users
  realm.ldap.accountBase = CN=Users,DC=rem,DC=pri

# Filter criteria for LDAP users
# Query pattern to use when searching for a user account. This may be any valid 
# LDAP query expression, including the standard (&) and (|) operators.
#    ${username} - The text entered as the user name
  realm.ldap.accountPattern = (&(objectClass=person)(sAMAccountName=${jsmith}))

# Root node for all LDAP groups to be used as Gitblit Teams
# This is the root node from which subtree team searches will begin.
  realm.ldap.groupBase = 

# Filter criteria for LDAP groups
# Variables may be injected via the ${variableName} syntax.
# Recognized variables are:
#    ${username} - The text entered as the user name
#    ${dn} - The Distinguished Name of the user logged in
# All attributes from the LDAP User record are available. For example, if a user
# has an attribute "fullName" set to "John", "(fn=${fullName})" will be 
# translated to "(fn=John)".
  realm.ldap.groupMemberPattern = (&(objectClass=group))

これは私のディレクトリリストがどのように見えるかの写真です(明らかに識別しているものは削除されています)

LDAPディレクトリ

4

1 に答える 1

0

Gitblitについては何も知りませんが、知らないはずです

realm.ldap.accountPattern = (&(objectClass=person)(sAMAccountName=${jsmith}))

なれ

realm.ldap.accountPattern = (&(objectClass=person)(sAMAccountName=${username}))

変数ベースの検索の場合、または

realm.ldap.accountPattern = (&(objectClass=person)(sAMAccountName=jsmith))

(テスト用に)検索をハードコーディングしようとした場合はどうなりますか?

于 2012-07-25T18:09:59.740 に答える