{"id":210,"date":"2007-06-23T16:04:00","date_gmt":"2007-06-23T08:04:00","guid":{"rendered":"http:\/\/j178.mtgbb.com\/126"},"modified":"2007-06-23T16:04:00","modified_gmt":"2007-06-23T08:04:00","slug":"mantis-%e5%a6%82%e4%bd%95%e8%a8%ad%e5%ae%9a-ldap","status":"publish","type":"post","link":"https:\/\/j178.mtgbb.com\/?p=210","title":{"rendered":"Mantis \u5982\u4f55\u8a2d\u5b9a LDAP"},"content":{"rendered":"<p>\u6709\u5169\u500b\u6b65\u9a5f<br \/>\n1. \u4fee\u6539 config_inc.php<br \/>\n2. \u5728 mantis \u88e1\u8a3b\u518a\u6216\u65b0\u589e AD \u5e33\u865f (\u6ce8\u610f, mantis \u6703\u62ff user_table \u7684 username \u7576\u4f5c\u8b8a\u6578\u53bb\u9a57\u8b49 AD, \u6240\u4ee5\u4e00\u5b9a\u8981\u6709\u5e33\u865f, \u5426\u5247\u6c92\u8fa6\u6cd5\u901a\u904e\u8a8d\u8b49)<\/p>\n<p>config_inc.php \u4f9d\u7167\u5b98\u65b9\u7db2\u7ad9\u6587\u4ef6\u8a2d\u5b9a\u5373\u53ef<\/p>\n<p><!--more--><\/p>\n<pre lang=\"php\" line=\"1\">\nstep1.\n#############################\n# Mantis LDAP Settings\n#############################\n\n# look in README.LDAP for details\n# --- using openldap -------------\n$g_ldap_server \u00a0 = '192.168.xxx.xxx';\n$g_ldap_port \u00a0 = '3268';\n$g_ldap_root_dn \u00a0 = 'DC=Company,DC=local';\n$g_ldap_organization = '';\n$g_ldap_uid_field \u00a0= 'sAMAccountName';\n# \u767b\u5165 AD \u7684 bind \u5e33\u865f, Windows \u7684 AD \u7981\u6b62\u533f\u540d\u5b58\u53d6\n$g_ldap_bind_dn \u00a0 = 'access_account@domain';\n$g_ldap_bind_passwd \u00a0= 'password';\n$g_use_ldap_email \u00a0= OFF;\n\nStep2.\n# --- login method ----------------\n# CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH\n# You can simply change this at will. Mantis will try to figure out how the passwords were encrypted.\n$g_login_method \u00a0 \u00a0= LDAP\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u5169\u500b\u6b65\u9a5f 1. \u4fee\u6539 config_inc.php 2. \u5728 mantis \u88e1\u8a3b\u518a\u6216\u65b0\u589e AD \u5e33\u865f (\u6ce8\u610f &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[56],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-php","tag-php"],"_links":{"self":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210"}],"version-history":[{"count":0,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"wp:attachment":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}