Mantis 如何設定 LDAP
有兩個步驟
1. 修改 config_inc.php
2. 在 mantis 裡註冊或新增 AD 帳號 (注意, mantis 會拿 user_table 的 username 當作變數去驗證 AD, 所以一定要有帳號, 否則沒辦法通過認證)
config_inc.php 依照官方網站文件設定即可
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | step1. ############################# # Mantis LDAP Settings ############################# # look in README.LDAP for details # --- using openldap ------------- $g_ldap_server = '192.168.xxx.xxx'; $g_ldap_port = '3268'; $g_ldap_root_dn = 'DC=Company,DC=local'; $g_ldap_organization = ''; $g_ldap_uid_field = 'sAMAccountName'; # 登入 AD 的 bind 帳號, Windows 的 AD 禁止匿名存取 $g_ldap_bind_dn = 'access_account@domain'; $g_ldap_bind_passwd = 'password'; $g_use_ldap_email = OFF; Step2. # --- login method ---------------- # CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH # You can simply change this at will. Mantis will try to figure out how the passwords were encrypted. $g_login_method = LDAP |