{"id":1634,"date":"2012-05-11T11:00:02","date_gmt":"2012-05-11T03:00:02","guid":{"rendered":"http:\/\/juan.tw\/?p=1634"},"modified":"2012-05-19T14:19:36","modified_gmt":"2012-05-19T06:19:36","slug":"dotproject-%e8%88%87-ad-%e6%95%b4%e5%90%88","status":"publish","type":"post","link":"https:\/\/juan.tw\/?p=1634","title":{"rendered":"dotProject \u8207 AD \u6574\u5408"},"content":{"rendered":"<p>\u6700\u8fd1\u56e0\u70ba\u5de5\u4f5c\u4e0a\u9700\u8981\u4e00\u500b\u5c08\u6848\u7ba1\u7406\u7684\u7cfb\u7d71<br \/>\n\u6709\u5728\u8003\u616e\u6e2c\u6e2c\u770b dotProject<br \/>\n\u4f46\u4e00\u76f4\u6c92\u80fd\u5c08\u5fc3\u628a\u5b83\u7814\u7a76\u7814\u7a76<\/p>\n<p>\u5927\u6982\u662f\u5b89\u9038\u592a\u4e45\u4e86,<br \/>\n\u9023\u8b93 dotProject \u900f\u904e AD \u8a8d\u8b49\u90fd\u641e\u5f88\u4e45<br \/>\n\u6628\u5929\u6e2c\u901a\u4e86, \u4eca\u5e74\u4e7e\u8106\u4f86 take a note<\/p>\n<p>\u5176\u5be6\u6709\u5148 Google \u904e<br \/>\n\u4f46\u771f\u6b63\u5b89\u88dd\u537b\u53c8\u4e0d\u662f\u90a3\u9ebc\u4e00\u56de\u4e8b<br \/>\n\u771f\u7684\u61f7\u7591\u90a3\u4e9b\u6587\u7ae0\u662f\u8f49\u4f86\u8f49\u53bb\u7684\u6210\u679c<br \/>\n\u6839\u672c\u6c92\u6709\u5be6\u969b\u5b89\u88dd\u6e2c\u8a66\u904e<br \/>\n\u6700\u5f8c\u9760\u7684\u9084\u662f\u5b98\u7db2\u7684 wiki \u624d\u641e\u5b9a<\/p>\n<p>\u5148\u8aaa\u4e00\u4e0b\u5b89\u88dd\u74b0\u5883<br \/>\n\u56e0\u70ba\u53ea\u662f\u8981\u5167\u90e8\u4f7f\u7528,<br \/>\n\u6240\u4ee5, \u4e00\u5207\u5f9e\u300c\u61f6\u300d<\/p>\n<p>\u9019\u6b21\u7528\u7684 OS \u662f Windows XP<br \/>\n\u7136\u5f8c\u76f4\u63a5\u4f7f\u7528 2.5.10 \u7248\u7684 AppServ<br \/>\n\u5b89\u88dd\u65b9\u5f0f\u5c31\u662f\u4e0b\u4e00\u6b65\u4e0b\u4e00\u6b65\u5c31\u597d\u4e86<\/p>\n<p>\u5b89\u88dd\u597d AppServ \u5f8c\u5c31\u53ef\u4ee5\u76f4\u63a5\u9032 phpMyadm \u7db2\u9801\u5efa dotProject \u8981\u7528\u7684\u8cc7\u6599\u5eab<br \/>\n\u63a5\u8457\u4e0a\u7db2\u6293\u6700\u65b0\u7684 2.1.5 \u7248\u7684 dotProject<br \/>\n\u89e3\u958b\u5f8c\u5c31\u76f4\u63a5\u653e\u5165 AppServ \u8cc7\u6599\u593e\u4e2d\u7684 www \u76ee\u9304\u4e0b<br \/>\n\u5b8c\u6210\u5c31\u53ef\u4ee5\u958b\u59cb\u5b89\u88dd dotProject \u56c9<\/p>\n<p>\u5b89\u88dd dotProject \u7684\u7b2c\u4e00\u500b\u756b\u9762\u5c31\u6703 check LDAP \u662f\u5426\u6709\u652f\u63f4<br \/>\n<a href=\"http:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1636\" title=\"dotP01\" src=\"http:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP01.jpg\" alt=\"\" width=\"648\" height=\"534\" srcset=\"https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP01.jpg 648w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP01-300x247.jpg 300w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP01-150x123.jpg 150w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP01-400x329.jpg 400w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p><!--more--><br \/>\n\u9810\u8a2d\u5b89\u88dd\u7684 AppServ \u662f\u6c92\u6709\u958b\u555f LDAP \u652f\u63f4\u7684,<br \/>\n\u8abf\u6574\u7684\u65b9\u6cd5\u662f\u7de8\u8f2f Windows \u76ee\u9304\u4e0b\u7684 php.ini \u6a94\u6848:<\/p>\n<p>\u627e\u5230 Windows Extensions \u90a3\u500b\u6bb5\u843d\u5167\u7684<\/p>\n<p><strong>;extension=php_ldap.dll<\/strong><\/p>\n<p>\u7136\u5f8c\u5c07\u524d\u9762\u7684<strong> ; <\/strong>\u62ff\u6389\u5f8c\u76f4\u63a5\u5b58\u6a94<br \/>\n\u518d\u91cd\u65b0\u555f\u52d5(restart_)\u4e00\u6b21 Apache \u5c31\u53ef\u4ee5<\/p>\n<p>\u91cd\u555f\u5b8c Apache \u5f8c\u5c31\u53ef\u4ee5\u518d\u6b21\u9032\u5165\u5b89\u88dd\u756b\u9762<br \/>\n\u78ba\u8a8d LDAP \u6709\u9806\u5229\u555f\u7528\u5f8c (\u5982\u4e0a\u5716)<br \/>\n\u5c31\u53ef\u4ee5\u7e7c\u7e8c\u4e0b\u4e00\u6b65\u4e0b\u4e00\u6b65\u628a dotProject \u88dd\u5b8c..<\/p>\n<p>\u600e\u6a23?! \u5230\u9019\u88e1\u90fd\u5f88\u7c21\u55ae\u5427.. XD<\/p>\n<p>\u63a5\u4e0b\u4f86 \u6703\u6bd4\u8f03\u96e3\u641e\u4e00\u9ede\u9ede<\/p>\n<p>\u7b2c\u4e00\u6b21\u767b\u5165 dotProject \u7684\u5e33\u865f\u662f admin, \u5bc6\u78bc\u662f passwd<br \/>\n\u767b\u5165\u4e4b\u5f8c\u5c31\u53ef\u4ee5\u9032\u53bb System Admin -&gt; System Configuration<br \/>\n\u4f86\u8a2d\u5b9a LDAP \u4ee5\u652f\u63f4 AD \u8a8d\u8b49<\/p>\n<p>\u8a2d\u5b9a\u65b9\u5f0f\u53ef\u4ee5\u53c3\u8003\u5b98\u7db2\u7684<a href=\"http:\/\/docs.dotproject.net\/index.php?title=Installing_dotProject#Example_Active_Directory_Setup\">\u8aaa\u660e<\/a><\/p>\n<p>\u9019\u908a\u6458\u9304\u5982\u4e0b:<\/p>\n<blockquote><p>This explains how you would set up LDAP authentication with Active Directory: Example domain is: dotproject.com, the domain controller is called dc.dotproject.com.<\/p>\n<p>&#8211; set the LDAP host to: dc.dotproject.com &#8211; set the Base DN to: cn=Users,dc=dotproject,dc=com &#8211; this indicates that the system should search the Users folder for valid users. &#8211; set the user filter to: (sAMAccountName=%USERNAME%) &#8211; this will be the same for all Active Directory installations. &#8211; set the LDAP search user and password: You could set this to a user with the administrator role but its safer to make an ldapsearch user with only the permissions required to read the users folder. &#8211; set allow standard login on &#8211; this is recommended so that if your directory system fails, you can still login to dotproject.<\/p><\/blockquote>\n<p>LDAP \u756b\u9762\u4e0a\u7684\u6bcf\u500b\u6b04\u4f4d\u8aaa\u660e\u4e00\u4e0b<br \/>\n(\u9019\u908a\u5047\u8a2d AD \u7db2\u57df\u662f dotproejct, \u5247 DN \u53ef\u80fd\u662f <strong>dotproject.com<\/strong> \u6216\u662f <strong>dotproject.local<\/strong>)<\/p>\n<p>LDAP Settings<br \/>\nLDAP Host : \u8acb\u586b\u5165\u4f60\u7684 AD \u4e3b\u6a5f\u540d\u6216 IP<br \/>\nLDAP Port : \u4e00\u822c\u4e0d\u7528\u6539, \u9664\u975e\u60a8\u7684 AD \u6709\u53bb\u7279\u5225\u52d5\u5230\u9019\u90e8\u4efd<br \/>\nLDAP Version : Windows 2003 (\u542b) \u4ee5\u5f8c\u662f LDAP V3 \u76f8\u5bb9<br \/>\nLDAP Base DN : \u5e33\u865f\u6240\u5b58\u653e\u5728 OU \u4f4d\u7f6e, \u4f7f\u7528 AD \u6642\u8acb\u8f38\u5165 <strong>dc=dotproject,dc=com<\/strong> \u6216 <strong>dc=dotproject,dc=local<\/strong><br \/>\nLDAP User Filter : \u4f7f\u7528 AD \u6642\u8acb\u8f38\u5165 <strong>(sAMAccountName=%USERNAME%)<\/strong><br \/>\nLDAP Search User : \u8f38\u5165\u6709\u6b0a\u9650\u67e5\u8a62 AD \u7684\u5e33\u865f, \u5047\u8a2d Oper \u5e33\u865f\u6709\u6b0a\u9650, \u5247\u8acb\u8f38\u5165 <strong>cn=Oper,cn=Users,dc=dotproject,dc=local<\/strong><br \/>\nLDAP Search User Password : \u9019\u88e1\u8f38\u5165 Oper \u9019\u500b\u5e33\u865f\u7684\u5bc6\u78bc<br \/>\nLDAP also allows standard login : \u9019\u88e1\u8981\u6253 V, \u8868\u793a\u9664\u4e86\u5141\u8a31\u4f7f\u7528 AD \u767b\u5165\u5916, \u4e5f\u53ef\u4ee5\u4f7f\u7528\u5efa\u8cc7\u6599\u5eab\u5167\u7684\u5e33\u865f\u767b\u5165<\/p>\n<p>\u7576\u7136\u4e0d\u8981\u5fd8\u4e86\u628a\u4e0a\u9762\u7684 User Authentication Method \u6539\u6210 LDAP<br \/>\n<a href=\"http:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP02.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1646\" title=\"dotP02\" src=\"http:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP02.jpg\" alt=\"\" width=\"757\" height=\"557\" srcset=\"https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP02.jpg 757w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP02-300x220.jpg 300w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP02-150x110.jpg 150w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP02-400x294.jpg 400w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/a><\/p>\n<p>\u9019\u6a23\u5c31\u53ef\u4ee5\u5b58\u6a94, \u7136\u5f8c\u7528 AD \u4e0a\u9762\u7684\u5e33\u865f\u767b\u5165\u56c9<\/p>\n<p>\u6e2c\u8a66\u4e00\u4e0b, \u679c\u7136\u53ef\u4ee5\u9806\u5229\u767b\u5165, \u800c\u4e14\u5e36\u51fa AD \u4e0a\u9762\u7684 Display Name<br \/>\n<a href=\"http:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP03.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1647\" title=\"dotP03\" src=\"http:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP03.jpg\" alt=\"\" width=\"676\" height=\"451\" srcset=\"https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP03.jpg 676w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP03-300x200.jpg 300w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP03-150x100.jpg 150w, https:\/\/juan.tw\/wp-content\/uploads\/2012\/05\/dotP03-400x266.jpg 400w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/a><\/p>\n<p>\u4f46\u9019\u88e1\u7684 AD \u50c5\u505a\u8a8d\u8b49\u7528\u9014, \u6240\u4ee5\u767b\u5165\u5f8c\u6703\u5e36\u5165\u7684\u53ea\u6709\u57fa\u672c\u6b0a\u9650<br \/>\n\u5fc5\u9808\u9084\u8981\u5230 User Admin \u88e1\u9762\u53bb\u8a2d\u5b9a\u76f8\u95dc\u7cfb\u7d71\u6216\u5c08\u6848\u6b0a\u9650<\/p>\n<p>\u5c31\u9019\u6a23!!<\/p>\n<p class=\"facebook\"><a href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/juan.tw\/?p=1634\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/juan.tw\/wp-content\/plugins\/add-to-facebook-plugin\/facebook_share_icon.gif\" alt=\"Share on Facebook\" title=\"Share on Facebook\" \/><\/a><a href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/juan.tw\/?p=1634\" target=\"_blank\" title=\"Share on Facebook\">Share on Facebook<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u56e0\u70ba\u5de5\u4f5c\u4e0a\u9700\u8981\u4e00\u500b\u5c08\u6848\u7ba1\u7406\u7684\u7cfb\u7d71 \u6709\u5728\u8003\u616e\u6e2c\u6e2c\u770b dotProject \u4f46\u4e00\u76f4\u6c92\u80fd\u5c08\u5fc3\u628a\u5b83\u7814\u7a76\u7814\u7a76<\/p>\n<p>\u5927\u6982\u662f\u5b89\u9038\u592a\u4e45\u4e86, \u9023\u8b93 dotProject \u900f\u904e AD \u8a8d\u8b49\u90fd\u641e\u5f88\u4e45 \u6628\u5929\u6e2c\u901a\u4e86, \u4eca\u5e74\u4e7e\u8106\u4f86 take a note<\/p>\n<p>\u5176\u5be6\u6709\u5148 Google \u904e \u4f46\u771f\u6b63\u5b89\u88dd\u537b\u53c8\u4e0d\u662f\u90a3\u9ebc\u4e00\u56de\u4e8b \u771f\u7684\u61f7\u7591\u90a3\u4e9b\u6587\u7ae0\u662f\u8f49\u4f86\u8f49\u53bb\u7684\u6210\u679c \u6839\u672c\u6c92\u6709\u5be6\u969b\u5b89\u88dd\u6e2c\u8a66\u904e \u6700\u5f8c\u9760\u7684\u9084\u662f\u5b98\u7db2\u7684 wiki \u624d\u641e\u5b9a<\/p>\n<p>\u5148\u8aaa\u4e00\u4e0b\u5b89\u88dd\u74b0\u5883 \u56e0\u70ba\u53ea\u662f\u8981\u5167\u90e8\u4f7f\u7528, \u6240\u4ee5, \u4e00\u5207\u5f9e\u300c\u61f6\u300d<\/p>\n<p>\u9019\u6b21\u7528\u7684 OS \u662f Windows XP \u7136\u5f8c\u76f4\u63a5\u4f7f\u7528 2.5.10 \u7248\u7684 AppServ \u5b89\u88dd\u65b9\u5f0f\u5c31\u662f\u4e0b\u4e00\u6b65\u4e0b\u4e00\u6b65\u5c31\u597d\u4e86<\/p>\n<p>\u5b89\u88dd\u597d AppServ \u5f8c\u5c31\u53ef\u4ee5\u76f4\u63a5\u9032 phpMyadm \u7db2\u9801\u5efa dotProject \u8981\u7528\u7684\u8cc7\u6599\u5eab \u63a5\u8457\u4e0a\u7db2\u6293\u6700\u65b0\u7684 2.1.5 \u7248\u7684 dotProject \u89e3\u958b\u5f8c\u5c31\u76f4\u63a5\u653e\u5165 AppServ \u8cc7\u6599\u593e\u4e2d\u7684 www \u76ee\u9304\u4e0b \u5b8c\u6210\u5c31\u53ef\u4ee5\u958b\u59cb\u5b89\u88dd dotProject \u56c9<\/p>\n<p>\u5b89\u88dd dotProject \u7684\u7b2c\u4e00\u500b\u756b\u9762\u5c31\u6703 check LDAP \u662f\u5426\u6709\u652f\u63f4 <\/p>\n<p class=\"facebook\">Share on [&#8230;]<\/p>\n<p class=\"facebook\"><a href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/juan.tw\/?p=1634\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/juan.tw\/wp-content\/plugins\/add-to-facebook-plugin\/facebook_share_icon.gif\" alt=\"Share on Facebook\" title=\"Share on Facebook\" \/><\/a><a href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/juan.tw\/?p=1634\" target=\"_blank\" title=\"Share on Facebook\">Share on Facebook<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[161,162,163,160,165,164],"class_list":["post-1634","post","type-post","status-publish","format-standard","hentry","category-computer-networking","tag-active-directory","tag-ad-","tag-appserv","tag-dotproject","tag-ldap","tag-windows-xp","odd"],"psp_head":"<title>dotProject \u8207 AD \u6574\u5408 \u2013 absolute Juan<\/title>\r\n<meta name=\"description\" content=\"\u6700\u8fd1\u56e0\u70ba\u5de5\u4f5c\u4e0a\u9700\u8981\u4e00\u500b\u5c08\u6848\u7ba1\u7406\u7684\u7cfb\u7d71 \u6709\u5728\u8003\u616e\u6e2c\u6e2c\u770b dotProject \u4f46\u4e00\u76f4\u6c92\u80fd\u5c08\u5fc3\u628a\u5b83\u7814\u7a76\u7814\u7a76 \u5927\u6982\u662f\u5b89\u9038\u592a\u4e45\u4e86, \u9023\u8b93 dotProject \u900f\u904e AD \u8a8d\u8b49\u90fd\u641e\u5f88\u4e45 \u6628\u5929\u6e2c\u901a\u4e86, \u4eca\u5e74\u4e7e\u8106\u4f86 take a note \u5176\u5be6\u6709\u5148 Google \u904e \u4f46\u771f\u6b63\u5b89\u88dd\u537b\u53c8\u4e0d\u662f\u90a3\u9ebc\u4e00\u56de\u4e8b \u771f\u7684\u61f7\u7591\u90a3\u4e9b\u6587\u7ae0\u662f\u8f49\u4f86\u8f49\u53bb\u7684\u6210\u679c \u6839\u672c\u6c92\u6709\u5be6\u969b\u5b89\u88dd\u6e2c\u8a66\u904e \u6700\u5f8c\u9760\u7684\u9084\u662f\u5b98\u7db2\u7684 wiki \u624d\u641e\u5b9a \u5148\u8aaa\u4e00\u4e0b\u5b89\u88dd\u74b0\u5883 \u56e0\u70ba\u53ea\u662f\u8981\u5167\u90e8\u4f7f\u7528, \u6240\u4ee5, \u4e00\u5207\u5f9e\u300c\u61f6\u300d \u9019\u6b21\u7528\u7684 OS \u662f Windows XP \u7136\u5f8c\u76f4\u63a5\u4f7f\u7528 2.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/juan.tw\/?p=1634\" \/>\r\n","views":1732,"_links":{"self":[{"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/posts\/1634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/juan.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1634"}],"version-history":[{"count":18,"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/posts\/1634\/revisions"}],"predecessor-version":[{"id":1674,"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/posts\/1634\/revisions\/1674"}],"wp:attachment":[{"href":"https:\/\/juan.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/juan.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/juan.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}