Skip to content

有害部落格同好會

2007/06/23 / php

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

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

Post navigation

Previous Post:

LDAP 連線範例

Next Post:

用 PHP 來判斷使用者是用哪種瀏覽器

分類

  • 新奇有趣の搶先報導
    • Raspberry Pi
    • 手機相關
    • 推薦軟體
    • 新鮮有趣
    • 生活資訊
  • 想破腦袋の程式技巧
    • Oracle EBS
    • Database
    • Excel, VBA
    • php
    • JavaScript, VBScript
    • VS.NET
    • Others
    • Windows
    • SAP
  • 撩動心弦の短文小品
  • 聚沙成塔の理財守則
  • 不可不知の職場實錄
  • 剎那永恆の生活翦影

近期文章

  • 受保護的內容: 如何透過Personalize功能呼叫另一form來回傳值
  • Win10 / 8 / 7 無法安裝 SSD
  • 受保護的內容: 樹梅派+遠端連線
  • EBS R12 取得客戶的phone, email, URL資料
  • 受保護的內容: 管控Workflow Administrator Role

友站

  • Masaya396's 協奏曲
  • 老塗的咁仔店

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

Tag Cloud

你目前使用的瀏覽器不支援 HTML5 的 CANVAS 標籤。

  • SAP
  • VB6
  • php
  • CSS
  • javascript
  • VB.Net
  • excel
  • HTC
  • 感情
  • 管理
  • LDAP
  • VBA
  • Oracle DB
  • EBS 12.1.3
  • MySql
  • Oracle EBS
  • SQL
  • Win7
  • EBS 11.5.10
  • WinXP
© 2025 有害部落格同好會 - Powered by SimplyNews