LoginSignup
2
4

More than 5 years have passed since last update.

[GitBucket][Windows] GitBucketとActive Directoryの連携

Last updated at Posted at 2017-07-18

GitBucketに、Active Directoryで使用しているログインIDとパスワードでログインできるようにします。

環境

  • GitBucket環境
    • Ubuntu 16.04
    • GitBucket 4.14.1
    • OpenJDK Runtime 1.8.0_131
  • Active Directory環境
    • Microsoft Windows Server 2012 R2

設定

rootユーザでGitBucketへログインし、メニューから[System Settings]を辿ります。

Authenticationの項目にLDAPがあるので有効にします。

各項目の設定値は次のとおりです。

LDAP host
ドメインコントローラホスト名
LDAP port
389
Bind DN
ActiveDirectoryにログインできるユーザのDistinguished Name 例)cn=administrator,ou=users,dc=example,dc=com
Bind password
上記ユーザのパスワード
Base DN
ユーザを探しに行くツリーの根本 例)dc=example,dc=com
User name attribute
sAMAAccountName
Additional filter condition
(空)
Full name attribute
displayName
Mail address attribute
mail
Enable TLS
No
Enable SSL
No
Keystore
(空)

はまりどころ

Active Directory側がちゃんと整えられていないとログインできないです。

  • ユーザのcommon nameは日本語にせず、英数字にする
  • mail属性に値を入れる
2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4