{"id":1912,"date":"2014-09-14T00:16:00","date_gmt":"2014-09-13T16:16:00","guid":{"rendered":"http:\/\/www.brofive.org\/?p=1912"},"modified":"2018-05-29T00:53:06","modified_gmt":"2018-05-28T16:53:06","slug":"%e8%b0%83%e6%95%b4confluence%e7%9a%84%e8%ae%a4%e8%af%81%e6%ac%a1%e5%ba%8f%e5%8f%af%e4%bb%a5%e8%a7%a3%e5%86%b3%e6%97%a0%e6%b3%95%e9%85%8d%e7%bd%ae%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/www.brofive.net\/?p=1912","title":{"rendered":"\u8c03\u6574Confluence\u7684\u8ba4\u8bc1\u6b21\u5e8f\u53ef\u4ee5\u89e3\u51b3\u65e0\u6cd5\u914d\u7f6e\u7684\u95ee\u9898"},"content":{"rendered":"<p><a href=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2018\/05\/image-90.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline\" border=\"0\" alt=\"image\" src=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2018\/05\/image_thumb-87.png\" width=\"304\" height=\"181\"><\/a>  <\/p>\n<p><font size=\"4\">\u4e4b\u524d<\/font><a href=\"http:\/\/blog.sina.com.cn\/s\/blog_53a5366c0102uz42.html\"><font size=\"4\">\u914d\u7f6eConfluence\u53d1\u73b0\u65e0\u6cd5\u5b89\u88c5\u4e2d\u6587\u5b50\u5e93<\/font><\/a><font size=\"4\">\uff0c\u6298\u817e\u4e86\u5f88\u4e45\u4e5f\u6728\u6709\u641e\u5b9a\u3002\u540e\u6765\u8bf7YP\u8054\u7cfb\u4e86\u5382\u5546\uff0c\u901a\u4e86\u7535\u8bdd\u624d\u77e5\u9053\u539f\u6765\u662f\u5728\u914d\u7f6eConf\u7684\u65f6\u5019\u9009\u62e9\u4f7f\u7528JIRA\u7684\u7528\u6237\u76ee\u5f55\u8ba4\u8bc1\uff0c\u800c\u4e14\u6392\u5728\u4e86\u539f\u5148\u7684Conf\u7528\u6237\u76ee\u5f55\u4e4b\u524d\uff0c\u800c\u4e14\u7ba1\u7406\u5458\u8fd8\u91cd\u540d\u4e86\uff0c\u5bfc\u81f4\u65e0\u6cd5\u518d\u4f7f\u7528\u539f\u5148\u7684Conf\u7ba1\u7406\u5458\u767b\u9646\uff0c\u5f88\u591a\u914d\u7f6e\u65e0\u6cd5\u4f7f\u7528\u3002\u5382\u5546\u7ed9\u51fa\u4e86\u4e00\u4e2a\u94fe\u63a5\u53ef\u4ee5\u8c03\u6574\u7528\u6237\u76ee\u5f55\u7684\u6b21\u5e8f\uff0c\u5c1d\u8bd5\u4ee5\u540e\u53d1\u73b0\u662f\u53ef\u884c\u7684\uff0c<\/font><a href=\"https:\/\/confluence.atlassian.com\/display\/DOC\/Restoring+Passwords+To+Recover+Admin+User+Rights#RestoringPasswordsToRecoverAdminUserRights-Step3.PuttheInternalDirectoryinFirstPosition\"><font size=\"4\">Restoring Passwords To Recover Admin User Rights<\/font><\/a><font size=\"4\">\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/font> <\/p>\n<h6><font size=\"4\">Step 3. Put the Internal Directory in First Position<\/font><\/h6>\n<p><font size=\"4\">Start Confluence, and try logging in with the username of the user you updated\/created and the password &#8216;admin&#8217;. If this works, skip to Step 4. Otherwise, your Internal Directory does not have high enough priority.<\/font> <\/p>\n<p><strong><font size=\"4\">To put your Internal Directory in first position:<\/font><\/strong> <\/p>\n<ol>\n<li>\n<p><font size=\"4\">Find the directory names and their order:<\/font> <\/p>\n<p><em><font size=\"4\"><code>select<\/code> <code>d.id, d.directory_name, m.list_index<\/code> <code>from<\/code> <code>cwd_directory d<\/code> <code>join<\/code> <code>cwd_app_dir_mapping m<\/code> <code>on<\/code><code>d.id=m.directory_id;<\/code><\/font><\/em><\/p>\n<li><font size=\"4\">Take note of the ID with list_index 0, and the list_index and ID of the Confluence Internal Directory. <\/font>\n<li>\n<p><font size=\"4\">Switch the order of the directories:<\/font> <\/p>\n<p><em><font size=\"4\"><code>update<\/code> <code>cwd_app_dir_mapping<\/code> <code>set<\/code> <code>list_index = 0<\/code> <code>where<\/code> <code>directory_id = &lt;Internal Directory id&gt;;<\/code><\/font><\/em> <\/p>\n<p><em><font size=\"4\"><code>update<\/code> <code>cwd_app_dir_mapping<\/code> <code>set<\/code> <code>list_index = &lt;Noted Internal Directory list_index&gt;<\/code> <code>where<\/code><code>directory_id = &lt;Directory id that had list_index 0&gt;;<\/code><\/font><\/em><\/p>\n<li>\n<p><font size=\"4\">Check to see if the directory is active (the &#8216;active&#8217; column should be set to &#8216;T&#8217;):<\/font> <\/p>\n<p><em><font size=\"4\"><code>select<\/code> <code>id, directory_name, active<\/code> <code>from<\/code> <code>cwd_directory<\/code> <code>where<\/code> <code>id = &lt;Internal Directory id&gt;;<\/code><\/font><\/em><\/p>\n<li>\n<p><font size=\"4\">If necessary, activate the directory:<\/font> <\/p>\n<p><em><font size=\"4\"><code>update<\/code> <code>cwd_directory<\/code> <code>set<\/code> <code>active =<\/code> <code>'T'<\/code> <code>where<\/code> <code>id = &lt;Internal Directory id&gt;;<\/code><\/font><\/em><\/p>\n<\/li>\n<\/ol>\n<p><font size=\"4\">\u7b2c\u4e00\u6b21\u5904\u7406\u4e4b\u540e\u53d1\u73b0\u4f9d\u7136\u65e0\u6cd5\u4f7f\u7528Conf\u7ba1\u7406\u5458\u767b\u9646\uff0c\u8fd8\u5c1d\u8bd5\u4fee\u6539\u4e86Conf\u7684\u7ba1\u7406\u5458\u540d\u79f0\uff0c\u4f46\u662f\u4f9d\u7136\u4e0d\u5bf9\u3002\u6700\u540e\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u5c31OK\u4e86\u3002<\/font> <\/p>\n<p><font size=\"4\">\u76f8\u5173\u4fe1\u606f\uff1a<\/font> <\/p>\n<ol>\n<li><a href=\"http:\/\/blog.sina.com.cn\/s\/blog_53a5366c0102uz42.html\"><font size=\"4\">\u5347\u7ea7Confluence\u52305.5.4\uff0c\u672a\u641e\u5b9a\u4e2d\u6587<\/font><\/a>\n<li><a href=\"http:\/\/blog.sina.com.cn\/s\/blog_53a5366c0101hszt.html\"><font size=\"4\">JIRA\u5347\u7ea7\u540e\u539f\u6709Issue\u65f6\u95f4\u663e\u793a\u9519\u4e71\u7684\u95ee\u9898<\/font><\/a>\n<li><a href=\"http:\/\/blog.sina.com.cn\/s\/blog_53a5366c0101hdmu.html\"><font size=\"4\">\u4eceJIRA 5.0\u5347\u7ea7\u52306.0<\/font><\/a>\n<li><a href=\"http:\/\/blog.sina.com.cn\/s\/blog_53a5366c0101ih80.html\"><font size=\"4\">Confluence\u5e76\u53d1\u5199\u7684\u4e92\u76f8\u8986\u76d6\u95ee\u9898<\/font><\/a>\n<li><a href=\"https:\/\/confluence.atlassian.com\/display\/DOC\/Restoring+Passwords+To+Recover+Admin+User+Rights#RestoringPasswordsToRecoverAdminUserRights-Step3.PuttheInternalDirectoryinFirstPosition\"><font size=\"4\">Restoring Passwords To Recover Admin User Rights<\/font><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u914d\u7f6eConfluence\u53d1\u73b0\u65e0\u6cd5\u5b89\u88c5\u4e2d\u6587\u5b50\u5e93\uff0c\u6298\u817e\u4e86\u5f88\u4e45\u4e5f\u6728\u6709\u641e\u5b9a\u3002\u540e\u6765\u8bf7YP\u8054\u7cfb\u4e86\u5382\u5546\uff0c\u901a\u4e86\u7535\u8bdd\u624d\u77e5\u9053\u539f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[156,237,300],"tags":[386,385],"views":4226,"_links":{"self":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1912"}],"collection":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1912"}],"version-history":[{"count":1,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1912\/revisions"}],"predecessor-version":[{"id":1913,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1912\/revisions\/1913"}],"wp:attachment":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1912"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}